Template:Infobox noble/Wikidata/doc
This template is a Wikidata-friendly version of {{Infobox noble}} which automatically populates its field with subject's information (article where this template is used). It saves users from manual labor of entering all the information manually if the given information already listed on respective Wikidata entry.
Usage
[edit]Most of fields are the same as for {{Infobox noble}}. See better explanation in the {{Infobox royalty}}.
{{Infobox noble
| qid = Wikidata item id for specific entry; debug only
| name =
| title =
| image =
| caption =
| alt =
| CoA =
| CoAImageSize =
| more = Supplimental to |succession=
| succession =
| reign =
| reign-type =
| predecessor =
| successor =
| suc-type =
| spouse =
| spouse-type =
| issue =
| issue-link =
| issue-pipe =
| full name =
| native_name =
| styles =
| other_titles =
| noble family =
| house-type =
| father =
| mother =
| birth name =
| birth date = <!-- {{Birth date and age|YYYY|MM|DD|df=y}} -->
| birth place =
| christening date =
| christening place =
| death date = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD|df=y}} -->
| death place =
| burial date =
| burial place =
| religion =
| occupation =
| memorials =
| website = <!-- {{{URL|example.com}} -->
| module =
| signature =
| signatureImageSize =
| signature_image_upright = Upright image scale
}}
Examples
[edit]
Prokopy Petrovich Lyapunov | |
---|---|
Dvoryanin | |
Head of Zemskoy Sobor 1611 | |
Coat of arms | |
Tenure | voivode (1584–1611), head of government (1611–1611)[1] |
Known for | First peoples opolchenie |
Years active | 1584–1611, 1611–1611 |
Born | 1547[1]: 947 Isady |
Died | 22 July 1611[citation needed] Moscow |
Cause of death | Stab wound |
Noble family | Lyapunov family |
Spouse(s) | Denisova-Ushakova Fetiniya Nikiforovna |
Issue Vladimir Prokopievich Lyapunov | |
Occupation | Politician |
The same as {{Infobox noble}}. Just put the template into an appropriate article. |qid=
may be used to force wikidata entity to be used. This is useful for debugging/inspection.
{{Infobox noble/Wikidata|succession=Shah of Iran
|tenure references={{citation needed|date=13 November 2021}}
}}
{{Infobox noble/Wikidata|succession=Head of Interim Government|qid=Q4272739}}
{{Infobox noble/Wikidata|succession=King of Poland<br>Grand Duke of Lithuania|qid=Q52940}}
- ^ a b Dryablikh, Ivan (n.d.). "Prokopy Lyapunov Biography (Example)". Example Inc. Retrieved November 14, 2021.
Suppressing certain fields
[edit]Specify |suppressfields=
with a comma-separated names of fields of the template e.g.
|suppressfields=predecessor,successor
Adding references
[edit]Almost every parameter can be provided with a reference. The parameter should be suffixed by references postifx: |<param> references=
(see example above). E.g.:
{{infobox noble/Wikidata | … |death date references={{citation needed|date=13 November 2021}} | … }}
Configure
[edit]Wikilinking values
[edit]If you want to Wikilink certain values fetched from wikidata, go into |dataN=
field value with a {{wdib}} invocation. Then replace |ps=2
by |ps=1
and save it (see docs about this parameter Module:WikidataIB#Parameter sets).
E.g. for Genghis Khan (d:Q720), we get his occupation linked as following:
...
| label59 = Occupation
| data59 = {{wdib
|P106
|{{if empty|{{{occupation|}}} }}<!--if empty END-->
|qid={{{qid|}}}|ps=1
|name=occupation
...
}}<!--wdib END-->
...
- Result
- military leader, tribal chief, monarch
Property to Wikidata mapping
[edit]The properties listed below are mapped accordingly to specified wikidata properties.
|name= |
Associated Wikidata Property | Note |
---|---|---|
|caption = |
P2096 | media legend |
|image = |
P18 | Image; configurable |ImageSize=
|
|CoA = |
P94 | Coat of Arms Image; configurable by |CoAImageSize=
|
|predecessor = |
P1365 | |
|successor = |
P1366 | |
|full name = |
N/A | Label of the entity associated with current page |
|native name = |
P1559 | |
|known for = |
P793 | |
|date of birth = |
P569 | |
|date of death = |
P570 | |
|baptised = |
P1636 | |
|place of birth = |
P19 | |
|place of death = |
P20 | |
|cause of death = |
P509 | |
|date of burial = |
P4602 | |
|place of burial= |
P119 | |
|residence = |
P263 | official residence |
|noble family = |
P53 | |
|spouse = |
P26 | |
|issue = |
P40 | child |
|father = |
P22 | |
|mother = |
P25 | |
|occupation = |
P106 | occupation |
|signature = |
P109 | signature |
|title = |
P97 | noble title: e.g. duke |
|tenure = |
P39 | position held |
Contribution
[edit]No guarantee of any maintenance whatsoever; contributions are welcome; see Module:WikidataIB and {{Wdib}} as a good starting point to learn how template works inside; also:
- Module:WikidataIB - Used under hood
- Module:String
- {{String split}}
- {{If then show}}
- {{If empty}} - Used heavily by this template
- Help:Magic words
See also
[edit]- {{Infobox person/Wikidata}} - Inspiration