Page semi-protected

Template:Constraint

From Wikidata
Jump to navigation Jump to search
{{{name}}}: {{{description}}}
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint:
Documentation icon Template documentation[view · edit · history · purge ] [translate this template]


This template is the base for the following sub-templates (which work by invoking Module:Constraints):

This template and the above subtemplates categorize into Category:Properties with constraints and its subcategories.

This group of templates helps to detect items where a property has been assigned an invalid value. To take advantage of this opportunity put the templates on the discussion page of the respective property. After a while a bot will generate a list of violations.

Some constraints are type-specific. The table below can help to choose the right constraints for a given property.

type specific constraints common for all types
Item Contemporary
Inverse
One of
Symmetric
Target required claim
Value type
Item
Type

Single value
Multi value

Conflicts with
Qualifiers
Commons media file Commons link
Unique value
Format
String Format
Unique value
Commons link
Point in time Range
Diff within range
Unique value
Geographic coordinates Unique value
URL Format
Unique value
Quantity Units
Range
Diff within range
One of
Property One of
Symmetric
Inverse
Target required claim
Value type
External identifier Format
Unique value
Tabular data Commons link
Unique value
Format
Geographic shape Commons link
Unique value
Format

Parameters

Common parameters:

Samples

  • {{Constraint:Unique value|exceptions= {{Q|13261}}, {{Q|208008}} |mandatory=true}}
  • {{Constraint:Unique value|group property=P17}}

Update frequency

Lists are updated by KrBot once a day. Incremental dumps are used (status of today's dump).

Reports

Template translations

Module:i18n/constraints