Template:Constraint
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:
Template documentation[view · edit · history · ] [translate this template]
This page is outdated. |
This template is the base for the following sub-templates (which work by invoking Module:Constraints):
- Template:Constraint:Commons link
- Template:Constraint:Conflicts with
- Template:Constraint:Contemporary
- Template:Constraint:Diff within range
- Template:Constraint:Format
- Template:Constraint:Inverse
- Template:Constraint:Item
- Template:Constraint:Multi value
- Template:Constraint:One of
- Template:Constraint:Qualifiers
- Template:Constraint:Range
- Template:Constraint:Single value
- Template:Constraint:Symmetric
- Template:Constraint:Target required claim
- Template:Constraint:Type
- Template:Constraint:Unique value
- Template:Constraint:Units
- Template:Constraint:Value type
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.
Parameters
Common parameters:
- mandatory — see Wikidata:Database reports/Constraint violations/Mandatory constraints
- exceptions — allows to exclude some items from processing, format should be
[[Q####]]
,{{Q|####}}
, orQ####
, but not{{Q|Q####}}
, example: Property talk:P227 - group property — allows to group results by specified property, sample: P1082#Qualifiers
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
The above documentation is transcluded from Template:Constraint/doc (edit | history). Editors can experiment in this template's sandbox (edit | diff) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |