Difference between revisions of "VenueBob"

From Sega Retro

 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#vardefine:type|2}}{|cellpadding="0" cellspacing="0" class="breakout" style="max-width: 340px; padding: 0px; float: right; margin-left: 15px; display: inline; position: relative"
+
{{BobTablePlus|
| style="text-align: center;"|
+
{{BobRowPlus
{{ #if: {{{logos|}}} | {{{logos}}}<br> | }}
+
| if={{{logo|}}}
|-
+
| content=[[File:{{{logo|}}}|320x100px]]
| style="text-align: center;"|
+
| align=center
{{ #if: {{{imgwidth|}}} | [[Image:{{ #if: {{{venueimage|}}} | {{{venueimage}}} | Notavailable.svg }}|{{{imgwidth}}}px]] | [[Image:{{ #if: {{{venueimage|}}} | {{{venueimage}}} | Notavailable.svg }}]] }}{{ #if: {{{imgwidth2|}}} | {{ #if: {{{venueimage2|}}} | [[Image:{{{consoleimage2}}}|{{{imgwidth2}}}px]] |  }} | {{ #if: {{{venueimage2|}}} | [[Image:{{{venueimage2}}}]] | }} }}
+
}}
|-
+
{{BobRowPlus
! '''Fast Facts on the ''{{ #if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}'''''
+
| if={{{venueimage|}}}
|-
+
| align=center
|style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;" |
+
| default=[[File:Notavailable.svg]][[Category:Venue without image]]
{{ #if: {{{location|}}} | '''Location''': {{{location}}}<br> | }}{{
+
| content={{#if: {{{venueimage2|}}}
#if: {{{opened|}}} | '''Opened''': {{{opened}}}<br> | }}{{
+
| {{tabs
#if: {{{closed|}}} | '''Closed''': {{{closed}}}<br> | }}
+
| icon1={{#if:{{{tab1|}}}|{{{tab1}}}|{{{venueimage|}}}}}
|}<noinclude>
+
| icon2={{#if:{{{tab2|}}}|{{{tab2}}}|{{{venueimage2|}}}}}
 +
| content1=[[File:{{{venueimage|}}}|320x240px]]
 +
| content2=[[File:{{{venueimage2|}}}|320x240px]]
 +
| orientation=horizontal
 +
| hidetitle=yes
 +
| tabliststyle=margin:2px;
 +
}}
 +
| [[File:{{{venueimage|}}}|320x240px]]
 +
}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{name|}}}
 +
| default={{PAGENAME}}
 +
| content={{{name}}}
 +
| headline=yes
 +
| align=center
 +
}}
 +
{{BobRowPlus
 +
| if={{{location|}}}
 +
| title=Location
 +
| content={{{location|}}}{{Location2Country|{{{location|}}}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{mapref|}}}
 +
| title=Google maps
 +
| content=[http://www.google.com/maps/@{{{mapref|}}},17z {{{mapref|}}}]
 +
}}
 +
{{BobRowPlus
 +
| if={{{opened|}}}
 +
| title=Opened
 +
| content={{{opened|}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{closed|}}}
 +
| title=Closed
 +
| content={{{closed|}}}{{#vardefine:closedoverride|true}}<!--hack for branding table-->
 +
}}
 +
{{BobRowPlus
 +
| if={{{rebrand|}}}
 +
| title=Rebranded
 +
| content={{{rebrand|}}} {{#if:{{{rebrandas|}}}|(as {{{rebrandas|}}})}}{{#vardefine:closedoverride|true}}<!--hack for branding table-->
 +
}}
 +
}}{{#cargo_store:
 +
_table = venues
 +
|name={{#titleparts:{{PAGENAME}}}}
 +
|location={{{location|}}}
 +
|mapref={{{mapref|}}}
 +
|opened={{stripref|{{{opened|}}}}}
 +
|closed={{stripref|{{{closed|}}}}}{{stripref|{{{rebrand|}}}}}
 +
}}<noinclude>{{#cargo_declare:
 +
_table = venues
 +
|name=Text
 +
|location=Text
 +
|mapref=Text
 +
|opened=Text
 +
|closed=Text
 +
}}
 
==Usage==
 
==Usage==
 
This template is to be used on articles about venues. Place the following at the top of a page:
 
This template is to be used on articles about venues. Place the following at the top of a page:
Line 18: Line 74:
 
<pre>
 
<pre>
 
{{VenueBob
 
{{VenueBob
| logos=
+
| logo=
 
| venueimage=
 
| venueimage=
| imgwidth=
 
 
| name=
 
| name=
 
| location=
 
| location=
 
| opened=
 
| opened=
 
| closed=
 
| closed=
 +
| rebrand=
 +
| rebrandas=
 
}}
 
}}
 
</pre>
 
</pre>
  
All fields except "venueimage" are optional.
+
[[Category:Breakout box templates]]</noinclude>
 
 
[[Category:Breakout Box Templates|{{PAGENAME}}]]</noinclude>
 

Latest revision as of 10:15, 15 September 2023

Notavailable.svg
VenueBob

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

Usage

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

{{VenueBob
| logo=
| venueimage=
| name=
| location=
| opened=
| closed=
| rebrand=
| rebrandas=
}}