Difference between revisions of "Template:Country"

From OPENRESEARCH integration copy Wiki
Jump to navigation Jump to search
(modified through wikirestore by Tim Holzheim)
Line 1: Line 1:
 
 
<noinclude>
 
<noinclude>
 
This is the template {{Link|target=Template:Country|title=}}.
 
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 ====
+
== See also ==
<pre>{{Country
+
*[[:List of Countries]]
|Country name=
+
*[[:Help:Country]]
|Country wikidataid=
+
*[[:Category:Country]]
|storemode=property
+
*[[:Concept:Country]]
}}
+
*[[:Form:Country]]
</pre>
+
*[[:Template:Country]]
 
 
==== 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 ====
+
== Usage ==
<pre>{{Country
+
<pre>
|Country name=
+
{{Country
|Country wikidataid=
 
|viewmode=tablefooter
 
 
}}
 
}}
 
</pre>
 
</pre>
 
+
{{Country
==== 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]]
 
[[Category:Template]]
 
 
</noinclude>
 
</noinclude>
 
 
<includeonly>
 
<includeonly>
{{#switch: {{{storemode|}}}
+
{{#set:isA=Country
|none=
 
|subobject= {{#subobject:-
 
|isA=Country
 
|Country name={{{Country name|}}}
 
|Country wikidataid={{{Country wikidataid|}}}
 
 
}}
 
}}
|#default= {{#set:
 
|isA=Country
 
|Country name={{{Country name|}}}
 
|Country wikidataid={{{Country wikidataid|}}}
 
}}
 
{{#switch: {{{viewmode|}}}
 
|hidden=
 
|masterdetail=
 
|tableheader= {{{!}} class='wikitable'
 
!Country name!!Country wikidataid{{!}}-
 
|tablerow= {{!}} class='wikitable'
 
{{!}}Country name
 
{{!}}{{!}}{{{Country wikidataid|}}}
 
{{!}}-
 
|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
 
{{!}}&nbsp;{{#if:{{{Country name|}}}|{{{Country name|}}}|}}
 
{{!}}-
 
!Country wikidataid
 
{{!}}&nbsp;{{#if:{{{Country wikidataid|}}}|{{{Country wikidataid|}}}|}}
 
{{!}}-
 
  
}}
+
{| class='wikitable'
{{!}}}
+
! colspan=2 |  {{UtfIcon|utf=✎|size=24}}{{Link|target=Special:FormEdit/{{FULLPAGENAME}}|title=edit}} Country
[[Category:Country]]{{#default_form:Country }}</includeonly>
+
|-
 +
|}
 +
 
 +
[[Category:Country]]{{#default_form:Country}}
 +
</includeonly>

Revision as of 22:47, 1 April 2021