Jump to content

Template:Person: Difference between revisions

From Amateur Theatre Wiki
add to template
Simplify
 
(2 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}}
{{!}}-
|-
}}
{{!}} Birthday {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P569}}
{{#if:{{{Birthday|}}} |
|-
{{!}} Birthday {{!}}{{!}} {{{Birthday}}}
{{!}} Death {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P570}}
{{!}}-
|-
}}
{{!}} Occupation {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P106}}
{{#if:{{{Death|}}} |
{{!}} Death {{!}}{{!}} {{{Death}}}
{{!}}-
}}
{{#if:{{{Occupation|}}} |
{{!}} Occupation {{!}}{{!}} {{{Occupation}}}
{{!}}-
}}
|}</onlyinclude>
|}</onlyinclude>
<noinclude>
<noinclude>
Line 24: Line 16:
{
{
"params": {
"params": {
"Name": {},
"qid": {
"Birthplace": {
"type": "string",
"type": "string"
"label": "Wikidata QID",
},
"description": "Mandatory Wikidata QID to fetch all parameters dynamically from Wikidata.",
"Birthday": {
"required": true
"type": "date"
}
},
"Occupation": {
"type": "string"
},
"Death": {}
},
},
"description": "Infobox for a person",
"description": "Infobox for a person. Fetches all parameters dynamically from Wikidata based on the mandatory QID.",
"format": "inline"
"format": "inline"
}
}
</templatedata>
</templatedata>
</noinclude>
</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