Template:Constraint:Range
Jump to navigation
Jump to search
Range from “{{{min}}}” to “{{{max}}}”: values should be in the range from “{{{min}}}” to “{{{max}}}”.
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). List of violations of this constraint: Database reports/Constraint violations/Constraint:Range#Range
This template is obsolete. Please use property constraint (P2302) with value range constraint instead. For further information, see Help:Property constraints portal. |
This constraint indicates that a property is in certain range.
At the moment, it only works for properties like "Point in time" and "Quantity".
This template categorizes into Category:Properties with range constraints.
Usage
[edit]{{Constraint:Range|min=|max=}}
For min and max, the following formats can be used:
- 1945
- 1945-05
- 1945-05-09
- now
The latter value represents the current date.
Examples
[edit]{{Constraint:Range|min=1957-10-04|max=now}}
{{Constraint:Range|min=1900|max=2000}}
See also
[edit]The above documentation is transcluded from Template:Constraint:Range/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |