Difference between revisions of "Template:Region"
Jump to navigation
Jump to search
(created by WikiTask 2020-10-06T06:14:11Z) |
m (created by WikiTask 2020-10-06T06:35:37Z) |
||
(One intermediate revision by the same user not shown) | |||
Line 12: | Line 12: | ||
This is the template {{Link|target=Template:Region|title=Region}}. | This is the template {{Link|target=Template:Region|title=Region}}. | ||
It belongs to the concept/topic {{Link|target=:Concept:Region}}<br> | It belongs to the concept/topic {{Link|target=:Concept:Region}}<br> | ||
− | You may find examples for the use of this template via the {{Link|target=List of | + | You may find examples for the use of this template via the {{Link|target=List of Regions}}. |
=== Usage === | === Usage === | ||
==== storemode subobject ==== | ==== storemode subobject ==== | ||
Line 93: | Line 93: | ||
|masterdetail= | |masterdetail= | ||
= event = | = event = | ||
− | {{#ask:[[Concept:Event]][[Event | + | {{#ask:[[Concept:Event]][[Event region::{{FULLPAGENAME}}]] |
| ?Event acronym = acronym | | ?Event acronym = acronym | ||
| ?Event wikidataid = wikidataid | | ?Event wikidataid = wikidataid | ||
Line 99: | Line 99: | ||
| ?Event series = series | | ?Event series = series | ||
| ?Event city = city | | ?Event city = city | ||
− | | ?Event | + | | ?Event region = region |
| ?Event country = country | | ?Event country = country | ||
Line 155: | Line 155: | ||
|masterdetail= | |masterdetail= | ||
= event = | = event = | ||
− | {{#ask:[[Concept:Event]][[Event | + | {{#ask:[[Concept:Event]][[Event region::{{FULLPAGENAME}}]] |
| ?Event acronym = acronym | | ?Event acronym = acronym | ||
| ?Event wikidataid = wikidataid | | ?Event wikidataid = wikidataid | ||
Line 161: | Line 161: | ||
| ?Event series = series | | ?Event series = series | ||
| ?Event city = city | | ?Event city = city | ||
− | | ?Event | + | | ?Event region = region |
| ?Event country = country | | ?Event country = country | ||
Latest revision as of 07:35, 6 October 2020
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.