Template:Item documentation
{{Item documentation}} is a generic documentation template for items. It is designed to be deployed on talk pages.
{{Item documentation}} is a multilingual template which uses {{LangSwitch}}.
Item documentation is a meta template which include many other templates.
For items which are a subclass of something (having a subclass of (P279) statement), it includes {{Item classification}}.
For items with a '/class' subpage, the subpage is included.
{{Item documentation}} includes class specific templates (based on instance of (P31)). It displays:
{{TP award}}for items of class award (Q618779){{TP administrative area}}for items of class administrative territorial entity (Q56061){{TP organization}}for items of class organization (Q43229){{Generic queries for occupations}}for items of class occupation (Q12737077){{Generic queries for positions}}for items of class position (Q4164871){{Generic queries for fictional characters}}for items of class character (Q95074){{Generic queries for elections}}for items of class public election (Q40231){{Generic queries for transport network}}for items public transport network (Q18325841){{Generic queries for taxons}}for items of class taxon (Q16521).
{{Item documentation}} includes occupation specific templates (based on occupation (P106)). It displays:
{{Generic queries for filmmakers}}if occupation (P106) is film director (Q2526255).{{Generic queries for actors}}if occupation (P106) is actor (Q33999).{{Generic queries for musicians}}if occupation (P106) is musician (Q639669).{{Generic queries for authors}}if occupation (P106) is author (Q482980).{{Generic queries for architects}}if occupation (P106) is architect (Q42973).
{{Item documentation}} returns a link to country specific WikiProjects based on the value of country (P17).
The template is automatically displayed in talk page header for items via MediaWiki:Talkpageheader. The template is also included in 21 pages.
Usage
{{Item documentation}}- current page (should be item){{Item documentation|Q5}}- another item
Autodescription — human (Q5)
Useful links:
View it! – Images depicting the item on Commons
Report on constraint conformation of “human” claims and statements. Constraints report for items data
- Parent classes (classes of items which contain this one item)
- Subclasses (classes which contain special kinds of items of this class)
- ⟨
human⟩ on wikidata tree visualisation (external tool)(depth=1) — on Wikidata Graph Builder ; depth= [1 - 2 - 3 - 5 - 10 ] - Generic queries for classes
| Property | Data type | description | Required |
|---|---|---|---|
| instance of (P31) | Item | type to which this subject corresponds/belongs. Different from P279 (subclass of); for example: K2 is an instance of mountain; volcano is a subclass of mountain . Possible values: human (Q5) | Yes |
| sex or gender (P21) | Item | sex or gender identity of human or animal. For human: male, female, non-binary, intersex, transgender female, transgender male, agender, etc. For animal: male organism, female organism. Groups of same gender use subclass of (P279) . Possible values: male (Q6581097), female (Q6581072), intersex (Q1097630), trans woman (Q1052281), trans man (Q2449503), non-binary (Q48270) | Yes |
| date of birth (P569) | Point in time | date on which the subject was born | Yes |
| place of birth (P19) | Item | most specific known birth location of a person, animal or fictional character | Yes |
| date of death (P570) | Point in time | date on which the subject died | No |
| country of citizenship (P27) | Item | the object is a country that recognizes the subject as its citizen | No |
| place of death (P20) | Item | most specific known (e.g. city instead of country, or hospital instead of city) death location of a person, animal or fictional character | No |
| father (P22) | Item | male parent of the subject. For stepfather, use "stepparent" (P3448) | No |
| mother (P25) | Item | female parent of the subject. For stepmother, use "stepparent" (P3448) | No |
| child (P40) | Item | subject has object as child. Do not use for stepchildren—use "relative" (P1038), qualified with "type of kinship" (P1039) | No |
| image (P18) | Commons media file | image of relevant illustration of the subject; if available, also use more specific properties (sample: coat of arms image, locator map, flag image, signature image, logo image, collage image) | No |
| occupation (P106) | Item | occupation of a person. See also "field of work" (Property:P101), "position held" (Property:P39). Not for groups of people. There, use "field of work" (Property:P101), "industry" (Property:P452), "members have occupation" (Property:P3989). | Yes |
| educated at (P69) | Item | educational institution attended by subject | No |
| VIAF cluster ID (P214) | External identifier | identifier for the Virtual International Authority File database [format: up to 22 digits]; please note: VIAF is a cluster, the ID can include multiple items | No |
Union and disjoint queries
- Instances of human (Q5)
that are instances of none of the classes Homo sapiens sapiens (Q3238275)
, Homo sapiens (Q15978631)
and Homo (Q171283)
[1]
See also
- This documentation is generated using
{{Item documentation}}.
Autodescription — Holberg International Memorial Prize (Q1624297)
Useful links:
View it! – Images depicting the item on Commons
Report on constraint conformation of “Holberg International Memorial Prize” claims and statements. Constraints report for items data
- Generic queries for awards
This section is generated using {{TP award}}. It is designed for all items of class award (Q618779).
- Count of award winners (query) – List of award winners (query)
- Count by instance of (P31) (query)
- List of award winners by date (query)
- Queries for distinctions awarded to humans
- See also: WikiProject Awards
See also
- This documentation is generated using
{{Item documentation}}.
This template provides an automatic documentation of an item, and can be placed on the item’s talk page.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Item ID | 1 | Q-identifier of the item to document, automatically guessed when used on the item’s talk page
| Line | optional |
History
- November 23, 2013: Creation of the template[1]. The template includes the /class subpage if it exists[2]
- February 6, 2021: Introduction of the first generic query template based on P31:
{{TP award}}[3] - February 23, 2021: Add country specific WikiProjects [4]
- April 5, 2021: Uses
{{SwitchClass}}in order to switch to the good generic queries template. - April 25, 2021: 6,000 pages use template Item documentation
- May 14, 2021: Introduction of occupation based templates
- November 4, 2021: 7,000 pages include the template!
- May 29, 2022: The template is now included directly in the talk page header via MediaWiki:Talkpageheader. It is no longer necessary to deploy it manually in talk pages.
- December 2025, creation of the ItemDescription.js User script that allows to include in in the main Wikidata item page without having to go to the talk page (experimental).
See also
- WikiProject Templates
- Wikidata insights from a handy little tool, The Signpost, August 1st, 2022
- Category:Page using item documentation template
{{Property documentation}}- Number of transclusions
- ItemDescription.js : show ItemDocumentation content in the main namespace, when an item page is shown.
Footnotes
| The above documentation is transcluded from Template:Item documentation/doc (edit | history). Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) page. Please add categories to the /doc subpage. Subpages of this template. |