Difference between revisions of "Template:Country"

From OPENRESEARCH integration copy Wiki
Jump to navigation Jump to search
(modified through wikirestore by Tim Holzheim)
 
 
(11 intermediate revisions by the same user not shown)
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 ====
 
<pre>{{Country
 
|Country name=
 
|Country wikidataid=
 
|storemode=property
 
}}
 
</pre>
 
  
==== storemode none ====
+
== See also ==
<pre>{{Country
+
*[[:List of Countries]]
|Country name=
+
*[[:Help:Country]]
|Country wikidataid=
+
*[[:Category:Country]]
|storemode=none
+
*[[:Concept:Country]]
}}
+
*[[:Form:Country]]
</pre>
+
*[[:Template:Country]]
  
  
==== viewmode tableheader ====
+
== Usage ==
<pre>{{Country
+
<pre>
|Country name=
+
{{Country
|Country wikidataid=
+
|name=Some name
|viewmode=tableheader
+
|wikidataid=Some wikidataid
 
}}
 
}}
 
</pre>
 
</pre>
 
+
{{Country
==== viewmode tablerow ====
+
|name=Some name
<pre>{{Country
+
|wikidataid=Some wikidataid
|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]]
 
[[Category:Template]]
 
 
</noinclude>
 
</noinclude>
 
 
<includeonly>
 
<includeonly>
{{#switch: {{{storemode|}}}
+
{{#set:isA=Country
|none=
+
|Country name={{{name|}}}
|subobject= {{#subobject:-
+
|Country wikidataid={{{wikidataid|}}}
|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
 
{{!}}&nbsp;{{#if:{{{Country name|}}}|{{{Country name|}}}|}}
 
{{!}}-
 
!Country wikidataid
 
{{!}}&nbsp;{{#if:{{{Country wikidataid|}}}|{{{Country wikidataid|}}}|}}
 
{{!}}-
 
  
}}
+
{| class='wikitable'
{{!}}}
+
! colspan=2 | {{#formlink:form=Country|link text=✎|target={{FULLPAGENAME}}|tooltip=Start editing this Country}}Country
[[Category:Country]]{{#default_form:Country }}</includeonly>
+
|-
 +
!style="text-align:left" |[[Country name::@@@|name]]
 +
| {{#if:{{{name|}}}|{{{name|}}}|}}
 +
|-
 +
!style="text-align:left" |[[Country wikidataid::@@@|wikidataid]]
 +
| {{#if:{{{wikidataid|}}}|[[Country wikidataid::{{{wikidataid|}}}]]|}}
 +
|-
 +
|}
 +
 
 +
[[Category:Country]]{{#default_form:Country}}
 +
</includeonly>

Latest revision as of 16:26, 29 April 2021

This is the template Template:Country.

See also


Usage

{{Country
|name=Some name
|wikidataid=Some wikidataid
}}



Country
name Some name
wikidataid Some wikidataid