Difference between revisions of "EventBob"

From Sega Retro

(Created page with "{{#vardefine:type|2}}{|cellpadding="0" cellspacing="0" class="breakout" style="width:auto !important; max-width: 340px; padding: 0px; float: right; margin-left: 15px; display:...")
 
m (Dates ranges are marked with en dashes; not sure how I missed this before)
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#vardefine:type|2}}{|cellpadding="0" cellspacing="0" class="breakout" style="width:auto !important; max-width: 340px; padding: 0px; float: right; margin-left: 15px; display: inline; position: relative"
+
<span style="display:none;"><includeonly>{{#cargo_store:
| style="text-align: center;"|
+
_table = events
{{ #if: {{{logos|}}} | {{{logos}}}<br> | }}
+
| name={{#titleparts:{{PAGENAME}}}}
|-
+
| startdate={{stripref|{{#sub:{{{startdate|}}}|0|10}}}}
| style="text-align: center;"|
+
| enddate={{stripref|{{#sub:{{{enddate|}}}|0|10}}}}
{{ #if: {{{imgwidth|}}} | [[Image:{{ #if: {{{eventimage|}}} | {{{eventimage}}} | Notavailable.svg }}|{{{imgwidth}}}px]] | [[Image:{{ #if: {{{eventimage|}}} | {{{eventimage}}} | Notavailable.svg }}]] }}{{ #if: {{{imgwidth2|}}} | {{ #if: {{{eventimage2|}}} | [[Image:{{{eventimage2}}}|{{{imgwidth2}}}px]] | }} | {{ #if: {{{eventimage2|}}} | [[Image:{{{eventimage2}}}]] }} }}
+
| location={{{location|}}}
|-
+
| attendance={{stripref|{{{attendance|}}}}}
! '''Fast Facts on ''{{ #if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}'''''
+
}}</includeonly><noinclude>{{#cargo_declare:
|-
+
_table = events
|style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;" |
+
| name=text
{{ #if: {{{startdate|}}} | '''Date:''': {{{startdate|}}} - {{{enddate|}}}<br> | }}{{
+
| startdate=text
#if: {{{location|}}} | '''Location''': {{{location}}}<br> | }}{{
+
| enddate=text
#if: {{{variants|}}} | '''Attendance''': {{{variants}}}<br> | }}
+
| location=text
|}<noinclude>
+
| attendance=integer
 +
}}</noinclude></span>
 +
<div itemscope itemtype='http://schema.org/Event'>
 +
<meta itemprop="name" content="{{PAGENAME}}">
 +
<meta itemprop="image" content="{{filepath:{{{eventimage}}}}}">
 +
{{BobTablePlus|
 +
{{BobRowPlus
 +
| if={{{logo|}}}
 +
| content=[[File:{{{logo}}}|320x100px]]
 +
| align=center
 +
}}
 +
{{BobRowPlus
 +
| if={{{eventimage|}}}
 +
| align=center
 +
| default={{#ifeq:{{{noeventimage|}}}|yes||[[File:Notavailable.svg]]}}
 +
| content={{#if: {{{eventimage2|}}}
 +
| {{tabs
 +
| icon1={{#if:{{{tab1|}}}|{{{tab1}}}|{{{eventimage|}}}}}
 +
| icon2={{#if:{{{tab2|}}}|{{{tab2}}}|{{{eventimage2|}}}}}
 +
| content1=[[File:{{{eventimage}}}|320x240px]]
 +
| content2=[[File:{{{eventimage2}}}|320x240px]]
 +
| orientation=horizontal
 +
| hidetitle=yes
 +
| tabliststyle=margin:2px;
 +
}}
 +
| {{#ifeq:{{{noeventimage|}}}|yes||[[File:{{{eventimage}}}|320x240px]]}}
 +
}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{name|}}}
 +
| default={{PAGENAME}}
 +
| content={{{name}}}
 +
| headline=yes
 +
| align=center
 +
}}
 +
{{BobRowPlus
 +
| if={{{startdate|}}}
 +
| title=Date
 +
| content=<span itemprop="startDate">{{{startdate}}}</span> {{#if:{{{enddate|}}}|&ndash; <span itemprop="endDate">{{{enddate}}}</span>}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{location|}}}
 +
| title=Location
 +
| content=<span itemprop="location" itemscope itemtype="https://schema.org/Place">{{{location|}}}</span>
 +
}}
 +
{{BobRowPlus
 +
| if={{{attendance|}}}
 +
| title=Attendance
 +
| content={{{attendance|}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{organizer|}}}
 +
| title=Organizer
 +
| content=<span itemprop="organizer">{{{organizer|}}}</span>
 +
}}
 +
}}
 +
</div>
 +
<div style="display:none;">
 +
{{#seo:
 +
|image={{filepath:{{{eventimage}}}}}
 +
|site_name=Sega Retro
 +
|locale=en_GB
 +
}}</div>
 +
<noinclude>
 
==Usage==
 
==Usage==
 
This template is to be used on articles about video game events. Place the following at the top of a page:
 
This template is to be used on articles about video game events. Place the following at the top of a page:
Line 18: Line 81:
 
<pre>
 
<pre>
 
{{EventBob
 
{{EventBob
| logos=
+
| logo=
 
| eventimage=
 
| eventimage=
| imgwidth=
 
 
| name=
 
| name=
 
| startdate=
 
| startdate=
Line 26: Line 88:
 
| location=
 
| location=
 
| attendance=
 
| attendance=
 +
| organizer=
 
}}
 
}}
 
</pre>
 
</pre>
  
[[Category:Breakout box templates|{{PAGENAME}}]]</noinclude>
+
[[Category:Breakout box templates]]</noinclude>

Revision as of 11:44, 9 January 2021

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=
}}