Jump to content

Template:Person: Difference between revisions

From Amateur Theatre Wiki
Add wd
Unlinkwikibase
Line 1: Line 1:
<onlyinclude>{| class="float-right wikitable infobox" style="Tabellen-Attribute" id="template-infobox-person" summary="Infobox Person"
<onlyinclude>{| class="float-right wikitable infobox" style="Tabellen-Attribute" id="template-infobox-person" summary="Infobox Person"
{{#if: {{{qid|}}} | {{#unlinkedwikibase: id={{{qid}}} }} }}
|- class="hintergrundfarbe6"
|- class="hintergrundfarbe6"
!colspan="2"| {{#if: {{{Name|}}} | {{{Name}}} | {{#if: {{{qid|}}} | {{#invoke:WDfetch|getvalue|pid=P735}} {{#invoke:WDfetch|getvalue|pid=P734}} | {{PAGENAME}} }} }}
!colspan="2"| {{#if: {{{Name|}}} | {{{Name}}} | {{#if: {{{qid|}}} | {{#invoke:WDfetch|getvalue|pid=P735}} {{#invoke:WDfetch|getvalue|pid=P734}} | {{PAGENAME}} }} }}

Revision as of 23:46, 22 January 2025

Person

Infobox for a person. Accepts local values or fetches from Wikidata if a QID is provided.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Name of the personName

Override the name, otherwise fetches from Wikidata or uses the page title.

Stringoptional
Birthplace of the personBirthplace

Override the birthplace, otherwise fetches from Wikidata.

Stringoptional
Birthday of the personBirthday

Override the birthday, otherwise fetches from Wikidata.

Dateoptional
Occupation of the personOccupation

Override the occupation, otherwise fetches from Wikidata.

Stringoptional
Death date of the personDeath

Override the death date, otherwise fetches from Wikidata.

Stringoptional
Wikidata QIDqid

Wikidata QID to fetch all parameters dynamically from Wikidata.

Stringoptional