Difference between revisions of "Template:Event"
Jump to navigation
Jump to search
(created by WikiTask 2020-07-22T12:23:17Z) |
m (created by WikiTask 2020-07-22T12:41:58Z) |
||
Line 82: | Line 82: | ||
|hidden= | |hidden= | ||
|masterdetail= | |masterdetail= | ||
+ | = city = | ||
+ | {{#ask:[[Concept:City]][[City event::{{FULLPAGENAME}}]] | ||
+ | | ?City name = name | ||
+ | | ?City wikidataid = wikidataid | ||
+ | | ?City event = event | ||
+ | |||
+ | |sort=City name | ||
+ | |order=ascending | ||
+ | }} | ||
+ | = state = | ||
+ | {{#ask:[[Concept:State]][[State event::{{FULLPAGENAME}}]] | ||
+ | | ?State name = name | ||
+ | | ?State wikidataid = wikidataid | ||
+ | | ?State event = event | ||
+ | |||
+ | |sort=State name | ||
+ | |order=ascending | ||
+ | }} | ||
+ | = country = | ||
+ | {{#ask:[[Concept:Country]][[Country event::{{FULLPAGENAME}}]] | ||
+ | | ?Country name = name | ||
+ | | ?Country wikidataid = wikidataid | ||
+ | | ?Country event = event | ||
+ | |||
+ | |sort=Country name | ||
+ | |order=ascending | ||
+ | }} | ||
|tableheader={{{!}} class='wikitable' | |tableheader={{{!}} class='wikitable' | ||
!acronym | !acronym | ||
Line 125: | Line 152: | ||
|hidden= | |hidden= | ||
|masterdetail= | |masterdetail= | ||
+ | = city = | ||
+ | {{#ask:[[Concept:City]][[City event::{{FULLPAGENAME}}]] | ||
+ | | ?City name = name | ||
+ | | ?City wikidataid = wikidataid | ||
+ | | ?City event = event | ||
+ | |||
+ | |sort=City name | ||
+ | |order=ascending | ||
+ | }} | ||
+ | = state = | ||
+ | {{#ask:[[Concept:State]][[State event::{{FULLPAGENAME}}]] | ||
+ | | ?State name = name | ||
+ | | ?State wikidataid = wikidataid | ||
+ | | ?State event = event | ||
+ | |||
+ | |sort=State name | ||
+ | |order=ascending | ||
+ | }} | ||
+ | = country = | ||
+ | {{#ask:[[Concept:Country]][[Country event::{{FULLPAGENAME}}]] | ||
+ | | ?Country name = name | ||
+ | | ?Country wikidataid = wikidataid | ||
+ | | ?Country event = event | ||
+ | |||
+ | |sort=Country name | ||
+ | |order=ascending | ||
+ | }} | ||
|tableheader={{{!}} class='wikitable' | |tableheader={{{!}} class='wikitable' | ||
!acronym | !acronym |
Revision as of 13:41, 22 July 2020
This is the template Event.
It belongs to the concept/topic Concept:Event
You may find examples for the use of this template via the List of Events.
Usage
storemode subobject
{{Event |acronym= |storemode=subobject }}
storemode property
{{Event |acronym= |storemode=property }}
storemode none
{{Event |acronym= |storemode=none }}
viewmode tableheader
{{Event |acronym= |viewmode=tableheader }}
viewmode tablerow
{{Event |acronym= |viewmode=tablerow }}
{{Event |acronym= |viewmode=tablefooter }}
viewmode labelfield
{{Event |acronym= |viewmode=labelfield }}
Source (pretty printed)
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Event<br>|}}
{{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Event
|Event acronym={{{acronym|}}}
}}
|#default={{#set:
|isA=Event
|Event acronym={{{acronym|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
= city =
{{#ask:[[Concept:City]][[City event::{{FULLPAGENAME}}]]
| ?City name = name
| ?City wikidataid = wikidataid
| ?City event = event
|sort=City name
|order=ascending
}}
= state =
{{#ask:[[Concept:State]][[State event::{{FULLPAGENAME}}]]
| ?State name = name
| ?State wikidataid = wikidataid
| ?State event = event
|sort=State name
|order=ascending
}}
= country =
{{#ask:[[Concept:Country]][[Country event::{{FULLPAGENAME}}]]
| ?Country name = name
| ?Country wikidataid = wikidataid
| ?Country event = event
|sort=Country name
|order=ascending
}}
|tableheader={{{!}} class='wikitable'
!acronym
{{!}}-
|tablerow=
{{!}}{{{acronym|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Event
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Event/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!acronym
{{!}} {{#if:{{{acronym|}}}|{{{acronym|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Event]]{{#default_form:Event}}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.