Difference between revisions of "Template:Event"
Jump to navigation
Jump to search
m (created by WikiTask 2020-07-22T12:41:58Z) |
m (created by WikiTask 2020-07-23T10:47:11Z) |
||
Line 17: | Line 17: | ||
<pre>{{Event | <pre>{{Event | ||
|acronym= | |acronym= | ||
+ | |city= | ||
|storemode=subobject | |storemode=subobject | ||
}} | }} | ||
Line 24: | Line 25: | ||
<pre>{{Event | <pre>{{Event | ||
|acronym= | |acronym= | ||
+ | |city= | ||
|storemode=property | |storemode=property | ||
}} | }} | ||
Line 31: | Line 33: | ||
<pre>{{Event | <pre>{{Event | ||
|acronym= | |acronym= | ||
+ | |city= | ||
|storemode=none | |storemode=none | ||
}} | }} | ||
Line 39: | Line 42: | ||
<pre>{{Event | <pre>{{Event | ||
|acronym= | |acronym= | ||
+ | |city= | ||
|viewmode=tableheader | |viewmode=tableheader | ||
}} | }} | ||
Line 46: | Line 50: | ||
<pre>{{Event | <pre>{{Event | ||
|acronym= | |acronym= | ||
+ | |city= | ||
|viewmode=tablerow | |viewmode=tablerow | ||
}} | }} | ||
Line 53: | Line 58: | ||
<pre>{{Event | <pre>{{Event | ||
|acronym= | |acronym= | ||
+ | |city= | ||
|viewmode=tablefooter | |viewmode=tablefooter | ||
}} | }} | ||
Line 60: | Line 66: | ||
<pre>{{Event | <pre>{{Event | ||
|acronym= | |acronym= | ||
+ | |city= | ||
|viewmode=labelfield | |viewmode=labelfield | ||
}} | }} | ||
Line 68: | Line 75: | ||
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Event<br>|}} | {{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Event<br>|}} | ||
{{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}} | {{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}} | ||
+ | {{#if:{{{?city|}}}|"{{{?city}}}" is city of it <br>|}} | ||
|#default={{#switch:{{{storemode|}}} | |#default={{#switch:{{{storemode|}}} | ||
|none= | |none= | ||
Line 73: | Line 81: | ||
|isA=Event | |isA=Event | ||
|Event acronym={{{acronym|}}} | |Event acronym={{{acronym|}}} | ||
+ | |Event city={{{city|}}} | ||
}} | }} | ||
|#default={{#set: | |#default={{#set: | ||
|isA=Event | |isA=Event | ||
|Event acronym={{{acronym|}}} | |Event acronym={{{acronym|}}} | ||
+ | |Event city={{{city|}}} | ||
}} | }} | ||
}} | }} | ||
Line 82: | Line 92: | ||
|hidden= | |hidden= | ||
|masterdetail= | |masterdetail= | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= state = | = state = | ||
{{#ask:[[Concept:State]][[State event::{{FULLPAGENAME}}]] | {{#ask:[[Concept:State]][[State event::{{FULLPAGENAME}}]] | ||
Line 110: | Line 111: | ||
}} | }} | ||
|tableheader={{{!}} class='wikitable' | |tableheader={{{!}} class='wikitable' | ||
− | !acronym | + | !acronym!!city |
{{!}}- | {{!}}- | ||
|tablerow= | |tablerow= | ||
− | {{!}}{{{acronym|}}} | + | {{!}}{{{acronym|}}}{{!}}{{!}}{{{city|}}} |
{{!}}- | {{!}}- | ||
|tablefooter={{!}}} | |tablefooter={{!}}} | ||
|labelfield= | |labelfield= | ||
− | acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>|#default={{{!}} class='wikitable' | + | acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>city={{#if:{{{city|}}}|[[{{{city|}}}]]|}}<br>|#default={{{!}} class='wikitable' |
! colspan='2' {{!}}Event | ! colspan='2' {{!}}Event | ||
{{!}}- | {{!}}- | ||
Line 126: | Line 127: | ||
!acronym | !acronym | ||
{{!}} {{#if:{{{acronym|}}}|{{{acronym|}}}|}} | {{!}} {{#if:{{{acronym|}}}|{{{acronym|}}}|}} | ||
+ | {{!}}- | ||
+ | !city | ||
+ | {{!}} {{#if:{{{city|}}}|[[{{{city|}}}]]|}} | ||
{{!}}- | {{!}}- | ||
{{!}}} | {{!}}} | ||
Line 138: | Line 142: | ||
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Event<br>|}} | </noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Event<br>|}} | ||
{{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}} | {{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}} | ||
+ | {{#if:{{{?city|}}}|"{{{?city}}}" is city of it <br>|}} | ||
|#default={{#switch:{{{storemode|}}} | |#default={{#switch:{{{storemode|}}} | ||
|none= | |none= | ||
Line 143: | Line 148: | ||
|isA=Event | |isA=Event | ||
|Event acronym={{{acronym|}}} | |Event acronym={{{acronym|}}} | ||
+ | |Event city={{{city|}}} | ||
}} | }} | ||
|#default={{#set: | |#default={{#set: | ||
|isA=Event | |isA=Event | ||
|Event acronym={{{acronym|}}} | |Event acronym={{{acronym|}}} | ||
+ | |Event city={{{city|}}} | ||
}} | }} | ||
}} | }} | ||
Line 152: | Line 159: | ||
|hidden= | |hidden= | ||
|masterdetail= | |masterdetail= | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= state = | = state = | ||
{{#ask:[[Concept:State]][[State event::{{FULLPAGENAME}}]] | {{#ask:[[Concept:State]][[State event::{{FULLPAGENAME}}]] | ||
Line 180: | Line 178: | ||
}} | }} | ||
|tableheader={{{!}} class='wikitable' | |tableheader={{{!}} class='wikitable' | ||
− | !acronym | + | !acronym!!city |
{{!}}- | {{!}}- | ||
|tablerow= | |tablerow= | ||
− | {{!}}{{{acronym|}}} | + | {{!}}{{{acronym|}}}{{!}}{{!}}{{{city|}}} |
{{!}}- | {{!}}- | ||
|tablefooter={{!}}} | |tablefooter={{!}}} | ||
|labelfield= | |labelfield= | ||
− | acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>|#default={{{!}} class='wikitable' | + | acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>city={{#if:{{{city|}}}|[[{{{city|}}}]]|}}<br>|#default={{{!}} class='wikitable' |
! colspan='2' {{!}}Event | ! colspan='2' {{!}}Event | ||
{{!}}- | {{!}}- | ||
Line 196: | Line 194: | ||
!acronym | !acronym | ||
{{!}} {{#if:{{{acronym|}}}|{{{acronym|}}}|}} | {{!}} {{#if:{{{acronym|}}}|{{{acronym|}}}|}} | ||
+ | {{!}}- | ||
+ | !city | ||
+ | {{!}} {{#if:{{{city|}}}|[[{{{city|}}}]]|}} | ||
{{!}}- | {{!}}- | ||
{{!}}} | {{!}}} |
Revision as of 11:47, 23 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= |city= |storemode=subobject }}
storemode property
{{Event |acronym= |city= |storemode=property }}
storemode none
{{Event |acronym= |city= |storemode=none }}
viewmode tableheader
{{Event |acronym= |city= |viewmode=tableheader }}
viewmode tablerow
{{Event |acronym= |city= |viewmode=tablerow }}
{{Event |acronym= |city= |viewmode=tablefooter }}
viewmode labelfield
{{Event |acronym= |city= |viewmode=labelfield }}
Source (pretty printed)
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Event<br>|}}
{{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}}
{{#if:{{{?city|}}}|"{{{?city}}}" is city of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Event
|Event acronym={{{acronym|}}}
|Event city={{{city|}}}
}}
|#default={{#set:
|isA=Event
|Event acronym={{{acronym|}}}
|Event city={{{city|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
= 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!!city
{{!}}-
|tablerow=
{{!}}{{{acronym|}}}{{!}}{{!}}{{{city|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>city={{#if:{{{city|}}}|[[{{{city|}}}]]|}}<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|}}}|}}
{{!}}-
!city
{{!}} {{#if:{{{city|}}}|[[{{{city|}}}]]|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Event]]{{#default_form:Event}}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.