Difference between revisions of "EventBob"

From Sega Retro

 
(4 intermediate revisions by one other user not shown)
Line 34: Line 34:
 
| icon1={{#if:{{{tab1|}}}|{{{tab1}}}|{{{eventimage|}}}}}
 
| icon1={{#if:{{{tab1|}}}|{{{tab1}}}|{{{eventimage|}}}}}
 
| icon2={{#if:{{{tab2|}}}|{{{tab2}}}|{{{eventimage2|}}}}}
 
| icon2={{#if:{{{tab2|}}}|{{{tab2}}}|{{{eventimage2|}}}}}
 +
| icon3={{#if:{{{tab3|}}}|{{{tab3}}}|{{{eventimage3|}}}}}
 
| content1=[[File:{{{eventimage}}}|320x240px]]
 
| content1=[[File:{{{eventimage}}}|320x240px]]
 
| content2=[[File:{{{eventimage2}}}|320x240px]]
 
| content2=[[File:{{{eventimage2}}}|320x240px]]
 +
| content3=[[File:{{{eventimage3}}}|320x240px]]
 
| orientation=horizontal
 
| orientation=horizontal
 
| hidetitle=yes
 
| hidetitle=yes
Line 69: Line 71:
 
| if={{{location|}}}
 
| if={{{location|}}}
 
| title=Location
 
| title=Location
| content=<span itemprop="location" itemscope itemtype="https://schema.org/Place">{{{location|}}}</span>
+
| content=<span itemprop="location" itemscope itemtype="https://schema.org/Place">{{CommonEventLocation|{{{location|}}}}}</span>
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
Line 94: Line 96:
 
{{BobPrevNext|{{{prev4|}}}|{{{next4|}}}}}
 
{{BobPrevNext|{{{prev4|}}}|{{{next4|}}}}}
 
}}
 
}}
}}{{#ifeq:{{lc:{{{location|}}}}}|online|[[Category:Online events]]|{{#vardefine:country|{{CountryCheck|{{{location|}}}}}}}
+
}}{{#if:{{NAMESPACE}}||{{#ifeq:{{lc:{{{location|}}}}}|online|[[Category:Online events]]|{{#vardefine:country|{{CountryCheck|{{CommonEventLocation|{{{location|}}}}}}}}}
{{#ifeq:{{#var:country}}|unknown|[[Category:Events in unknown countries]]|[[Category:Events in {{#var:country}}]]}}}}
+
{{#ifeq:{{#var:country}}|unknown|[[Category:Events in unknown countries]]|[[Category:Events in {{#var:country}}]]}}}}}}
 
</div>
 
</div>
 
<div style="display:none;">
 
<div style="display:none;">
Line 122: Line 124:
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
Note that some locations can be detected automatically, see [[Template:CommonEventLocation‎]] for a list.
  
 
[[Category:Breakout box templates]]</noinclude>
 
[[Category:Breakout box templates]]</noinclude>

Latest revision as of 08:04, 20 September 2024

This template defines the table "events". View table.

Notavailable.svg
EventBob

Usage

This template is to be used on articles about video game events. Place the following at the top of a page:

{{EventBob
| logo=
| eventimage=
| name=
| startdate=
| enddate=
| location=
| attendance=
| organizer=
| licensor=
| prev=
| next=
}}

Note that some locations can be detected automatically, see Template:CommonEventLocation‎ for a list.