Actions

Template

Difference between revisions of "Bob"

From Sonic Retro

(if Sega Retro is moving away from "romsize=" in favour of the Romtable template then I guess Sonic Retro should too)
(139 intermediate revisions by 18 users not shown)
Line 1: Line 1:
{|cellpadding="0" cellspacing="0" style="max-width: 340px; padding: 0px; float: right; margin-left: 15px; border: 2px solid #003399; border-right-width: 2px; border-bottom-width: 2px; text-align:left; background: #FFF"
+
<div itemscope itemtype="http://schema.org/VideoGame">
| style="text-align: center;"|
+
<link itemprop="applicationCategory" href="http://schema.org/GameApplication"/>
{{ #if: {{{screenwidth|}}} | [[Image:{{{bobscreen}}}|{{{screenwidth}}}px]] | [[Image:{{{bobscreen}}}]] }}
+
<span itemprop="operatingSystem" style="display:none">n/a</span>
|-
+
{{#vardefine:type|0}}{{#vardefine:genre|0}}{{BobTable|
|style="padding: 0.3em; font-family: sans-serif; font-size: 0.9em; background-color: #0066CD; color: #FFF; text-align: center;"| '''Fast Facts on ''{{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}'''''
+
{{BobRow||{{{bobscreen|}}}|align=center|default=[[File:Notavailable.svg]]<includeonly>[[Category:No titlescreen]]</includeonly>|content={{#if: {{{bobscreen2|}}} |
|-
+
{{tabs
|style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;" |
+
| hidetitle=yes
{{ #if: {{{publisher|}}} | '''Publisher''': {{{publisher}}}<br> | }}{{
+
| instant=yes
#if: {{{developer|}}} | '''Developer''': {{{developer}}}<br> | }}{{
+
| style=border:none; padding:0px;
#if: {{{system|}}} | '''System(s)''': {{{system}}}<br> | }}{{
+
| orientation=horizontal
#if: {{{europe|}}} | '''Released in EU''': {{{europe}}}<br> | }}{{
+
| width=320px
#if: {{{usa|}}} | '''Released in US''': {{{usa}}}<br> | }}{{
+
| icon1={{{tab1|Image 1}}}
#if: {{{japan|}}} | '''Released in JP''': {{{japan}}}<br> | }}{{
+
| icon2={{{tab2|Image 2}}}
#if: {{{australia|}}} | '''Released in Australia''': {{{australia}}}<br> | }}{{
+
| icon3={{#if:{{{bobscreen3|}}}|{{{tab3|Image 3}}}}}
#if: {{{benelux|}}} | '''Released in Benelux''': {{{benelux}}}<br> | }}{{
+
| content1={{bobscreen|{{{bobscreen}}}}}
#if: {{{brazil|}}} | '''Released in Brazil''': {{{brazil}}}<br> | }}{{
+
| content2={{bobscreen|{{{bobscreen2}}}}}
#if: {{{germany|}}} | '''Released in Germany''': {{{germany}}}<br> | }}{{
+
| content3={{#if:{{{bobscreen3|}}}|{{bobscreen|{{{bobscreen3}}}}}}}
#if: {{{scandinavia|}}} | '''Released in Scandinavia''': {{{scandinavia}}}<br> | }}{{
+
}}
#if: {{{genre|}}} | '''Genre''': {{{genre}}} | }}
+
|{{bobscreen|{{{bobscreen}}}}}}}{{#ifeq: {{fileext|{{{bobscreen}}}}} | jpg | [[Category:JPEG titlescreen]] }}}}
|}<noinclude>
+
{{BobRow||{{{title|}}}|default=''<span itemprop="name">{{PAGENAME}}</span>''|content=''<span itemprop="name">{{{title}}}</span>''|headline=yes|align=center}}
==Usage==
+
{{BobRow||{{{icon|}}}|align=right|content=[[File:{{{icon}}}|32px]]}}
This template is to be used on articles about [[video games]]. Place the following at the top of a page:
+
{{BobRow||{{{publisher|}}}|content='''Publisher:''' <span itemprop="publisher">{{{publisher}}}</span>}}
 +
{{BobRow||{{{developer|}}}|content='''Developer:''' <span itemprop="author">{{{developer}}}</span>}}
 +
{{BobRow|Distributor|{{{distributor|}}}}}
 +
{{BobRow|Publisher(s) of original games|{{{originalpublishers|}}}}}
 +
{{BobRow|Developer(s) of original games|{{{originaldevelopers|}}}}}
 +
{{BobRow|Game total|{{{gamecount|}}}}}
 +
{{BobRow||{{{system|}}}|content='''System(s)''': <span itemprop="gamePlatform">{{{system}}}</span>}}
 +
{{BobRow|Original system(s)|{{{consolescompilation|}}}}}
 +
{{BobRow||{{{romsize|}}}|content='''ROM size''': <span itemprop="fileSize">{{{romsize}}}</span>}}
 +
{{#if: {{{romsize|}}}|<includeonly>[[Category:Use romtable template]]</includeonly> }}
 +
{{BobRow|Save file size|{{{savesize|}}}}}
 +
{{BobRow|Sound driver|{{{sounddriver|}}}}}
 +
{{BobRow|Peripherals supported|{{{peripherals|}}}}}
 +
{{BobRow||{{{genre|}}}|content='''Genre''': <span itemprop="genre">{{{genre}}}</span>}}
 +
{{BobRow|Series|{{{series|}}}}}
 +
{{BobRow||{{{players|}}}|content='''Number of players''': <span itemprop="numberOfPlayers">{{{players}}}</span>}}
 +
{{#if:{{{players|}}}| |<includeonly>[[Category:No players field]]</includeonly>}}
 +
{{BobRow||{{{releases|}}}|nomargin=yes|align=center|content={{releasesHeader}}
 +
{{{releases}}}
 +
{{releasesEnd}}}}
 +
{{BobRow||{{{esrb|}}}{{{vrc|}}}{{{sega|}}}{{{pegi|}}}{{{elspa|}}}{{{bbfc|}}}{{{usk|}}}{{{oflc|}}}{{{adese|}}}{{{sell|}}}{{{cero|}}}{{{grb|}}}{{{csrr|}}}{{{esra|}}}{{{djctq|}}}{{{tectoy|}}}{{{vet|}}}{{{gsrr|}}}|content=
 +
{{#if:{{{esrb|}}}|{{ESRB|{{{esrb}}}}}|}}{{#if:{{{vrc|}}}|{{VRC|{{{vrc}}}}}|}}{{#if:{{{sega|}}}|{{SegaRating|{{{sega}}}}}|}}{{#if:{{{pegi|}}}|{{PEGI|{{{pegi}}}}}|}}{{#if:{{{elspa|}}}|{{ELSPA|{{{elspa}}}}}|}}{{#if:{{{bbfc|}}}|{{BBFC|{{{bbfc}}}}}|}}{{#if:{{{usk|}}}|{{USK|{{{usk}}}}}|}}{{#if:{{{oflc|}}}|{{OFLC|{{{oflc}}}|{{{oflc2|}}}}}|}}{{#if:{{{adese|}}}|{{ADeSe|{{{adese}}}}}|}}{{#if:{{{sell|}}}|{{SELL|{{{sell}}}}}|}}{{#if:{{{cero|}}}|{{CERO|{{{cero}}}|{{{cero2|}}}}}|}}{{#if:{{{grb|}}}|{{GRB|{{{grb}}}}}|}}{{#if:{{{csrr|}}}|{{CSRR|{{{csrr}}}}}|}}{{#if:{{{esra|}}}|{{ESRA|{{{esra}}}}}|}}{{#if:{{{djctq|}}}|{{DJCTQ|{{{djctq}}}}}|}}{{#if:{{{tectoy|}}}|{{TectoyRating|{{{tectoy}}}}}|}}{{#if:{{{vet|}}}|{{VET|{{{vet}}}}}|}}{{#if:{{{gsrr|}}}|{{GSRR|{{{gsrr}}}}}|}}{{#if:{{{gcam|}}}|{{GCAM|{{{gcam}}}}}|}}
 +
}}
 +
}}
 +
</div>
 +
<div style="display:none;">
 +
{{#seo:
 +
|og:image={{filepath:{{#if: {{{bobscreen|}}}|{{{bobscreen}}}|Notavailable.svg}}}}
 +
|og:site_name=Sonic Retro
 +
|title={{PAGENAME}}
 +
|twitter:card=summary_large_image
 +
|twitter:site=@sonicretro
 +
|twitter:image:src={{filepath:{{#if: {{{bobscreen|}}}|{{{bobscreen}}}|Notavailable.svg}}}}
 +
}}</div><noinclude>
 +
This template is to be used on articles about video games. Place the following at the top of a page:
  
 
<pre>
 
<pre>
 
{{Bob
 
{{Bob
 
| bobscreen=
 
| bobscreen=
| screenwidth=
 
 
| title=
 
| title=
 
| publisher=
 
| publisher=
 
| developer=
 
| developer=
 +
| distributor=
 
| system=
 
| system=
| europe=
+
| savesize=
| usa=
+
| sounddriver=
| japan=
+
| peripherals=
| australia=
+
| players=
| benelux=
 
| brazil=
 
| germany=
 
| scandinavia=
 
 
| genre=
 
| genre=
 +
| releases={{releases
 +
...
 +
}}
 +
| vrc=
 +
| sega=
 +
| elspa=
 +
| esrb=
 +
| pegi=
 +
| bbfc=
 +
| usk=
 +
| oflc=
 +
| adese=
 +
| sell=
 +
| djctq=
 +
| cero=
 +
| grb=
 +
| csrr=
 +
| esra=
 +
| tectoy=
 +
| vet=
 +
| gcam=
 
}}
 
}}
 
</pre>
 
</pre>
  
All fields except "bobscreen" are optional.
+
All fields except "bobscreen" are optional. See [[:Template:Releases]] for how to add individual releases and variants of the game.
  
[[Category:Sonic Retro Templates]]</noinclude>
+
Compilation-only fields:
 +
<pre>
 +
|originalpublishers=
 +
|originaldevelopers=
 +
|gamecount=
 +
|consolescompilation=
 +
</pre>
 +
[[Category:Breakout box templates]]</noinclude>

Revision as of 13:34, 15 February 2020

n/a

Notavailable.svg
Bob

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

{{Bob
| bobscreen=
| title=
| publisher=
| developer=
| distributor=
| system=
| savesize=
| sounddriver=
| peripherals=
| players=
| genre=
| releases={{releases
...
}}
| vrc=
| sega=
| elspa=
| esrb=
| pegi=
| bbfc=
| usk=
| oflc=
| adese=
| sell=
| djctq=
| cero=
| grb=
| csrr=
| esra=
| tectoy=
| vet=
| gcam=
}}

All fields except "bobscreen" are optional. See Template:Releases for how to add individual releases and variants of the game.

Compilation-only fields:

|originalpublishers=
|originaldevelopers=
|gamecount=
|consolescompilation=