Difference between revisions of "ConsoleBob"

From Sega Retro

 
(15 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"
+
{{#vardefine:type|2}}{{#if:{{{unlicensed|}}}|{{#vardefine:type|-1}}}}{{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: {{{consoleimage|}}} | {{{consoleimage}}} | Notavailable.svg }}|{{{imgwidth}}}px]] | [[Image:{{ #if: {{{consoleimage|}}} | {{{consoleimage}}} | Notavailable.svg }}]] }}{{ #if: {{{imgwidth2|}}} | {{ #if: {{{consoleimage2|}}} | [[Image:{{{consoleimage2}}}|{{{imgwidth2}}}px]] | }} | {{ #if: {{{consoleimage2|}}} | [[Image:{{{consoleimage2}}}]] | }} }}
+
}}
|-
+
{{BobRowPlus
! '''Fast Facts on the ''{{ #if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}'''''
+
| if={{{consoleimage|}}}
|-
+
| content=[[File:{{{consoleimage}}}|{{#if:{{{consoleimage2|}}}|160x240|320x240}}px]]{{#if:{{{consoleimage2|}}}|[[File:{{{consoleimage2|}}}|160x240px]]}}
|style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;" |
+
| default=[[File:Notavailable.svg]]
{{ #if: {{{maker|}}} | '''Made by''': {{{maker}}}<br> | }}{{
+
| align=center
#if: {{{distributor|}}} | '''Distributed by''': {{{distributor}}}<br> | }}{{
+
}}
#if: {{{variants|}}} | '''Variants''': {{{variants}}}<br> | }}{{
+
{{BobRowPlus
#if: {{{add-ons|}}} | '''Add-ons''': {{{add-ons}}}<br> | }}{{
+
| if={{{name|}}}
#if: {{{processor|}}} | '''Processor''': {{{processor}}}<br> | }}{{
+
| headline=yes
#if: {{{internal_games|}}} | '''Built-In Games''': {{{internal_games}}}<br> | }}{{
+
| content={{{name|}}}
  #if: {{{releases|}}} | {{{releases}}} | }}
+
| default={{PAGENAME}}
|}<noinclude>
+
| align=center
 +
}}
 +
{{#vardefine:companyrole|Manufacturer}}{{BobRowPlus
 +
| if={{{maker|}}}
 +
| title=Manufacturer
 +
| content={{#if:{{#pos:{{{maker|}}}|<}}|{{{maker}}}|{{company|{{{maker|}}}}}}}
 +
}}
 +
{{#vardefine:companyrole|Distributor}}{{BobRowPlus
 +
| if={{{distributor|}}}
 +
| title=Distributor
 +
| content={{#if:{{#pos:{{{distributor|}}}|<}}|{{{distributor|}}}|{{company|{{{distributor|}}}}}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{variants|}}}
 +
| title=Variants
 +
| content={{{variants|}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{add-ons|}}}
 +
| title=Add-ons
 +
| content={{{add-ons|}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{internal_games|}}}
 +
| title=Built-in games
 +
| content={{{internal_games|}}}
 +
}}
 +
{{BobRowPlus
 +
| if={{{releases|}}}
 +
| content={{releasesHeader}}
 +
{{{releases|}}}
 +
{{releasesEnd}}
 +
}}
 +
}}
 +
<div style="display:none;">
 +
{{#seo:
 +
  |image={{filepath:{{#if: {{{consoleimage|}}}|{{{consoleimage}}}|Notavailable.svg}}}}
 +
|site_name=Sega Retro
 +
|locale=en_GB
 +
}}</div><noinclude>
 
==Usage==
 
==Usage==
 
This template is to be used on articles about video game consoles. Place the following at the top of a page:
 
This template is to be used on articles about video game consoles. Place the following at the top of a page:
Line 22: Line 61:
 
<pre>
 
<pre>
 
{{ConsoleBob
 
{{ConsoleBob
| logos=
+
| logo=
 
| consoleimage=
 
| consoleimage=
| imgwidth=
 
 
| name=
 
| name=
 
| maker=
 
| maker=
Line 30: Line 68:
 
| variants=
 
| variants=
 
| add-ons=
 
| add-ons=
| processor=
 
 
| internal_games=
 
| internal_games=
 
| releases={{releases
 
| releases={{releases
Line 38: Line 75:
 
</pre>
 
</pre>
  
All fields except "consoleimage" are optional.
+
All fields are optional.
  
[[Category:Breakout box templates|{{PAGENAME}}]]</noinclude>
+
[[Category:Breakout box templates]]</noinclude>

Latest revision as of 08:20, 4 June 2021

Notavailable.svg
ConsoleBob

Usage

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

{{ConsoleBob
| logo=
| consoleimage=
| name=
| maker=
| distributor=
| variants=
| add-ons=
| internal_games=
| releases={{releases
...
}}
}}

All fields are optional.