Difference between revisions of "Template:City"

From BITPlan cr Wiki
Jump to navigation Jump to search
m (created by WikiTask 2020-07-23T10:56:05Z)
m (created by WikiTask 2020-10-06T06:25:28Z)
 
(2 intermediate revisions by the same user not shown)
Line 95: Line 95:
 
{{#ask:[[Concept:Event]][[Event city::{{FULLPAGENAME}}]]
 
{{#ask:[[Concept:Event]][[Event city::{{FULLPAGENAME}}]]
 
| ?Event acronym = acronym
 
| ?Event acronym = acronym
 +
| ?Event wikidataid = wikidataid
 +
| ?Event homepage = homepage
 +
| ?Event series = series
 
| ?Event city = city
 
| ?Event city = city
| ?Event state = state
+
| ?Event region = region
 
| ?Event country = country
 
| ?Event country = country
  
Line 154: Line 157:
 
{{#ask:[[Concept:Event]][[Event city::{{FULLPAGENAME}}]]
 
{{#ask:[[Concept:Event]][[Event city::{{FULLPAGENAME}}]]
 
| ?Event acronym = acronym
 
| ?Event acronym = acronym
 +
| ?Event wikidataid = wikidataid
 +
| ?Event homepage = homepage
 +
| ?Event series = series
 
| ?Event city = city
 
| ?Event city = city
| ?Event state = state
+
| ?Event region = region
 
| ?Event country = country
 
| ?Event country = country
  

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.