Template:Region
Jump to navigation
Jump to search
This is the template Region.
It belongs to the concept/topic Concept:Region
You may find examples for the use of this template via the List of regions.
Usage
storemode subobject
{{Region |name= |wikidataid= |storemode=subobject }}
storemode property
{{Region |name= |wikidataid= |storemode=property }}
storemode none
{{Region |name= |wikidataid= |storemode=none }}
viewmode tableheader
{{Region |name= |wikidataid= |viewmode=tableheader }}
viewmode tablerow
{{Region |name= |wikidataid= |viewmode=tablerow }}
{{Region |name= |wikidataid= |viewmode=tablefooter }}
viewmode labelfield
{{Region |name= |wikidataid= |viewmode=labelfield }}
Source (pretty printed)
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Region<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?wikidataid|}}}|"{{{?wikidataid}}}" is wikidataid of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Region
|Region name={{{name|}}}
|Region wikidataid={{{wikidataid|}}}
}}
|#default={{#set:
|isA=Region
|Region name={{{name|}}}
|Region wikidataid={{{wikidataid|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
= event =
{{#ask:[[Concept:Event]][[Event region::{{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' {{!}}Region
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Region/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!name
{{!}} {{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!wikidataid
{{!}} {{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Region]]{{#default_form:Region}}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.