Template:Infobox noble/Wikidata/doc: Difference between revisions

From WWII Archives

w>Aidan9382
 
m (1 revision imported)
 
(No difference)

Latest revision as of 20:03, 19 March 2023

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


Lua error in Module:WikidataIB at line 555: attempt to index field 'wikibase' (a nil value).

Head of Zemskoy Sobor 1611
Tenure[1]
Died[citation needed]


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. <syntaxhighlight lang=text>


Infobox noble/Wikidata/doc

Shah of Iran
Tenure[citation needed]

Lua error in Module:WikidataIB at line 555: attempt to index field 'wikibase' (a nil value).

Head of Interim Government

Lua error in Module:WikidataIB at line 555: attempt to index field 'wikibase' (a nil value).

King of Poland
Grand Duke of Lithuania

</syntaxhighlight>

  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: <syntaxhighlight lang=text> ... | label59 = Occupation | data59 = ... </syntaxhighlight>

Result

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

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