Jump to content

Template:Person: Difference between revisions

From Amateur Theatre Wiki
Unlinkwikibase
Simplify
 
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}}} }} }}
{{#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"| {{#invoke:WDfetch|getvalue|pid=P735}} {{#invoke:WDfetch|getvalue|pid=P734}}
|-
|-
{{#if:{{{Birthplace|}}} |
{{!}} Birthplace {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P19}}
{{!}} Birthplace {{!}}{{!}} {{{Birthplace}}}
|-
| {{#if: {{{qid|}}} | {{!}} Birthplace {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P19}} }}
{{!}} Birthday {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P569}}
{{!}}-
|-
}}
{{!}} Death {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P570}}
{{#if:{{{Birthday|}}} |
|-
{{!}} Birthday {{!}}{{!}} {{{Birthday}}}
{{!}} Occupation {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P106}}
| {{#if: {{{qid|}}} | {{!}} Birthday {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P569}} }}
{{!}}-
}}
{{#if:{{{Death|}}} |
{{!}} Death {{!}}{{!}} {{{Death}}}
| {{#if: {{{qid|}}} | {{!}} Death {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P570}} }}
{{!}}-
}}
{{#if:{{{Occupation|}}} |
{{!}} Occupation {{!}}{{!}} {{{Occupation}}}
| {{#if: {{{qid|}}} | {{!}} Occupation {{!}}{{!}} {{#invoke:WDfetch|getvalue|pid=P106}} }}
{{!}}-
}}
|}</onlyinclude>
|}</onlyinclude>
<noinclude>
<noinclude>
Line 29: Line 16:
{
{
"params": {
"params": {
"Name": {
"type": "string",
"label": "Name of the person",
"description": "Override the name, otherwise fetches from Wikidata or uses the page title."
},
"Birthplace": {
"type": "string",
"label": "Birthplace of the person",
"description": "Override the birthplace, otherwise fetches from Wikidata."
},
"Birthday": {
"type": "date",
"label": "Birthday of the person",
"description": "Override the birthday, otherwise fetches from Wikidata."
},
"Occupation": {
"type": "string",
"label": "Occupation of the person",
"description": "Override the occupation, otherwise fetches from Wikidata."
},
"Death": {
"type": "string",
"label": "Death date of the person",
"description": "Override the death date, otherwise fetches from Wikidata."
},
"qid": {
"qid": {
"type": "string",
"type": "string",
"label": "Wikidata QID",
"label": "Wikidata QID",
"description": "Wikidata QID to fetch all parameters dynamically from Wikidata."
"description": "Mandatory Wikidata QID to fetch all parameters dynamically from Wikidata.",
"required": true
}
}
},
},
"description": "Infobox for a person. Accepts local values or fetches from Wikidata if a QID is provided.",
"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