Template:Country: Difference between revisions

From BITPlan cr Wiki
Jump to navigation Jump to search
m (created by WikiTask 2020-10-06T06:25:48Z)
(modified by py-yprinciple-gen 0.2.2)
 
Line 1: Line 1:
<noinclude>
<noinclude><!--
<!--
   --     Copyright (C) 2015-2023 BITPlan GmbH
   -- Copyright (C) 2015-2020 BITPlan GmbH
   --  
   --  
   -- Pater-Delp-Str. -- 1
   --     Pater-Delp-Str. -- 1
   -- D-47877 -- Willich-Schiefbahn
   --     D-47877 -- Willich-Schiefbahn
   --  
   --  
   -- http://www.bitplan.com
   --     http://www.bitplan.com
   --
   --
   --  
   --  
-->
-->
This is the template {{Link|target=Template:Country|title=Country}}.
This is the [https://wiki.bitplan.com/index.php/ProfiWiki BITPlan Y-Prinzip ProfiWiki]-Template for "Country".
It belongs to the concept/topic {{Link|target=:Concept:Country}}<br>
=== see also ===
You may find examples for the use of this template via the {{Link|target=List of Countries}}.
see also
* [[List of Countries]]
* [[Help:Country]]
* [[Concept:Country]]
* [[:Category:Country]]
* [[:Template:Country]]
* [[:Form:Country]]
topic links:* [[:Category:Event]]
 
=== Usage ===
=== Usage ===
==== storemode subobject ====
<pre>{{Country
<pre>{{Country
|name=
|name=
|wikidataid=
|wikidataid=
|storemode=subobject
|storemode=property or subjobject or none"
}}
</pre>
 
==== storemode property ====
<pre>{{Country
|name=
|wikidataid=
|storemode=property
}}
</pre>
 
==== storemode none ====
<pre>{{Country
|name=
|wikidataid=
|storemode=none
}}
</pre>
 
 
==== viewmode tableheader ====
<pre>{{Country
|name=
|wikidataid=
|viewmode=tableheader
}}
</pre>
 
==== viewmode tablerow ====
<pre>{{Country
|name=
|wikidataid=
|viewmode=tablerow
}}
</pre>
 
==== viewmode tablefooter ====
<pre>{{Country
|name=
|wikidataid=
|viewmode=tablefooter
}}
</pre>
 
==== viewmode labelfield ====
<pre>{{Country
|name=
|wikidataid=
|viewmode=labelfield
}}
</pre>
 
=== Source (pretty printed) ===
<source lang='html4strict'>
{{#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 wikidataid = wikidataid
| ?Event homepage = homepage
| ?Event series = series
| ?Event city = city
| ?Event region = region
| ?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
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!wikidataid
{{!}}&nbsp;{{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Country]]{{#default_form:Country}}
</source>
=== Source ===
Click on "Edit" to edit the noinclude-part Source of this Template.
[[Category:Template]]
[[Category:Template]]
 
</noinclude><includeonly>{{#switch:{{{storemode|}}}
</noinclude><includeonly>{{#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=
|none=
|subobject={{#subobject:-
|subobject={{#subobject:-
Line 151: Line 40:
}}
}}
}}
}}
{{#switch: {{{viewmode|}}}
{{{!}} class='wikitable'
|hidden=
|masterdetail=
= event =
{{#ask:[[Concept:Event]][[Event country::{{FULLPAGENAME}}]]
| ?Event acronym = acronym
| ?Event wikidataid = wikidataid
| ?Event homepage = homepage
| ?Event series = series
| ?Event city = city
| ?Event region = region
| ?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
! colspan='2' {{!}}Country
{{!}}-
{{!}}-
Line 182: Line 47:
{{!}}-
{{!}}-
}}
}}
!name
![[Property:Country name|name]]
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name}}}|}}
{{!}}-
{{!}}-
!wikidataid
![[Property:Country wikidataid|wikidataid]]
{{!}}&nbsp;{{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}
{{!}}&nbsp;{{#if:{{{wikidataid|}}}|{{{wikidataid}}}|}}→{{#show: {{PAGENAME}}|?Country wikidataid}}
{{!}}-
{{!}}-
{{!}}}
{{!}}}[[Category:Country]]{{#default_form:Country}}
}}
</includeonly>
}}
[[Category:Country]]{{#default_form:Country}}</includeonly>

Latest revision as of 09:41, 8 March 2023

This is the BITPlan Y-Prinzip ProfiWiki-Template for "Country".

see also

see also

topic links:* Category:Event

Usage

Country
name  
wikidataid  →