Template:Organization: Difference between revisions
Appearance
test Tag: Reverted |
revert to wd fetch Tag: Manual revert |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
{| class="float-right wikitable infobox" style="width: 300px;" id="template-organization" summary="Infobox for organizations" | {| class="float-right wikitable infobox" style="width: 300px;" id="template-organization" summary="Infobox for organizations" | ||
{{#unlinkedwikibase: id={{{qid}}} }} | |||
{{#if: {{#invoke:WDfetch|getvalue|pid=P17}} |<nowiki /> | {{#if: {{#invoke:WDfetch|getvalue|pid=P17}} |<nowiki /> | ||
Line 25: | Line 27: | ||
"label": "Wikidata QID", | "label": "Wikidata QID", | ||
"description": "Mandatory Wikidata QID to fetch all parameters dynamically from Wikidata.", | "description": "Mandatory Wikidata QID to fetch all parameters dynamically from Wikidata.", | ||
"required": | "required": true | ||
},"official_name": { | },"official_name": { | ||
"type": "string", | "type": "string", |
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 |