Difference between revisions of "Template:Country"
Jump to navigation
Jump to search
Tim Holzheim (talk | contribs) (modified through wikirestore by Tim Holzheim) |
Tim Holzheim (talk | contribs) (modified through wikirestore by Tim Holzheim) |
||
Line 1: | Line 1: | ||
+ | <noinclude> | ||
+ | This is the template {{Link|target=Template:Country|title=}}. | ||
+ | It belongs to the concept/topic {{Link|target=:Concept:Country}}<br> | ||
+ | You may find examples for the use of this template via the {{Link|target=List of Countries}}. | ||
+ | === Usage === | ||
+ | ==== storemode subobject ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |storemode=subobject | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== storemode property ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |storemode=property | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== storemode none ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |storemode=none | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | ==== viewmode tableheader ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |viewmode=tableheader | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== viewmode tablerow ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |viewmode=tablerow | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== viewmode tablefooter ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |viewmode=tablefooter | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== viewmode labelfield ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |viewmode=labelfield | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | === Source === | ||
+ | Click on "Edit" to edit the noinclude-part Source of this Template. | ||
+ | [[Category:Template]] | ||
+ | |||
+ | </noinclude> | ||
+ | |||
+ | <includeonly> | ||
+ | {{#switch: {{{storemode|}}} | ||
+ | |none= | ||
+ | |subobject= {{#subobject:- | ||
+ | |isA=Country|Country Country name={{{Country name|}}} | ||
+ | |Country Country wikidataid={{{Country wikidataid|}}} | ||
+ | }} | ||
+ | |#default= {{#set: | ||
+ | |isA=Country|Country Country name={{{Country name|}}} | ||
+ | |Country Country wikidataid={{{Country wikidataid|}}} | ||
+ | }} | ||
+ | }} | ||
+ | {{#switch: {{{viewmode|}}} | ||
+ | |hidden= | ||
+ | |masterdetail= | ||
+ | |tableheader= {{{!}} class='wikitable' | ||
+ | !Country name!!Country wikidataid{{!}}- | ||
+ | |tablerow= | ||
+ | |tablefooter={{!}}} | ||
+ | |labelfield=Country name={{#if:{{{Country name|}}}|{{{Country name|}}}|}}<br>Country wikidataid={{#if:{{{Country wikidataid|}}}|{{{Country 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//{{FULLPAGENAME}}|title=edit}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | !Country name | ||
+ | {{!}} {{#if:{{{Country name|}}}|{{{Country name|}}}|}} | ||
+ | {{!}}- | ||
+ | !Country wikidataid | ||
+ | {{!}} {{#if:{{{Country wikidataid|}}}|{{{Country wikidataid|}}}|}} | ||
+ | {{!}}- | ||
+ | |||
+ | }} | ||
+ | {{!}}} | ||
+ | [[Category:Country]]{{#default_form:Country }}</includeonly> | ||
+ | <noinclude> | ||
+ | This is the template {{Link|target=Template:Country|title=}}. | ||
+ | It belongs to the concept/topic {{Link|target=:Concept:Country}}<br> | ||
+ | You may find examples for the use of this template via the {{Link|target=List of Countries}}. | ||
+ | === Usage === | ||
+ | ==== storemode subobject ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |storemode=subobject | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== storemode property ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |storemode=property | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== storemode none ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |storemode=none | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | ==== viewmode tableheader ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |viewmode=tableheader | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== viewmode tablerow ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |viewmode=tablerow | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== viewmode tablefooter ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |viewmode=tablefooter | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | ==== viewmode labelfield ==== | ||
+ | <pre>{{Country | ||
+ | |Country name= | ||
+ | |Country wikidataid= | ||
+ | |viewmode=labelfield | ||
+ | }} | ||
+ | </pre> | ||
+ | |||
+ | === Source === | ||
+ | Click on "Edit" to edit the noinclude-part Source of this Template. | ||
+ | [[Category:Template]] | ||
+ | |||
+ | </noinclude> | ||
+ | |||
+ | <includeonly> | ||
+ | {{#switch: {{{storemode|}}} | ||
+ | |none= | ||
+ | |subobject= {{#subobject:- | ||
+ | |isA=Country|Country Country name={{{Country name|}}} | ||
+ | |Country Country wikidataid={{{Country wikidataid|}}} | ||
+ | }} | ||
+ | |#default= {{#set: | ||
+ | |isA=Country|Country Country name={{{Country name|}}} | ||
+ | |Country Country wikidataid={{{Country wikidataid|}}} | ||
+ | }} | ||
+ | }} | ||
+ | {{#switch: {{{viewmode|}}} | ||
+ | |hidden= | ||
+ | |masterdetail= | ||
+ | |tableheader= {{{!}} class='wikitable' | ||
+ | !Country name!!Country wikidataid{{!}}- | ||
+ | |tablerow= | ||
+ | |tablefooter={{!}}} | ||
+ | |labelfield=Country name={{#if:{{{Country name|}}}|{{{Country name|}}}|}}<br>Country wikidataid={{#if:{{{Country wikidataid|}}}|{{{Country 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//{{FULLPAGENAME}}|title=edit}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | !Country name | ||
+ | {{!}} {{#if:{{{Country name|}}}|{{{Country name|}}}|}} | ||
+ | {{!}}- | ||
+ | !Country wikidataid | ||
+ | {{!}} {{#if:{{{Country wikidataid|}}}|{{{Country wikidataid|}}}|}} | ||
+ | {{!}}- | ||
+ | |||
+ | }} | ||
+ | {{!}}} | ||
+ | [[Category:Country]]{{#default_form:Country }}</includeonly> | ||
<noinclude> | <noinclude> | ||
This is the template {{Link|target=Template:Country|title=}}. | This is the template {{Link|target=Template:Country|title=}}. |
Revision as of 20:06, 24 March 2021
This is the template 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 |Country name= |Country wikidataid= |storemode=subobject }}
storemode property
{{Country |Country name= |Country wikidataid= |storemode=property }}
storemode none
{{Country |Country name= |Country wikidataid= |storemode=none }}
viewmode tableheader
{{Country |Country name= |Country wikidataid= |viewmode=tableheader }}
viewmode tablerow
{{Country |Country name= |Country wikidataid= |viewmode=tablerow }}
{{Country |Country name= |Country wikidataid= |viewmode=tablefooter }}
viewmode labelfield
{{Country |Country name= |Country wikidataid= |viewmode=labelfield }}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.
This is the template 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 |Country name= |Country wikidataid= |storemode=subobject }}
storemode property
{{Country |Country name= |Country wikidataid= |storemode=property }}
storemode none
{{Country |Country name= |Country wikidataid= |storemode=none }}
viewmode tableheader
{{Country |Country name= |Country wikidataid= |viewmode=tableheader }}
viewmode tablerow
{{Country |Country name= |Country wikidataid= |viewmode=tablerow }}
{{Country |Country name= |Country wikidataid= |viewmode=tablefooter }}
viewmode labelfield
{{Country |Country name= |Country wikidataid= |viewmode=labelfield }}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.
This is the template 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 |Country name= |Country wikidataid= |storemode=subobject }}
storemode property
{{Country |Country name= |Country wikidataid= |storemode=property }}
storemode none
{{Country |Country name= |Country wikidataid= |storemode=none }}
viewmode tableheader
{{Country |Country name= |Country wikidataid= |viewmode=tableheader }}
viewmode tablerow
{{Country |Country name= |Country wikidataid= |viewmode=tablerow }}
{{Country |Country name= |Country wikidataid= |viewmode=tablefooter }}
viewmode labelfield
{{Country |Country name= |Country wikidataid= |viewmode=labelfield }}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.