Help:Property constraints portal/Diff within range/pl

This page is a translated version of the page Help:Property constraints portal/Diff within range and the translation is 30% complete.

difference-within-range constraint (Q21510854) 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 date of birth (P569) and date of death (P570) 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 constraint scope (P4680) is specified, this constraint is only checked on the main value of a statement. This is also the only currently supported scope.

Możliwe działania

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.

Parametry

To ograniczenie ma trzy obowiązkowe parametry:

property (P2306)
Contains the related property. Must contain exactly one property (no value Help or unknown value Help 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. date of death (P570)), and the parameter specifies the “lower” property (e. g. date of birth (P569)).
minimum value (P2313)
The lower boundary of the permitted range. The unit of the boundary value should match the unit of the two properties (e. g. year (Q577) for date of birth (P569) and date of death (P570)). no value Help can be used to specify a range with no lower boundary ( ). unknown value Help is not permitted.
maximum value (P2312)
The upper boundary of the permitted range. The unit of the boundary value should match the unit of the two properties (e. g. year (Q577) for date of birth (P569) and date of death (P570)). no value Help can be used to specify a range with no upper boundary ( ). unknown value Help is not permitted.

Przykład

Przykładowe ustawienie dla date of birth (P569).

property constraint
  difference-within-range constraint
property date of birth
minimum value 0 year
maximum value 150 year
0 references
add reference


add value

Szablon

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.

Difference with “date of birth (P569)” within range [-1, 150]: the difference with property “date of birth (P569)” should be in the range from “-1” to “150”. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: Zaro Aga (Q148028), Thomas Parr (Q657399), Shirali Muslumov (Q2349607), Mahmud Eyvazov (Q4529980), Kyle Reese (Q592358), Li Ching-Yuen (Q304690)
List of violations of this constraint: Database reports/Constraint violations/P570#Diff within range

Listy

Lists of properties which are set difference within range constraint.