Jump to content

Template:Person: Difference between revisions

From Amateur Theatre Wiki
add fields
Simplify
 
(8 intermediate revisions by the same user not shown)
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"
|- class="hintergrundfarbe6
{{#unlinkedwikibase: id={{{qid}}} }}
!colspan="2"| {{#if: {{{Name|}}}|{{{Name}}}|{{PAGENAME}} }}
|- class="hintergrundfarbe6"
|-
!colspan="2"| {{#invoke:WDfetch|getvalue|pid=P735}} {{#invoke:WDfetch|getvalue|pid=P734}}
{{#if:{{{Birthplace|}}} |
|-
{{!}} Birthplace {{!}}{{!}} {{{Birthplace}}}
{{!}} Birthplace {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P19}}
}}
|-
{{#if:{{{Birthday|}}} |
{{!}} Birthday {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P569}}
{{!}} Birthday {{!}}{{!}} {{{Birthday}}}
|-
}}
{{!}} Death {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P570}}
{{#if:{{{Occupation|}}} |
|-
{{!}} Occupation {{!}}{{!}} {{{Occupation}}}
{{!}} Occupation {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P106}}
}}
|}</onlyinclude>
|}</onlyinclude>
<noinclude>
<templatedata>
{
"params": {
"qid": {
"type": "string",
"label": "Wikidata QID",
"description": "Mandatory Wikidata QID to fetch all parameters dynamically from Wikidata.",
"required": true
}
},
"description": "Infobox for a person. Fetches all parameters dynamically from Wikidata based on the mandatory QID.",
"format": "inline"
}
</templatedata>
</noinclude>

Latest revision as of 23:57, 22 January 2025

UnlinkedWikibase error: ID '{{{qid}}}' is not in the required format of an integer prefixed with 'Q'.
UnlinkedWikibase error: ⧼unlinkedwikibase-error-statements-entity-not-set⧽ UnlinkedWikibase error: ⧼unlinkedwikibase-error-statements-entity-not-set⧽
Birthplace UnlinkedWikibase error: ⧼unlinkedwikibase-error-statements-entity-not-set⧽
Birthday UnlinkedWikibase error: ⧼unlinkedwikibase-error-statements-entity-not-set⧽
Death UnlinkedWikibase error: ⧼unlinkedwikibase-error-statements-entity-not-set⧽
Occupation UnlinkedWikibase error: ⧼unlinkedwikibase-error-statements-entity-not-set⧽

Infobox for a person. Fetches all parameters dynamically from Wikidata based on the mandatory QID.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Wikidata QIDqid

Mandatory Wikidata QID to fetch all parameters dynamically from Wikidata.

Stringrequired