Difference between revisions of "ConsoleBob"

From Sega Retro

 
(2 intermediate revisions by 2 users not shown)
Line 18: Line 18:
 
| align=center
 
| align=center
 
}}
 
}}
{{BobRowPlus
+
{{#vardefine:companyrole|Manufacturer}}{{BobRowPlus
 
| if={{{maker|}}}
 
| if={{{maker|}}}
 
| title=Manufacturer
 
| title=Manufacturer
| content={{{maker|}}}
+
| content={{#if:{{#pos:{{{maker|}}}|<}}|{{{maker}}}|{{company|{{{maker|}}}}}}}
 
}}
 
}}
{{BobRowPlus
+
{{#vardefine:companyrole|Distributor}}{{BobRowPlus
 
| if={{{distributor|}}}
 
| if={{{distributor|}}}
| title=Distributor(s)
+
| title=Distributor
| content={{{distributor|}}}
+
| content={{#if:{{#pos:{{{distributor|}}}|<}}|{{{distributor|}}}|{{company|{{{distributor|}}}}}}}
 
}}
 
}}
 
{{BobRowPlus
 
{{BobRowPlus
Line 49: Line 49:
 
{{releasesEnd}}
 
{{releasesEnd}}
 
}}
 
}}
}}{{#seo:
+
}}
  |og:image={{filepath:{{#if: {{{consoleimage|}}}|{{{consoleimage}}}|Notavailable.svg}}}}
+
<div style="display:none;">
  |og:site_name=Sega Retro
+
{{#seo:
  |title={{PAGENAME}}
+
  |image={{filepath:{{#if: {{{consoleimage|}}}|{{{consoleimage}}}|Notavailable.svg}}}}
|twitter:card=summary_large_image
+
  |site_name=Sega Retro
|twitter:site=@segaretro
+
  |locale=en_GB
|twitter:image:src={{filepath:{{#if: {{{consoleimage|}}}|{{{consoleimage}}}|Notavailable.svg}}}}
+
  }}</div><noinclude>
  }}<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 62: Line 61:
 
<pre>
 
<pre>
 
{{ConsoleBob
 
{{ConsoleBob
| logos=
+
| logo=
 
| consoleimage=
 
| consoleimage=
 
| name=
 
| name=

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.