Jump to content

Template:Organization: Difference between revisions

From Amateur Theatre Wiki
Try this
Tag: Reverted
revert to wd fetch
Tag: Manual revert
 
Line 4: Line 4:




{{#if: {{#statements:P571|from={{{qid|}}}}} |<nowiki />
{{#if: {{#invoke:WDfetch|getvalue|pid=P17}} |<nowiki />
     ! Country  
     ! Country  
     {{!}} {{#statements:P17|from={{{qid|}}}}} }}
     {{!}} {{#invoke:WDfetch|getvalue|pid=P17}}}}
{{!}}-
{{!}}-
{{#if: {{#statements:P571|from={{{qid|}}}}} |<nowiki />
{{#if: {{#invoke:WDfetch|getvalue|pid=P571}} |<nowiki />
     ! Inception  
     ! Inception  
     {{!}} {{#statements:P571|from={{{qid|}}}}} }}
     {{!}} {{#invoke:WDfetch|getvalue|pid=P571}}}}
|}
|}
</onlyinclude>
</onlyinclude>
<noinclude>
<noinclude>
== Example ==
== Example ==
Line 26: 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": false
       "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.



Infobox for an organization. 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
Official Name (P1448)official_name

Official name

Stringoptional
Logo (P154)logo

Logo image.

Stringoptional
Image (P18)image

Image.

Stringoptional
Headquarters (P159)headquarters

Headquarters.

Stringoptional
Founding Date (P571)founding_date

Founding date.

Stringoptional
Dissolution Date (P576)dissolution_date

Dissolution date.

Stringoptional
Official Website (P856)official_website

Official website.

Stringoptional
Country (P17)country

Country.

Stringoptional
Parent Organization (P749)parent_organization

Parent organization.

Stringoptional