Difference between revisions of "Template:Country"
Jump to navigation
Jump to search
(created by WikiTask 2020-07-22T12:42:52Z) |
m (created by WikiTask 2020-07-23T10:52:38Z) |
||
Line 18: | Line 18: | ||
|name= | |name= | ||
|wikidataid= | |wikidataid= | ||
− | |||
|storemode=subobject | |storemode=subobject | ||
}} | }} | ||
Line 27: | Line 26: | ||
|name= | |name= | ||
|wikidataid= | |wikidataid= | ||
− | |||
|storemode=property | |storemode=property | ||
}} | }} | ||
Line 36: | Line 34: | ||
|name= | |name= | ||
|wikidataid= | |wikidataid= | ||
− | |||
|storemode=none | |storemode=none | ||
}} | }} | ||
Line 46: | Line 43: | ||
|name= | |name= | ||
|wikidataid= | |wikidataid= | ||
− | |||
|viewmode=tableheader | |viewmode=tableheader | ||
}} | }} | ||
Line 55: | Line 51: | ||
|name= | |name= | ||
|wikidataid= | |wikidataid= | ||
− | |||
|viewmode=tablerow | |viewmode=tablerow | ||
}} | }} | ||
Line 64: | Line 59: | ||
|name= | |name= | ||
|wikidataid= | |wikidataid= | ||
− | |||
|viewmode=tablefooter | |viewmode=tablefooter | ||
}} | }} | ||
Line 73: | Line 67: | ||
|name= | |name= | ||
|wikidataid= | |wikidataid= | ||
− | |||
|viewmode=labelfield | |viewmode=labelfield | ||
}} | }} | ||
Line 83: | Line 76: | ||
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}} | {{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}} | ||
{{#if:{{{?wikidataid|}}}|"{{{?wikidataid}}}" is wikidataid of it <br>|}} | {{#if:{{{?wikidataid|}}}|"{{{?wikidataid}}}" is wikidataid of it <br>|}} | ||
− | |||
|#default={{#switch:{{{storemode|}}} | |#default={{#switch:{{{storemode|}}} | ||
|none= | |none= | ||
Line 90: | Line 82: | ||
|Country name={{{name|}}} | |Country name={{{name|}}} | ||
|Country wikidataid={{{wikidataid|}}} | |Country wikidataid={{{wikidataid|}}} | ||
− | |||
}} | }} | ||
|#default={{#set: | |#default={{#set: | ||
Line 96: | Line 87: | ||
|Country name={{{name|}}} | |Country name={{{name|}}} | ||
|Country wikidataid={{{wikidataid|}}} | |Country wikidataid={{{wikidataid|}}} | ||
− | |||
}} | }} | ||
}} | }} | ||
Line 102: | Line 92: | ||
|hidden= | |hidden= | ||
|masterdetail= | |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' | |tableheader={{{!}} class='wikitable' | ||
− | !name!!wikidataid | + | !name!!wikidataid |
{{!}}- | {{!}}- | ||
|tablerow= | |tablerow= | ||
− | {{!}}{{{name|}}}{{!}}{{!}}{{{wikidataid | + | {{!}}{{{name|}}}{{!}}{{!}}{{{wikidataid|}}} |
{{!}}- | {{!}}- | ||
|tablefooter={{!}}} | |tablefooter={{!}}} | ||
|labelfield= | |labelfield= | ||
− | name={{#if:{{{name|}}}|{{{name|}}}|}}<br>wikidataid={{#if:{{{wikidataid|}}}|{{{wikidataid|}}} | + | name={{#if:{{{name|}}}|{{{name|}}}|}}<br>wikidataid={{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}<br>|#default={{{!}} class='wikitable' |
! colspan='2' {{!}}Country | ! colspan='2' {{!}}Country | ||
{{!}}- | {{!}}- | ||
Line 122: | Line 122: | ||
!wikidataid | !wikidataid | ||
{{!}} {{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}} | {{!}} {{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}} | ||
− | |||
− | |||
− | |||
{{!}}- | {{!}}- | ||
{{!}}} | {{!}}} | ||
Line 138: | Line 135: | ||
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}} | {{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}} | ||
{{#if:{{{?wikidataid|}}}|"{{{?wikidataid}}}" is wikidataid of it <br>|}} | {{#if:{{{?wikidataid|}}}|"{{{?wikidataid}}}" is wikidataid of it <br>|}} | ||
− | |||
|#default={{#switch:{{{storemode|}}} | |#default={{#switch:{{{storemode|}}} | ||
|none= | |none= | ||
Line 145: | Line 141: | ||
|Country name={{{name|}}} | |Country name={{{name|}}} | ||
|Country wikidataid={{{wikidataid|}}} | |Country wikidataid={{{wikidataid|}}} | ||
− | |||
}} | }} | ||
|#default={{#set: | |#default={{#set: | ||
Line 151: | Line 146: | ||
|Country name={{{name|}}} | |Country name={{{name|}}} | ||
|Country wikidataid={{{wikidataid|}}} | |Country wikidataid={{{wikidataid|}}} | ||
− | |||
}} | }} | ||
}} | }} | ||
Line 157: | Line 151: | ||
|hidden= | |hidden= | ||
|masterdetail= | |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' | |tableheader={{{!}} class='wikitable' | ||
− | !name!!wikidataid | + | !name!!wikidataid |
{{!}}- | {{!}}- | ||
|tablerow= | |tablerow= | ||
− | {{!}}{{{name|}}}{{!}}{{!}}{{{wikidataid | + | {{!}}{{{name|}}}{{!}}{{!}}{{{wikidataid|}}} |
{{!}}- | {{!}}- | ||
|tablefooter={{!}}} | |tablefooter={{!}}} | ||
|labelfield= | |labelfield= | ||
− | name={{#if:{{{name|}}}|{{{name|}}}|}}<br>wikidataid={{#if:{{{wikidataid|}}}|{{{wikidataid|}}} | + | name={{#if:{{{name|}}}|{{{name|}}}|}}<br>wikidataid={{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}<br>|#default={{{!}} class='wikitable' |
! colspan='2' {{!}}Country | ! colspan='2' {{!}}Country | ||
{{!}}- | {{!}}- | ||
Line 177: | Line 181: | ||
!wikidataid | !wikidataid | ||
{{!}} {{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}} | {{!}} {{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}} | ||
− | |||
− | |||
− | |||
{{!}}- | {{!}}- | ||
{{!}}} | {{!}}} |
Revision as of 11:52, 23 July 2020
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.