Template:Constraint:Range

From Wikidata
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
Documentation icon Template documentation[view · edit · history · purge ]

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]