ਫਰਮਾ:Infobox noble/Wikidata
Infobox noble/Wikidata |
---|
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
[ਸੋਧੋ]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
[ਸੋਧੋ]
Prokopy Petrovich Lyapunov | |
---|---|
Dvoryanin | |
Head of Zemskoy Sobor 1611 | |
Coat of arms | |
Tenure | voivode (1584–1611), ਸਰਕਾਰ ਦਾ ਮੁਖੀ (1611–1611)[1] |
Known for | First peoples opolchenie |
Years active | 1584–1611, 1611–1611 |
Born | 1547[1] Isady |
Died | 22 ਜੁਲਾਈ 1611[ਹਵਾਲਾ ਲੋੜੀਂਦਾ] ਮਾਸਕੋ |
Cause of death | Stab wound |
Noble family | Lyapunov family |
Spouse(s) | Denisova-Ushakova Fetiniya Nikiforovna |
Issue Vladimir Prokopievich Lyapunov | |
Occupation | ਸਿਆਸਤਦਾਨ |
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}}
- ↑ 1.0 1.1 Dryablikh, Ivan (n.d.). "Prokopy Lyapunov Biography (Example)". Example Inc. Retrieved November 14, 2021.
Suppressing certain fields
[ਸੋਧੋ]Specify |suppressfields=
with a comma-separated names of fields of the template e.g.
|suppressfields=predecessor,successor
Adding references
[ਸੋਧੋ]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
[ਸੋਧੋ]Wikilinking values
[ਸੋਧੋ]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, ਰਾਜਾ
Property to Wikidata mapping
[ਸੋਧੋ]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
[ਸੋਧੋ]ਫਰਮਾ:TODO 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
[ਸੋਧੋ]- {{Infobox person/Wikidata}} - Inspiration
Fetch data for current subject from Wikidata; item ID is detected automatically
ਮਾਪਦੰਡ | ਵੇਰਵਾ | ਕਿਸਮ | ਦਰਜਾ | |
---|---|---|---|---|
1 | 1 | no description | Unknown | optional |
2 | 2 | no description | Unknown | optional |
abovestyle | abovestyle | no description | Unknown | optional |
honorific prefix | honorific prefix | no description | Unknown | optional |
pre-nominals | pre-nominals | no description | Unknown | optional |
Personal name (full) | name | no description | Unknown | optional |
qid | qid | no description | Unknown | optional |
suppressfields | suppressfields | no description | Unknown | optional |
fetchwikidata | fetchwikidata | no description | Unknown | optional |
honorific suffix | honorific suffix | no description | Unknown | optional |
post-nominals | post-nominals | no description | Unknown | optional |
Noble title | title | no description
| String | required |
succession | succession | no description | Unknown | optional |
title references | title references | no description | Unknown | optional |
image | image | no description | Unknown | optional |
image size | image size | no description | Unknown | optional |
imagesize | imagesize | no description | Unknown | optional |
image_upright | image_upright | no description | Unknown | optional |
alt | alt | no description | Unknown | optional |
caption | caption | no description | Unknown | optional |
caption references | caption references | no description | Unknown | optional |
Succession supplement | more | no description | Unknown | optional |
succession references | succession references | no description | Unknown | optional |
Image of coat of arms | CoA | no description | Unknown | optional |
CoA image size | CoA image size | no description | Unknown | optional |
CoA_image_size | CoA_image_size | no description | Unknown | optional |
CoA-image-size | CoA-image-size | no description | Unknown | optional |
CoAimagesize | CoAimagesize | no description | Unknown | optional |
CoA_image_upright | CoA_image_upright | no description | Unknown | optional |
reign-type | reign-type | no description | Unknown | optional |
reign | reign | no description | Unknown | optional |
reign references | reign references | no description | Unknown | optional |
tenure | tenure | no description | Unknown | optional |
tenure references | tenure references | no description | Unknown | optional |
pre-type | pre-type | no description | Unknown | optional |
predecessor | predecessor | no description | Unknown | optional |
preceded_by | preceded_by | no description | Unknown | optional |
predcessor references | predcessor references | no description | Unknown | optional |
suc-type | suc-type | no description | Unknown | optional |
successor | successor | no description | Unknown | optional |
succeeded_by | succeeded_by | no description | Unknown | optional |
successor references | successor references | no description | Unknown | optional |
full name | full name | no description | Unknown | optional |
full name references | full name references | no description | Unknown | optional |
native name lang | native name lang | no description | Unknown | optional |
native_name_lang | native_name_lang | no description | Unknown | optional |
native name | native name | no description | Unknown | optional |
native name references | native name references | no description | Unknown | optional |
styles | styles | no description | Unknown | optional |
titles | titles | no description | Unknown | optional |
other_titles | other_titles | no description | Unknown | optional |
other_ itles | other_ itles | no description | Unknown | optional |
other_titles references | other_titles references | no description | Unknown | optional |
other_names | other_names | no description | Unknown | optional |
known | known | no description | Unknown | optional |
The most famous event the noble person is known for | known for | no description | Unknown | optional |
known for references | known for references | no description | Unknown | optional |
years active | years active | no description | Unknown | optional |
years active references | years active references | no description | Unknown | optional |
birthname | birthname | no description | Unknown | optional |
birth_name | birth_name | no description | Unknown | optional |
birth name references | birth name references | no description | Unknown | optional |
birth date | birth date | no description | Date | optional |
birth date references | birth date references | no description | Unknown | optional |
birth place | birth place | no description | Unknown | optional |
birth place references | birth place references | no description | Unknown | optional |
christening_date | christening_date | no description | Unknown | optional |
date of christening | date of christening | no description | Unknown | optional |
christening date references | christening date references | no description | Unknown | optional |
christening_place | christening_place | no description | Unknown | optional |
place of christening | place of christening | no description | Unknown | optional |
death date | death date | no description | Date | optional |
death date references | death date references | no description | Unknown | optional |
death place | death place | no description | Unknown | optional |
death place references | death place references | no description | Unknown | optional |
death cause | death cause | no description | Unknown | optional |
cause of death | cause of death | no description | Unknown | optional |
death cause references | death cause references | no description | Unknown | optional |
body discovered | body discovered | no description | Unknown | optional |
burial date | burial date | no description | Unknown | optional |
date of burial | date of burial | no description | Unknown | optional |
burial date references | burial date references | no description | Unknown | optional |
burial place | burial place | no description | Unknown | optional |
place of burial | place of burial | no description | Unknown | optional |
resting place | resting place | no description | Unknown | optional |
burial place references | burial place references | no description | Unknown | optional |
resting_place_coordinates | resting_place_coordinates | no description | Unknown | optional |
resting place coordinates | resting place coordinates | no description | Unknown | optional |
burial coordinates | burial coordinates | no description | Unknown | optional |
burial coordinates references | burial coordinates references | no description | Unknown | optional |
nationality | nationality | no description | Unknown | optional |
residence | residence | no description | Unknown | optional |
residence references | residence references | no description | Unknown | optional |
locality | locality | no description | Unknown | optional |
locality references | locality references | no description | Unknown | optional |
networth | networth | no description | Unknown | optional |
wars_and_battles | wars_and_battles | no description | Unknown | optional |
wars_and_battles references | wars_and_battles references | no description | Unknown | optional |
offices | offices | no description | Unknown | optional |
house-type | house-type | no description | Unknown | optional |
noble family | noble family | no description | Unknown | optional |
noble family references | noble family references | no description | Unknown | optional |
spouse-type | spouse-type | no description | Unknown | optional |
spouse | spouse | no description | Unknown | optional |
spouse references | spouse references | no description | Unknown | optional |
issue-link | issue-link | no description | Unknown | optional |
issue-pipe | issue-pipe | no description | Unknown | optional |
issue | issue | no description | Unknown | optional |
issue references | issue references | no description | Unknown | optional |
heir-type | heir-type | no description | Unknown | optional |
heir | heir | no description | Unknown | optional |
parents | parents | no description | Unknown | optional |
father | father | no description | Unknown | optional |
father references | father references | no description | Unknown | optional |
mother | mother | no description | Unknown | optional |
mother references | mother references | no description | Unknown | optional |
An image of the signature | signature | no description | Unknown | optional |
signature image size | signature image size | no description | Unknown | optional |
signature_image_size | signature_image_size | no description | Unknown | optional |
signature-image-size | signature-image-size | no description | Unknown | optional |
signatureimagesize | signatureimagesize | no description | Unknown | optional |
signature_image_upright | signature_image_upright | no description | Unknown | optional |
occupation | occupation | no description | Unknown | optional |
occupation references | occupation references | no description | Unknown | optional |
memorials | memorials | no description | Unknown | optional |
website | website url | no description | Unknown | optional |
footnotes | footnotes | no description | Unknown | optional |
module | module | no description | Unknown | optional |
misc | misc | no description | Unknown | optional |