Actions

Template

Difference between revisions of "ConsoleBob"

From NEC Retro

(Created page with "{{#vardefine:type|2}}{{BobTable| {{BobRow||{{{logos|}}}|align=center}} {{BobRow||{{{consoleimage|}}}|align=center|default=File:Notavailable.svg|content=File:{{{consoleim...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#vardefine:type|2}}{{BobTable|
+
{{#vardefine:type|2}}{{#if:{{{unlicensed|}}}|{{#vardefine:type|-1}}}}{{BobTablePlus|
{{BobRow||{{{logos|}}}|align=center}}
+
{{BobRowPlus
{{BobRow||{{{consoleimage|}}}|align=center|default=[[File:Notavailable.svg]]|content=[[File:{{{consoleimage}}}|{{#if:{{{imgwidth|}}}|{{{imgwidth}}}|{{#if:{{{consoleimage2|}}}|160|320}}x240}}px]]{{#if:{{{consoleimage2|}}}|[[File:{{{consoleimage2}}}|{{#if:{{{imgwidth2|}}}|{{{imgwidth2}}}|160x240}}px]]|}}}}
+
| if={{{logo|}}}
{{BobRow||{{{name|}}}|default={{PAGENAME}}|content=Fast facts on {{{name}}}|headline=yes|align=center}}
+
| content=[[File:{{{logo}}}|320x100px]]
{{BobRow|Manufacturer|{{{maker|}}}}}
+
| align=center
{{BobRow|Distributor(s)|{{{distributor|}}}}}
+
}}
{{BobRow|Variants|{{{variants|}}}}}
+
{{BobRowPlus
{{BobRow|Add-ons|{{{add-ons|}}}}}
+
| if={{{consoleimage|}}}
{{BobRow||{{{releases|}}}|align=center|content={{releasesHeader}}
+
| content=[[File:{{{consoleimage}}}|{{#if:{{{consoleimage2|}}}|160x240|320x240}}px]]{{#if:{{{consoleimage2|}}}|[[File:{{{consoleimage2|}}}|160x240px]]}}
{{{releases}}}
+
| default=[[File:Notavailable.svg]]
{{releasesEnd}}}}
+
| align=center
}}{{#seo:
+
}}
|og:image={{filepath:{{#if: {{{consoleimage|}}}|{{{consoleimage}}}|Notavailable.svg}}}}
+
{{BobRowPlus
|og:site_name=NEC Retro
+
| if={{{name|}}}
|title={{PAGENAME}}
+
| headline=yes
|twitter:card=summary_large_image
+
| content={{{name|}}}
|twitter:site=@necretro
+
| default={{PAGENAME}}
  |twitter:image:src={{filepath:{{#if: {{{consoleimage|}}}|{{{consoleimage}}}|Notavailable.svg}}}}
+
| align=center
  }}<noinclude>
+
}}
 +
{{#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=NEC 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 23: Line 61:
 
<pre>
 
<pre>
 
{{ConsoleBob
 
{{ConsoleBob
| logos=
+
| logo=
 
| consoleimage=
 
| consoleimage=
| imgwidth=
 
 
| name=
 
| name=
 
| maker=
 
| maker=
Line 31: Line 68:
 
| variants=
 
| variants=
 
| add-ons=
 
| add-ons=
 +
| internal_games=
 
| releases={{releases
 
| releases={{releases
 
+
...
 
}}
 
}}
 
}}
 
}}
 
</pre>
 
</pre>
  
All fields except "consoleimage" are optional.
+
All fields are optional.
  
 
[[Category:Breakout box templates]]</noinclude>
 
[[Category:Breakout box templates]]</noinclude>

Latest revision as of 19:01, 31 December 2021

Notavailable.svg
ConsoleBob

{{#seo:

|image=https://necretro.org/images/0/0b/Notavailable.svg
|site_name=NEC Retro
|locale=en_GB
}}

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.