Difference between revisions of "EventBob"

From Sega Retro

m
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"
+
{{BobTable|
| style="text-align: center;"|
+
{{BobRow||{{{logos|}}}|align=center}}
{{ #if: {{{logos|}}} | {{{logos}}}<br> | }}
+
{{BobRow||{{{eventimage|}}}|align=center|default=[[File:Notavailable.svg]]|content=[[File:{{{eventimage}}}|{{#if:{{{imgwidth|}}}|{{{imgwidth}}}|{{#if:{{{eventimage2|}}}|160|320}}x240}}px]]{{#if:{{{eventimage2|}}}|[[File:{{{eventimage2}}}|{{#if:{{{imgwidth2|}}}|{{{imgwidth2}}}|160x240}}px]]|}}}}
|-
+
{{BobRow||{{{name|}}}|default=Fast facts on {{PAGENAME}}|content=Fast facts on {{{name}}}|headline=yes|align=center}}
| style="text-align: center;"|
+
{{BobRow|Date|{{{startdate|}}}|content={{{startdate}}} {{#if:{{{enddate|}}}|{{{enddate}}}|}}}}
{{ #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}}}]] | }} }}
+
{{BobRow|Location|{{{location|}}}}}
|-
+
{{BobRow|Attendance|{{{attendance|}}}}}
! '''Fast Facts on ''{{ #if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}'''''
+
}}<noinclude>
|-
 
|style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;" |
 
{{ #if: {{{startdate|}}} | '''Date:''': {{{startdate|}}} – {{{enddate|}}}<br> | }}{{
 
#if: {{{location|}}} | '''Location''': {{{location}}}<br> | }}{{
 
#if: {{{variants|}}} | '''Attendance''': {{{variants}}}<br> | }}
 
|}<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 29: Line 23:
 
</pre>
 
</pre>
  
[[Category:Breakout box templates|{{PAGENAME}}]]</noinclude>
+
[[Category:Breakout box templates]]</noinclude>

Revision as of 23:48, 15 July 2015

Notavailable.svg
Fast facts on EventBob

Usage

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

{{EventBob
| logos=
| eventimage=
| imgwidth=
| name=
| startdate=
| enddate=
| location=
| attendance=
}}