Template:Constraint:Item/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:Constraint:Item. It contains usage information, categories, and other content that is not part of the original template page. |
- Purpose
- Allows to check if items using a given property also use other properties.
- Sample
- Wikimedia language code (P424) is used on items about languages.
- These items all should have instance of (P31)language (Q34770).
- 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
- Items that should have property:P131:
{{Constraint:Item|property=P131}}
- Items that should have Property:P10 with value Q1:
{{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)