Difference between revisions of "Template:Event"

From BITPlan cr Wiki
Jump to navigation Jump to search
m (created by WikiTask 2020-07-23T10:47:11Z)
m (created by WikiTask 2020-07-23T10:51:40Z)
Line 18: Line 18:
 
|acronym=
 
|acronym=
 
|city=
 
|city=
 +
|state=
 +
|country=
 
|storemode=subobject
 
|storemode=subobject
 
}}
 
}}
Line 26: Line 28:
 
|acronym=
 
|acronym=
 
|city=
 
|city=
 +
|state=
 +
|country=
 
|storemode=property
 
|storemode=property
 
}}
 
}}
Line 34: Line 38:
 
|acronym=
 
|acronym=
 
|city=
 
|city=
 +
|state=
 +
|country=
 
|storemode=none
 
|storemode=none
 
}}
 
}}
Line 43: Line 49:
 
|acronym=
 
|acronym=
 
|city=
 
|city=
 +
|state=
 +
|country=
 
|viewmode=tableheader
 
|viewmode=tableheader
 
}}
 
}}
Line 51: Line 59:
 
|acronym=
 
|acronym=
 
|city=
 
|city=
 +
|state=
 +
|country=
 
|viewmode=tablerow
 
|viewmode=tablerow
 
}}
 
}}
Line 59: Line 69:
 
|acronym=
 
|acronym=
 
|city=
 
|city=
 +
|state=
 +
|country=
 
|viewmode=tablefooter
 
|viewmode=tablefooter
 
}}
 
}}
Line 67: Line 79:
 
|acronym=
 
|acronym=
 
|city=
 
|city=
 +
|state=
 +
|country=
 
|viewmode=labelfield
 
|viewmode=labelfield
 
}}
 
}}
Line 76: Line 90:
 
{{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}}
 
{{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}}
 
{{#if:{{{?city|}}}|"{{{?city}}}" is city of it <br>|}}
 
{{#if:{{{?city|}}}|"{{{?city}}}" is city of it <br>|}}
 +
{{#if:{{{?state|}}}|"{{{?state}}}" is state of it <br>|}}
 +
{{#if:{{{?country|}}}|"{{{?country}}}" is country of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 82: Line 98:
 
|Event acronym={{{acronym|}}}
 
|Event acronym={{{acronym|}}}
 
|Event city={{{city|}}}
 
|Event city={{{city|}}}
 +
|Event state={{{state|}}}
 +
|Event country={{{country|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
Line 87: Line 105:
 
|Event acronym={{{acronym|}}}
 
|Event acronym={{{acronym|}}}
 
|Event city={{{city|}}}
 
|Event city={{{city|}}}
 +
|Event state={{{state|}}}
 +
|Event country={{{country|}}}
 
}}
 
}}
 
}}
 
}}
Line 92: Line 112:
 
|hidden=
 
|hidden=
 
|masterdetail=
 
|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'
 
|tableheader={{{!}} class='wikitable'
!acronym!!city
+
!acronym!!city!!state!!country
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{acronym|}}}{{!}}{{!}}{{{city|}}}
+
{{!}}{{{acronym|}}}{{!}}{{!}}{{{city|}}}{{!}}{{!}}{{{state|}}}{{!}}{{!}}{{{country|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>city={{#if:{{{city|}}}|[[{{{city|}}}]]|}}<br>|#default={{{!}} class='wikitable'
+
acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>city={{#if:{{{city|}}}|[[{{{city|}}}]]|}}<br>state={{#if:{{{state|}}}|[[{{{state|}}}]]|}}<br>country={{#if:{{{country|}}}|[[{{{country|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Event
 
! colspan='2' {{!}}Event
 
{{!}}-
 
{{!}}-
Line 130: Line 132:
 
!city
 
!city
 
{{!}}&nbsp;{{#if:{{{city|}}}|[[{{{city|}}}]]|}}
 
{{!}}&nbsp;{{#if:{{{city|}}}|[[{{{city|}}}]]|}}
 +
{{!}}-
 +
!state
 +
{{!}}&nbsp;{{#if:{{{state|}}}|[[{{{state|}}}]]|}}
 +
{{!}}-
 +
!country
 +
{{!}}&nbsp;{{#if:{{{country|}}}|[[{{{country|}}}]]|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
Line 143: Line 151:
 
{{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}}
 
{{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}}
 
{{#if:{{{?city|}}}|"{{{?city}}}" is city of it <br>|}}
 
{{#if:{{{?city|}}}|"{{{?city}}}" is city of it <br>|}}
 +
{{#if:{{{?state|}}}|"{{{?state}}}" is state of it <br>|}}
 +
{{#if:{{{?country|}}}|"{{{?country}}}" is country of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|none=
Line 149: Line 159:
 
|Event acronym={{{acronym|}}}
 
|Event acronym={{{acronym|}}}
 
|Event city={{{city|}}}
 
|Event city={{{city|}}}
 +
|Event state={{{state|}}}
 +
|Event country={{{country|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
Line 154: Line 166:
 
|Event acronym={{{acronym|}}}
 
|Event acronym={{{acronym|}}}
 
|Event city={{{city|}}}
 
|Event city={{{city|}}}
 +
|Event state={{{state|}}}
 +
|Event country={{{country|}}}
 
}}
 
}}
 
}}
 
}}
Line 159: Line 173:
 
|hidden=
 
|hidden=
 
|masterdetail=
 
|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'
 
|tableheader={{{!}} class='wikitable'
!acronym!!city
+
!acronym!!city!!state!!country
 
{{!}}-
 
{{!}}-
 
|tablerow=
 
|tablerow=
{{!}}{{{acronym|}}}{{!}}{{!}}{{{city|}}}
+
{{!}}{{{acronym|}}}{{!}}{{!}}{{{city|}}}{{!}}{{!}}{{{state|}}}{{!}}{{!}}{{{country|}}}
 
{{!}}-
 
{{!}}-
 
|tablefooter={{!}}}
 
|tablefooter={{!}}}
 
|labelfield=
 
|labelfield=
acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>city={{#if:{{{city|}}}|[[{{{city|}}}]]|}}<br>|#default={{{!}} class='wikitable'
+
acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>city={{#if:{{{city|}}}|[[{{{city|}}}]]|}}<br>state={{#if:{{{state|}}}|[[{{{state|}}}]]|}}<br>country={{#if:{{{country|}}}|[[{{{country|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Event
 
! colspan='2' {{!}}Event
 
{{!}}-
 
{{!}}-
Line 197: Line 193:
 
!city
 
!city
 
{{!}}&nbsp;{{#if:{{{city|}}}|[[{{{city|}}}]]|}}
 
{{!}}&nbsp;{{#if:{{{city|}}}|[[{{{city|}}}]]|}}
 +
{{!}}-
 +
!state
 +
{{!}}&nbsp;{{#if:{{{state|}}}|[[{{{state|}}}]]|}}
 +
{{!}}-
 +
!country
 +
{{!}}&nbsp;{{#if:{{{country|}}}|[[{{{country|}}}]]|}}
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}

Revision as of 12:51, 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=
|state=
|country=
|storemode=subobject
}}

storemode property

{{Event
|acronym=
|city=
|state=
|country=
|storemode=property
}}

storemode none

{{Event
|acronym=
|city=
|state=
|country=
|storemode=none
}}


viewmode tableheader

{{Event
|acronym=
|city=
|state=
|country=
|viewmode=tableheader
}}

viewmode tablerow

{{Event
|acronym=
|city=
|state=
|country=
|viewmode=tablerow
}}

viewmode tablefooter

{{Event
|acronym=
|city=
|state=
|country=
|viewmode=tablefooter
}}

viewmode labelfield

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

Source

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