Template:Constraint:Item

From Wikidata
Jump to: navigation, search
Item: items with this property should also have
Exceptions are possible as rare values may exist.
List of this constraint violations: [[Wikidata:Database reports/Constraint violations/Constraint:Item#Item {{{property}}}|Database reports/Constraint violations/Constraint:Item#Item {{{property}}}]]
Documentation icon Template documentation[view] [edit] [history] [purge]
Purpose
Allows to check if items using a given property also use other properties.


Sample
  1. Wikimedia language code (P424) is used on items about languages.
  2. These items all should have instance of (P31)  language (Q34770).
  3. To check this and find items that still miss instance of (P31)  language (Q34770),
    add {{Constraint:Item|property=P31|item=Q34770}} to Property talk:P424.


Categorization
This template categorizes into Category:Properties with constraints on items using them

Usage[edit]

{{Constraint:Item|property=Pxx|item=Qxx

|items={{Q|xx}},{{Q|xx}},{{Q|xx}} |exceptions={{Q|xx}},{{Q|xx}} }}
xx are numbers



Samples
{{Constraint:Item|property=P131}}
{{Constraint:Item|property=P10|item=Q1}}
  • To check for persons or taxons, add:
    {{Constraint:Person}} or {{Constraint:Taxon}} accordingly
    which expands to multiple {{Constraint:Item}} statements
  • To check for items in a specific country, add all of the following:
    {{Constraint:Item|property=P17|item=Q34}}
    {{Constraint:Item|property=P131}}
    Sample is for Sweden (Q34)

See also[edit]