Difference between revisions of "Template:Country"
Jump to navigation
Jump to search
(created by WikiTask 2020-07-22T12:42:52Z) |
(No difference)
|
Revision as of 13:42, 22 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=
|event=
|storemode=subobject
}}
storemode property
{{Country
|name=
|wikidataid=
|event=
|storemode=property
}}
storemode none
{{Country
|name=
|wikidataid=
|event=
|storemode=none
}}
viewmode tableheader
{{Country
|name=
|wikidataid=
|event=
|viewmode=tableheader
}}
viewmode tablerow
{{Country
|name=
|wikidataid=
|event=
|viewmode=tablerow
}}
{{Country
|name=
|wikidataid=
|event=
|viewmode=tablefooter
}}
viewmode labelfield
{{Country
|name=
|wikidataid=
|event=
|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>|}}
{{#if:{{{?event|}}}|"{{{?event}}}" is event of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Country
|Country name={{{name|}}}
|Country wikidataid={{{wikidataid|}}}
|Country event={{{event|}}}
}}
|#default={{#set:
|isA=Country
|Country name={{{name|}}}
|Country wikidataid={{{wikidataid|}}}
|Country event={{{event|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
|tableheader={{{!}} class='wikitable'
!name!!wikidataid!!event
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{wikidataid|}}}{{!}}{{!}}{{{event|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>wikidataid={{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}<br>event={{#if:{{{event|}}}|[[{{{event|}}}]]|}}<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|}}}|}}
{{!}}-
!event
{{!}} {{#if:{{{event|}}}|[[{{{event|}}}]]|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Country]]{{#default_form:Country}}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.