Template:City

From BITPlan cr Wiki
Revision as of 13:42, 22 July 2020 by Wf (talk | contribs) (created by WikiTask 2020-07-22T12:42:28Z)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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=
|event=
|storemode=subobject
}}

storemode property

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

storemode none

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


viewmode tableheader

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

viewmode tablerow

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

viewmode tablefooter

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

viewmode labelfield

{{City
|name=
|wikidataid=
|event=
|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>|}}
{{#if:{{{?event|}}}|"{{{?event}}}" is event of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=City
|City name={{{name|}}}
|City wikidataid={{{wikidataid|}}}
|City event={{{event|}}}
}}
|#default={{#set:
|isA=City
|City name={{{name|}}}
|City wikidataid={{{wikidataid|}}}
|City event={{{event|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
|tableheader={{{!}} class='wikitable'
!name!!wikidataid!!event
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{wikidataid|}}}{{!}}{{!}}{{{event|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>wikidataid={{#if:{{{wikidataid|}}}|{{{wikidataid|}}}|}}<br>event={{#if:{{{event|}}}|[[{{{event|}}}]]|}}<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|}}}|}}
{{!}}-
!event
{{!}}&nbsp;{{#if:{{{event|}}}|[[{{{event|}}}]]|}}
{{!}}-
{{!}}}
}}
}}
[[Category:City]]{{#default_form:City}}

Source

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