Template:Item documentation/sandbox
This is the template sandbox page for Template:Item documentation (diff). See also the companion subpage for test cases. |
Do not add this template manually to item talk pages; it is automatically by MediaWiki:Talkpageheader. |
{{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 fictional character (Q95074){{Generic queries for elections}}
for items of class public election (Q40231){{Generic queries for transport network}}
for items public transport network (Q18325841).
{{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
[edit]{{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) - Generic queries for classes
Property | Data type | description | required |
---|---|---|---|
instance of (P31) | Item | that class of which this subject is a particular example and member; different from P279 (subclass of); for example: K2 is an instance of mountain; volcano is a subclass of mountain (and an instance of volcanic landform) . 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) | yes |
educated at (P69) | Item | educational institution attended by subject | no |
VIAF ID (P214) | External identifier | identifier for the Virtual International Authority File database [format: up to 22 digits] | 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 (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 Award
- 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
[edit]- 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 swith 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.
See also
[edit]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. |