Difference between revisions of "Template:City"

From BITPlan cr Wiki
Jump to navigation Jump to search
(created by WikiTask 2020-07-22T12:42:28Z)
 
m (created by WikiTask 2020-10-06T06:25:28Z)
 
(4 intermediate revisions by the same user not shown)
Line 18: Line 18:
 
|name=
 
|name=
 
|wikidataid=
 
|wikidataid=
|event=
 
 
|storemode=subobject
 
|storemode=subobject
 
}}
 
}}
Line 27: Line 26:
 
|name=
 
|name=
 
|wikidataid=
 
|wikidataid=
|event=
 
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 36: Line 34:
 
|name=
 
|name=
 
|wikidataid=
 
|wikidataid=
|event=
 
 
|storemode=none
 
|storemode=none
 
}}
 
}}
Line 46: Line 43:
 
|name=
 
|name=
 
|wikidataid=
 
|wikidataid=
|event=
 
 
|viewmode=tableheader
 
|viewmode=tableheader
 
}}
 
}}
Line 55: Line 51:
 
|name=
 
|name=
 
|wikidataid=
 
|wikidataid=
|event=
 
 
|viewmode=tablerow
 
|viewmode=tablerow
 
}}
 
}}
Line 64: Line 59:
 
|name=
 
|name=
 
|wikidataid=
 
|wikidataid=
|event=
 
 
|viewmode=tablefooter
 
|viewmode=tablefooter
 
}}
 
}}
Line 73: Line 67:
 
|name=
 
|name=
 
|wikidataid=
 
|wikidataid=
|event=
 
 
|viewmode=labelfield
 
|viewmode=labelfield
 
}}
 
}}
Line 83: Line 76:
 
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
 
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
 
{{#if:{{{?wikidataid|}}}|"{{{?wikidataid}}}" is wikidataid of it <br>|}}
 
{{#if:{{{?wikidataid|}}}|"{{{?wikidataid}}}" is wikidataid of it <br>|}}
{{#if:{{{?event|}}}|"{{{?event}}}" is event of it <br>|}}
 
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 90: Line 82:
 
|City name={{{name|}}}
 
|City name={{{name|}}}
 
|City wikidataid={{{wikidataid|}}}
 
|City wikidataid={{{wikidataid|}}}
|City event={{{event|}}}
 
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
Line 96: Line 87:
 
|City name={{{name|}}}
 
|City name={{{name|}}}
 
|City wikidataid={{{wikidataid|}}}
 
|City wikidataid={{{wikidataid|}}}
|City event={{{event|}}}
 
 
}}
 
}}
 
}}
 
}}
Line 102: Line 92:
 
|hidden=
 
|hidden=
 
|masterdetail=
 
|masterdetail=
 +
= event =
 +
{{#ask:[[Concept:Event]][[Event city::{{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'
 
|tableheader={{{!}} class='wikitable'
!name!!wikidataid!!event
+
!name!!wikidataid
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{wikidataid|}}}{{!}}{{!}}{{{event|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{wikidataid|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>wikidataid={{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}<br>event={{#if:{{{event|}}}|[[{{{event|}}}]]|}}<br>|#default={{{!}} class='wikitable'
+
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>wikidataid={{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}City
 
! colspan='2' {{!}}City
 
{{!}}-
 
{{!}}-
Line 122: Line 125:
 
!wikidataid
 
!wikidataid
 
{{!}}&nbsp;{{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}
 
{{!}}&nbsp;{{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}
{{!}}-
 
!event
 
{{!}}&nbsp;{{#if:{{{event|}}}|[[{{{event|}}}]]|}}
 
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
Line 138: Line 138:
 
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
 
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
 
{{#if:{{{?wikidataid|}}}|"{{{?wikidataid}}}" is wikidataid of it <br>|}}
 
{{#if:{{{?wikidataid|}}}|"{{{?wikidataid}}}" is wikidataid of it <br>|}}
{{#if:{{{?event|}}}|"{{{?event}}}" is event of it <br>|}}
 
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 145: Line 144:
 
|City name={{{name|}}}
 
|City name={{{name|}}}
 
|City wikidataid={{{wikidataid|}}}
 
|City wikidataid={{{wikidataid|}}}
|City event={{{event|}}}
 
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
Line 151: Line 149:
 
|City name={{{name|}}}
 
|City name={{{name|}}}
 
|City wikidataid={{{wikidataid|}}}
 
|City wikidataid={{{wikidataid|}}}
|City event={{{event|}}}
 
 
}}
 
}}
 
}}
 
}}
Line 157: Line 154:
 
|hidden=
 
|hidden=
 
|masterdetail=
 
|masterdetail=
 +
= event =
 +
{{#ask:[[Concept:Event]][[Event city::{{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'
 
|tableheader={{{!}} class='wikitable'
!name!!wikidataid!!event
+
!name!!wikidataid
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{wikidataid|}}}{{!}}{{!}}{{{event|}}}
+
{{!}}{{{name|}}}{{!}}{{!}}{{{wikidataid|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>wikidataid={{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}<br>event={{#if:{{{event|}}}|[[{{{event|}}}]]|}}<br>|#default={{{!}} class='wikitable'
+
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>wikidataid={{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}City
 
! colspan='2' {{!}}City
 
{{!}}-
 
{{!}}-
Line 177: Line 187:
 
!wikidataid
 
!wikidataid
 
{{!}}&nbsp;{{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}
 
{{!}}&nbsp;{{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}
{{!}}-
 
!event
 
{{!}}&nbsp;{{#if:{{{event|}}}|[[{{{event|}}}]]|}}
 
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}

Latest revision as of 07:25, 6 October 2020

This is the template City. It belongs to the concept/topic Concept:City
You may find examples for the use of this template via the List of Cities.

Usage

storemode subobject

{{City
|name=
|wikidataid=
|storemode=subobject
}}

storemode property

{{City
|name=
|wikidataid=
|storemode=property
}}

storemode none

{{City
|name=
|wikidataid=
|storemode=none
}}


viewmode tableheader

{{City
|name=
|wikidataid=
|viewmode=tableheader
}}

viewmode tablerow

{{City
|name=
|wikidataid=
|viewmode=tablerow
}}

viewmode tablefooter

{{City
|name=
|wikidataid=
|viewmode=tablefooter
}}

viewmode labelfield

{{City
|name=
|wikidataid=
|viewmode=labelfield
}}

Source (pretty printed)

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA City<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?wikidataid|}}}|"{{{?wikidataid}}}" is wikidataid of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=City
|City name={{{name|}}}
|City wikidataid={{{wikidataid|}}}
}}
|#default={{#set:
|isA=City
|City name={{{name|}}}
|City wikidataid={{{wikidataid|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
= event =
{{#ask:[[Concept:Event]][[Event city::{{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' {{!}}City
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/City/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!name
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!wikidataid
{{!}}&nbsp;{{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:City]]{{#default_form:City}}

Source

Click on "Edit" to edit the noinclude-part Source of this Template.