Help:Property constraints portal/Diff within range/tr
<languages/> Help:Property constraints portal/Header constraint type

Template:Q specifies that the difference between the values for two properties should be within a certain range or interval. This constraint is available for quantity or date properties.
For example, the difference between Template:P and Template:P should be positive, but no more than 150 years: it should be within the interval .
WikibaseQualityConstraints normalizes the range endpoints before checking this constraint; for example, the intervals and are equivalent.
If no Template:P is specified, this constraint is only checked on the main value of a statement. This is also the only currently supported scope.
Possible actions
There are several possible ways to address a violation of this constraint:
- It’s possible that the value in the statement with the constraint is incorrect and should be fixed.
- It’s possible that the value in the other statement is incorrect and should be fixed.
- It’s possible that one of the two statements should be removed completely.
- It’s possible that the item is a rare, but legitimate exception to the constraint, and nothing should be done.
Parametreler
This constraint has three mandatory parameters:
- Template:P
- Contains the related property. Must contain exactly one property (Template:No value or Template:Unknown value is not permitted), which must have the same data type as the property on which the constraint is placed. The difference is calculated as the value for the property with the constraint minus the value for the property given in this parameter, so usually the constraint is placed on the “upper” property (e. g. Template:P), and the parameter specifies the “lower” property (e. g. Template:P).
- Template:P
- The lower boundary of the permitted range. The unit of the boundary value should match the unit of the two properties (e. g. Template:Q for Template:P and Template:P). Template:No value can be used to specify a range with no lower boundary (). Template:Unknown value is not permitted.
- Template:P
- The upper boundary of the permitted range. The unit of the boundary value should match the unit of the two properties (e. g. Template:Q for Template:P and Template:P). Template:No value can be used to specify a range with no upper boundary (). Template:Unknown value is not permitted.
Örnek
Example setting for Template:P. Template:Statement+
Şablon
When the constraint is set to the property, the following template is automatically displayed in the property talk page. The template is created by Module:Constraints using Template:Constraint, invoked from Template:Property documentation. Translations are defined at Module:i18n/constraints.
{{#invoke:Constraints|extractIndividualConstraintTemplate|id=P570|constraint_type=Q21510854}}
Listeler
Lists of properties which are set difference within range constraint.
Template:Property constraints
Template:Translation categories