Template:Constraint:Diff within range
Jump to navigation
Jump to search
Difference with “date of birth (P569)” within range [−∞, +∞]: the difference with property “date of birth (P569)” should be in the range from “−∞” to “+∞”.
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:Diff within range#Diff within range
This template is obsolete. Please use property constraint (P2302) with value difference-within-range constraint instead. For further information, see Help:Property constraints portal. |
This template marks properties which values should be different from the value of some other property for not more than a predetermined amount. This template can be applied to properties of type "Point in time" and "Quantity".
Properties marked with this template can be found in Category:Properties with difference within range constraints.
Usage
[edit]{{Constraint:Diff within range|base_property=Pxxx|min=|max=}}
Parameter "base_property" is mandatory, "min" and "max" are optional. For properties of type "Point in time", options "min" and "max" represent the time in years.
Examples
[edit]See also
[edit]The above documentation is transcluded from Template:Constraint:Diff within 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. |