Template:Organization: Difference between revisions
Appearance
Add template |
revert to wd fetch Tag: Manual revert |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{| class="float-right wikitable infobox" style="width: 300px;" id="template | <onlyinclude> | ||
{| class="float-right wikitable infobox" style="width: 300px;" id="template-organization" summary="Infobox for organizations" | |||
{{#unlinkedwikibase: id={{{qid}}} }} | {{#unlinkedwikibase: id={{{qid}}} }} | ||
{{#if: {{#invoke:WDfetch|getvalue|pid=P17}} |<nowiki /> | |||
{{#if: {{#invoke:WDfetch|getvalue|pid= | ! Country | ||
{{!}} {{#invoke:WDfetch|getvalue|pid=P17}}}} | |||
{{!}}- | |||
{{#if: {{#invoke:WDfetch|getvalue|pid=P571}} |<nowiki /> | |||
! Inception | |||
{{!}} | {{!}} {{#invoke:WDfetch|getvalue|pid=P571}}}} | ||
|} | |||
}} | </onlyinclude> | ||
{{!}} | |||
| | |||
<noinclude> | <noinclude> | ||
== Example == | |||
Below is an example usage of this template with a sample Wikidata QID. | |||
{{Organization|qid=Q120730912}} | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | |||
"qid": { | |||
"type": "string", | |||
"label": "Wikidata QID", | |||
"description": "Mandatory Wikidata QID to fetch all parameters dynamically from Wikidata.", | |||
"required": true | |||
},"official_name": { | |||
"type": "string", | |||
"label": "Official Name (P1448)", | |||
"description": "Official name" | |||
}, | |||
"logo": { | |||
"type": "string", | |||
"label": "Logo (P154)", | |||
"description": "Logo image." | |||
}, | |||
"image": { | |||
"type": "string", | |||
"label": "Image (P18)", | |||
"description": "Image." | |||
}, | |||
"headquarters": { | |||
"type": "string", | |||
"label": "Headquarters (P159)", | |||
"description": "Headquarters." | |||
}, | |||
"founding_date": { | |||
"type": "string", | |||
"label": "Founding Date (P571)", | |||
"description": "Founding date." | |||
}, | |||
"dissolution_date": { | |||
"type": "string", | |||
"label": "Dissolution Date (P576)", | |||
"description": "Dissolution date." | |||
}, | |||
"official_website": { | |||
"type": "string", | |||
"label": "Official Website (P856)", | |||
"description": "Official website." | |||
}, | |||
"country": { | |||
"type": "string", | |||
"label": "Country (P17)", | |||
"description": "Country." | |||
}, | |||
"parent_organization": { | |||
"type": "string", | |||
"label": "Parent Organization (P749)", | |||
"description": "Parent organization." | |||
} | |||
}, | |||
"description": "Infobox for an organization. Fetches all parameters dynamically from Wikidata based on the mandatory QID.", | |||
"format": "inline" | |||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 12:36, 2 March 2025
UnlinkedWikibase error: ID '{{{qid}}}' is not in the required format of an integer prefixed with 'Q'.
Country | UnlinkedWikibase error: ⧼unlinkedwikibase-error-statements-entity-not-set⧽ |
---|---|
Inception | UnlinkedWikibase error: ⧼unlinkedwikibase-error-statements-entity-not-set⧽ |
Example
Below is an example usage of this template with a sample Wikidata QID.
Country | Germany |
---|---|
Inception | 30 Nov 1789 |
Infobox for an organization. Fetches all parameters dynamically from Wikidata based on the mandatory QID.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Wikidata QID | qid | Mandatory Wikidata QID to fetch all parameters dynamically from Wikidata. | String | required |
Official Name (P1448) | official_name | Official name | String | optional |
Logo (P154) | logo | Logo image. | String | optional |
Image (P18) | image | Image. | String | optional |
Headquarters (P159) | headquarters | Headquarters. | String | optional |
Founding Date (P571) | founding_date | Founding date. | String | optional |
Dissolution Date (P576) | dissolution_date | Dissolution date. | String | optional |
Official Website (P856) | official_website | Official website. | String | optional |
Country (P17) | country | Country. | String | optional |
Parent Organization (P749) | parent_organization | Parent organization. | String | optional |