Template:Country
Jump to navigation
Jump to search
This is the template Country.
It belongs to the concept/topic Concept:Country
You may find examples for the use of this template via the List of Countries.
Usage
storemode subobject
{{Country |name= |wikidataid= |storemode=subobject }}
storemode property
{{Country |name= |wikidataid= |storemode=property }}
storemode none
{{Country |name= |wikidataid= |storemode=none }}
viewmode tableheader
{{Country |name= |wikidataid= |viewmode=tableheader }}
viewmode tablerow
{{Country |name= |wikidataid= |viewmode=tablerow }}
{{Country |name= |wikidataid= |viewmode=tablefooter }}
viewmode labelfield
{{Country |name= |wikidataid= |viewmode=labelfield }}
Source (pretty printed)
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Country<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?wikidataid|}}}|"{{{?wikidataid}}}" is wikidataid of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Country
|Country name={{{name|}}}
|Country wikidataid={{{wikidataid|}}}
}}
|#default={{#set:
|isA=Country
|Country name={{{name|}}}
|Country wikidataid={{{wikidataid|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
= event =
{{#ask:[[Concept:Event]][[Event country::{{FULLPAGENAME}}]]
| ?Event acronym = acronym
| ?Event city = city
| ?Event state = state
| ?Event country = country
|sort=Event acronym
|order=ascending
}}
|tableheader={{{!}} class='wikitable'
!name!!wikidataid
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{wikidataid|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>wikidataid={{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Country
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Country/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!name
{{!}} {{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!wikidataid
{{!}} {{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Country]]{{#default_form:Country}}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.