ਫਰਮਾ: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[ਸੋਧੋ]

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
Tenurevoivode (1584–1611), ਸਰਕਾਰ ਦਾ ਮੁਖੀ (1611–1611)[1]
Known forFirst peoples opolchenie
Years active1584–1611, 1611–1611
Born1547[1]
Isady
Died22 ਜੁਲਾਈ 1611[ਹਵਾਲਾ ਲੋੜੀਂਦਾ]
ਮਾਸਕੋ
Cause of deathStab wound
Noble familyLyapunov 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. 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 source code, find appropriate |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.

Caption text
|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:

See also[ਸੋਧੋ]