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)
(87 intermediate revisions by 14 users not shown)
Line 1: Line 1:
{|cellpadding="0" cellspacing="0" class="breakout" style="max-width: 340px; padding: 0px; float: right; margin-left: 15px; display: inline; position: relative"
+
<div itemscope itemtype="http://schema.org/VideoGame">
| style="text-align: center;"|
+
<link itemprop="applicationCategory" href="http://schema.org/GameApplication"/>
{{ #if: {{{screenwidth|}}} | [[Image:{{ #if: {{{bobscreen|}}} | {{{bobscreen}}} | Notavailable.png }}|{{{screenwidth}}}px]] | [[Image:{{ #if: {{{bobscreen|}}} | {{{bobscreen}}} | Notavailable.png }}]] }}
+
<span itemprop="operatingSystem" style="display:none">n/a</span>
|-
+
{{#vardefine:type|0}}{{#vardefine:genre|0}}{{BobTable|
! '''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: {{{romsize|}}} | '''ROM Size''': {{{romsize}}}<br> | }}{{
+
| width=320px
#if: {{{peripherals|}}} | '''Peripherals Supported''': {{{peripherals}}}<br> | }}{{
+
| icon1={{{tab1|Image 1}}}
#if: {{{usa|}}} | '''Released in US''': {{{usa}}}<br> | }}{{
+
| icon2={{{tab2|Image 2}}}
#if: {{{europe|}}} | '''Released in EU''': {{{europe}}}<br> | }}{{
+
| icon3={{#if:{{{bobscreen3|}}}|{{{tab3|Image 3}}}}}
#if: {{{japan|}}} | '''Released in JP''': {{{japan}}}<br> | }}{{
+
| content1={{bobscreen|{{{bobscreen}}}}}
#if: {{{australia|}}} | '''Released in Australia''': {{{australia}}}<br> | }}{{
+
| content2={{bobscreen|{{{bobscreen2}}}}}
#if: {{{benelux|}}} | '''Released in Benelux''': {{{benelux}}}<br> | }}{{
+
| content3={{#if:{{{bobscreen3|}}}|{{bobscreen|{{{bobscreen3}}}}}}}
#if: {{{brazil|}}} | '''Released in Brazil''': {{{brazil}}}<br> | }}{{
+
}}
#if: {{{germany|}}} | '''Released in Germany''': {{{germany}}}<br> | }}{{
+
|{{bobscreen|{{{bobscreen}}}}}}}{{#ifeq: {{fileext|{{{bobscreen}}}}} | jpg | [[Category:JPEG titlescreen]] }}}}
#if: {{{scandinavia|}}} | '''Released in Scandinavia''': {{{scandinavia}}}<br> | }}{{
+
{{BobRow||{{{title|}}}|default=''<span itemprop="name">{{PAGENAME}}</span>''|content=''<span itemprop="name">{{{title}}}</span>''|headline=yes|align=center}}
#if: {{{southkorea|}}} | '''Released in South Korea''': {{{southkorea}}}<br> | }}{{
+
{{BobRow||{{{icon|}}}|align=right|content=[[File:{{{icon}}}|32px]]}}
#if: {{{genre|}}} | '''Genre''': {{{genre}}}<br> | }}{{
+
{{BobRow||{{{publisher|}}}|content='''Publisher:''' <span itemprop="publisher">{{{publisher}}}</span>}}
#if: {{{timeattack|}}} | '''Time Attack''': {{{timeattack}}}<br> | }}{{
+
{{BobRow||{{{developer|}}}|content='''Developer:''' <span itemprop="author">{{{developer}}}</span>}}
#if: {{{esrb|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[ESRB]]'''</small><br> {{ #switch: {{{esrb}}}
+
{{BobRow|Distributor|{{{distributor|}}}}}
| ec = [[Image:ESRB Early Childhood.svg|25px|Early Childhood]]
+
{{BobRow|Publisher(s) of original games|{{{originalpublishers|}}}}}
| e = [[Image:ESRB Everyone.svg|25px|Everyone]]
+
{{BobRow|Developer(s) of original games|{{{originaldevelopers|}}}}}
| e10 = [[Image:ESRB Everyone 10.svg|25px|Everyone 10+]]
+
{{BobRow|Game total|{{{gamecount|}}}}}
| t = [[Image:ESRB Teen.svg|25px|Teen]]
+
{{BobRow||{{{system|}}}|content='''System(s)''': <span itemprop="gamePlatform">{{{system}}}</span>}}
| m = [[Image:ESRB Mature 17.svg|25px|Mature 17+]]
+
{{BobRow|Original system(s)|{{{consolescompilation|}}}}}
| ao = [[Image:ESRB Adults Only 18.svg|25px|Adults Only]]
+
{{BobRow||{{{romsize|}}}|content='''ROM size''': <span itemprop="fileSize">{{{romsize}}}</span>}}
| rp = [[Image:ESRB RP.svg|25px|Rating Pending]]
+
{{#if: {{{romsize|}}}|<includeonly>[[Category:Use romtable template]]</includeonly> }}
| ka = [[Image:ESRB KA.png|25px|Kids to Adults]]
+
{{BobRow|Save file size|{{{savesize|}}}}}
| Missing Parameter!
+
{{BobRow|Sound driver|{{{sounddriver|}}}}}
}}</div> | }}{{
+
{{BobRow|Peripherals supported|{{{peripherals|}}}}}
#if: {{{pegi|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[PEGI]]'''</small><br> {{ #switch: {{{pegi}}}
+
{{BobRow||{{{genre|}}}|content='''Genre''': <span itemprop="genre">{{{genre}}}</span>}}
| 3 = [[Image:Pegi 3.svg|30px|3+]]
+
{{BobRow|Series|{{{series|}}}}}
| 4 = [[Image:Pegi 4.svg|30px|4+]]
+
{{BobRow||{{{players|}}}|content='''Number of players''': <span itemprop="numberOfPlayers">{{{players}}}</span>}}
| 6 = [[Image:Pegi 6.svg|30px|6+]]
+
{{#if:{{{players|}}}| |<includeonly>[[Category:No players field]]</includeonly>}}
| 7 = [[Image:Pegi 7.svg|30px|7+]]
+
{{BobRow||{{{releases|}}}|nomargin=yes|align=center|content={{releasesHeader}}
| 11 = [[Image:Pegi 11.svg|30px|11+]]
+
{{{releases}}}
| 12 = [[Image:Pegi 12.svg|30px|12+]]
+
{{releasesEnd}}}}
| 15 = [[Image:Pegi 15.svg|30px|15+]]
+
{{BobRow||{{{esrb|}}}{{{vrc|}}}{{{sega|}}}{{{pegi|}}}{{{elspa|}}}{{{bbfc|}}}{{{usk|}}}{{{oflc|}}}{{{adese|}}}{{{sell|}}}{{{cero|}}}{{{grb|}}}{{{csrr|}}}{{{esra|}}}{{{djctq|}}}{{{tectoy|}}}{{{vet|}}}{{{gsrr|}}}|content=
| 16 = [[Image:Pegi 16.svg|30px|16+]]
+
{{#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}}}}}|}}
| 18 = [[Image:Pegi 18.svg|30px|18+]]
+
}}
| Missing Parameter!
+
}}
}}</div> | }}{{
+
</div>
#if: {{{bbfc|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[BBFC]]'''</small><br> {{ #switch: {{{bbfc}}}
+
<div style="display:none;">
| u = [[Image:BBFC U.svg|30px|U]]
+
{{#seo:
| uc = [[Image:BBFC UC.svg|30px|Uc]]
+
|og:image={{filepath:{{#if: {{{bobscreen|}}}|{{{bobscreen}}}|Notavailable.svg}}}}
| pg = [[Image:BBFC PG.svg|30px|PG]]
+
|og:site_name=Sonic Retro
| 12 = [[Image:BBFC 12.svg|30px|12]]
+
|title={{PAGENAME}}
| 12a = [[Image:BBFC 12A.svg|30px|12A]]
+
|twitter:card=summary_large_image
| 15 = [[Image:BBFC 15.svg|30px|15]]
+
|twitter:site=@sonicretro
| 18 = [[Image:BBFC 18.svg|30px|18]]
+
|twitter:image:src={{filepath:{{#if: {{{bobscreen|}}}|{{{bobscreen}}}|Notavailable.svg}}}}
| r18 = [[Image:BBFC R18.svg|30px|R18]]
+
}}</div><noinclude>
| Missing Parameter!
 
}}</div> | }}{{
 
#if: {{{usk|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[USK]]'''</small><br> {{ #switch: {{{usk}}}
 
| 0 = [[Image:Usk 0.svg|30px|0]]
 
| 6 = [[Image:Usk 6.svg|30px|6]]
 
| 12 = [[Image:Usk 12.svg|30px|12]]
 
| 16 = [[Image:Usk 16.svg|30px|16]]
 
| 18 = [[Image:Usk 18.svg|30px|18]]
 
| Missing Parameter!
 
}}</div> | }}{{
 
#if: {{{oflc|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[OFLC]]'''</small><br> {{ #switch: {{{oflc}}}
 
| e = [[Image:OFLC small E.svg|30px|E]]
 
| g = [[Image:OFLC small G.svg|30px|G]]
 
| pg = [[Image:OFLC small PG.svg|30px|PG]]
 
| m = [[Image:OFLC small M.svg|30px|M]]
 
| ma = [[Image:OFLC small MA15.svg|30px|MA15]]
 
| r = [[Image:OFLC small R18.svg|30px|R18]]
 
| x = [[Image:OFLC small X18.svg|30px|X18]]
 
| gold = [[Image:OFLC Australia Rating - G.png|30px|G]]
 
| g8 = [[Image:OFLC Australia Rating - G8-.png|30px|G8]]
 
| m15 = [[Image:OFLC Australia Rating - M15-.png|30px|M15]]
 
| ma15 = [[Image:OFLC Australia Rating - MA15-.png|30px|MA15]]
 
| Missing Parameter!
 
}}</div> | }}{{
 
#if: {{{cero|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[CERO]]'''</small><br> {{ #switch: {{{cero}}}
 
| free = [[Image:CEROfree.png|25px|Free]]
 
| a = [[Image:Cero a.png|25px|A]]
 
| b = [[Image:Cero b.png|25px|B]]
 
| c = [[Image:Cero c.png|25px|C]]
 
| d = [[Image:Cero d.png|25px|D]]
 
| z = [[Image:Cero z.png|25px|Z]]
 
| Missing Parameter!
 
}}</div> | }}{{
 
#if: {{{grb|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[GRB]]'''</small><br> {{ #switch: {{{grb}}}
 
| a = [[Image:Grb a.svg|25px|All]]
 
| 12 = [[Image:Grb 12.svg|25px|12]]
 
| 15 = [[Image:Grb 15.svg|25px|15]]
 
| 18 = [[Image:Grb 18.svg|25px|18]]
 
| test = [[Image:Grb test.svg|25px|Test]]
 
| Missing Parameter!
 
}}</div> | }}{{
 
#if: {{{djctq|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[DJCTQ]]'''</small><br> {{ #switch: {{{djctq}}}
 
| l = [[Image:DJCTQ L.svg|30px|Livre]]
 
| er = [[Image:DJCTQ ER.svg|30px|Especialmente recomendado]]
 
| 10 = [[Image:DJCTQ 10.svg|30px|10]]
 
| 12 = [[Image:DJCTQ 12.svg|30px|12]]
 
| 14 = [[Image:DJCTQ 14.svg|30px|14]]
 
| 16 = [[Image:DJCTQ 16.svg|30px|16]]
 
| 18 = [[Image:DJCTQ 18.svg|30px|18]]
 
| Missing Parameter!
 
}}</div> | }}
 
|}<noinclude>
 
==Usage==
 
 
This template is to be used on articles about video games. Place the following at the top of a page:
 
This template is to be used on articles about video games. Place the following at the top of a page:
  
Line 112: Line 59:
 
{{Bob
 
{{Bob
 
| bobscreen=
 
| bobscreen=
| screenwidth=
 
 
| title=
 
| title=
 
| publisher=
 
| publisher=
 
| developer=
 
| developer=
 +
| distributor=
 
| system=
 
| system=
| romsize=
+
| savesize=
 +
| sounddriver=
 
| peripherals=
 
| peripherals=
| europe=
+
| players=
| usa=
 
| japan=
 
| australia=
 
| benelux=
 
| brazil=
 
| germany=
 
| scandinavia=
 
| southkorea=
 
 
| genre=
 
| genre=
| timeattack=
+
| releases={{releases
 +
...
 +
}}
 +
| vrc=
 +
| sega=
 +
| elspa=
 
| esrb=
 
| esrb=
 
| pegi=
 
| pegi=
Line 135: Line 80:
 
| usk=
 
| usk=
 
| oflc=
 
| oflc=
 +
| adese=
 +
| sell=
 
| djctq=
 
| 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:Breakout Box Templates|Bob]]</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=