Actions

Template

Difference between revisions of "Bob"

From Sonic Retro

m
(if Sega Retro is moving away from "romsize=" in favour of the Romtable template then I guess Sonic Retro should too)
 
(22 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<span class="morphMaster" id="LevelBobMaster"></span>
+
<div itemscope itemtype="http://schema.org/VideoGame">
{|cellpadding="0" cellspacing="0" class="breakout" style="max-width: 340px; padding: 0px; float: right; margin-left: 15px; display: inline; position: relative" id="gamebob"
+
<link itemprop="applicationCategory" href="http://schema.org/GameApplication"/>
| style="text-align: center;"|
+
<span itemprop="operatingSystem" style="display:none">n/a</span>
{{ #ifeq: {{{bobscreen|}}} | none | |
+
{{#vardefine:type|0}}{{#vardefine:genre|0}}{{BobTable|
<span style="display:block" id="LevelBobContent1">{{ #if: {{{screenwidth|}}} | [[Image:{{ #if: {{{bobscreen|}}} | {{{bobscreen}}} | Notavailable.svg }}|{{{screenwidth}}}px]] | [[Image:{{ #if: {{{bobscreen|}}} | {{{bobscreen}}} | Notavailable.svg }}]] }}</span>
+
{{BobRow||{{{bobscreen|}}}|align=center|default=[[File:Notavailable.svg]]<includeonly>[[Category:No titlescreen]]</includeonly>|content={{#if: {{{bobscreen2|}}} |
{{ #if: {{{bobscreen2|}}} | <span style="display:none" id="LevelBobContent2">{{ #if: {{{bobscreen2|}}} | [[Image:{{{bobscreen2}}}|{{{screenwidth2}}} px]] | [[Image:{{{bobscreen2}}}]] }}</span><span id="LevelBobLink1">{{{levelscreentitle|Image 1}}}</span> &#124; <span id="LevelBobLink2">{{{levelscreen2title|Image 2}}}</span> }} }}
+
{{tabs
|-
+
| hidetitle=yes
! '''Fast Facts on ''{{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}'''''
+
| instant=yes
|-
+
| style=border:none; padding:0px;
|style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;" |
+
| orientation=horizontal
{{ #if: {{{banner|}}} | [[File:{{{banner}}}{{!}}96px{{!}}right{{!}}{{{bannerdesc|}}}Banner]] | }}{{
+
| width=320px
#if: {{{banners|}}} | {{{banners}}} | }}{{
+
| icon1={{{tab1|Image 1}}}
#if: {{{icon|}}} | [[File:{{{icon}}}{{!}}32px{{!}}right{{!}}{{{icondesc|}}}Icon]] | }}{{
+
| icon2={{{tab2|Image 2}}}
#if: {{{icons|}}} | <div class="floatright">{{{icons}}}</div> | }}{{
+
| icon3={{#if:{{{bobscreen3|}}}|{{{tab3|Image 3}}}}}
#if: {{{publisher|}}} | '''Publisher''': {{{publisher}}}<br> | }}{{
+
| content1={{bobscreen|{{{bobscreen}}}}}
#if: {{{developer|}}} | '''Developer''': {{{developer}}}<br> | }}{{
+
| content2={{bobscreen|{{{bobscreen2}}}}}
#if: {{{producer|}}} | '''Producer''': {{{producer}}}<br> | }}{{
+
| content3={{#if:{{{bobscreen3|}}}|{{bobscreen|{{{bobscreen3}}}}}}}
#if: {{{director|}}} | '''Director''': {{{director}}}<br> | }}{{
+
}}
#if: {{{artdirector|}}} | '''Art Director''': {{{artdirector}}}<br> | }}{{
+
|{{bobscreen|{{{bobscreen}}}}}}}{{#ifeq: {{fileext|{{{bobscreen}}}}} | jpg | [[Category:JPEG titlescreen]] }}}}
#if: {{{originalpublishers|}}} | '''Publisher(s) of Original Games''': {{{originalpublishers}}}<br> | }}{{
+
{{BobRow||{{{title|}}}|default=''<span itemprop="name">{{PAGENAME}}</span>''|content=''<span itemprop="name">{{{title}}}</span>''|headline=yes|align=center}}
#if: {{{originaldevelopers|}}} | '''Developer(s) of Original Games''': {{{originaldevelopers}}}<br> | }}{{
+
{{BobRow||{{{icon|}}}|align=right|content=[[File:{{{icon}}}|32px]]}}
#if: {{{system|}}} | '''System(s)''': {{{system}}}<br> | }}{{
+
{{BobRow||{{{publisher|}}}|content='''Publisher:''' <span itemprop="publisher">{{{publisher}}}</span>}}
#if: {{{romsize|}}} | '''ROM Size''': {{{romsize}}}<br> | }}{{
+
{{BobRow||{{{developer|}}}|content='''Developer:''' <span itemprop="author">{{{developer}}}</span>}}
#if: {{{savesize|}}} | '''Save File Size''': {{{savesize}}}<br> | }}{{
+
{{BobRow|Distributor|{{{distributor|}}}}}
#if: {{{peripherals|}}} | '''Peripherals Supported''': {{{peripherals}}}<br> | }}{{
+
{{BobRow|Publisher(s) of original games|{{{originalpublishers|}}}}}
#if: {{{gamecount|}}} | '''Game Total''': {{{gamecount}}}<br> | }}{{
+
{{BobRow|Developer(s) of original games|{{{originaldevelopers|}}}}}
#if: {{{consolescompilation|}}} | '''Original Console(s)''': {{{consolescompilation}}}<br> | }}{{
+
{{BobRow|Game total|{{{gamecount|}}}}}
#if: {{{genre|}}} | '''Genre''': {{{genre}}}<br> | }}{{
+
{{BobRow||{{{system|}}}|content='''System(s)''': <span itemprop="gamePlatform">{{{system}}}</span>}}
#if: {{{timeattack|}}} | '''Time Attack''': {{{timeattack}}}<br> | }}{{
+
{{BobRow|Original system(s)|{{{consolescompilation|}}}}}
#if: {{{releases|}}} |
+
{{BobRow||{{{romsize|}}}|content='''ROM size''': <span itemprop="fileSize">{{{romsize}}}</span>}}
{{{!}} class="breakout sortable" width="100%" style="max-width:352px" <!--style="float: right; clear: right; margin-left: 15px; "-->
+
{{#if: {{{romsize|}}}|<includeonly>[[Category:Use romtable template]]</includeonly> }}
! <small>Release</small> !! <small>Date</small> !!class="unsortable"{{!}} <small>RRP</small> !!class="unsortable"{{!}} <small>Code</small>
+
{{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}}}
 
{{{releases}}}
{{!}}}
+
{{releasesEnd}}}}
| }}{{
+
{{BobRow||{{{esrb|}}}{{{vrc|}}}{{{sega|}}}{{{pegi|}}}{{{elspa|}}}{{{bbfc|}}}{{{usk|}}}{{{oflc|}}}{{{adese|}}}{{{sell|}}}{{{cero|}}}{{{grb|}}}{{{csrr|}}}{{{esra|}}}{{{djctq|}}}{{{tectoy|}}}{{{vet|}}}{{{gsrr|}}}|content=
#if: {{{released|}}} | '''Released''': {{{released}}}<br> | }}{{
+
{{#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}}}}}|}}
#if: {{{usa|}}} | '''Released in US''': {{{usa}}}[[Category:Migrate to releases]]<br> | }}{{
+
}}
#if: {{{europe|}}} | '''Released in EU''': {{{europe}}}[[Category:Migrate to releases]]<br> | }}{{
+
}}
#if: {{{japan|}}} | '''Released in JP''': {{{japan}}}[[Category:Migrate to releases]]<br> | }}{{
+
</div>
#if: {{{australia|}}} | '''Released in Australia''': {{{australia}}}<br> | }}{{
+
<div style="display:none;">
#if: {{{benelux|}}} | '''Released in Benelux''': {{{benelux}}}<br> | }}{{
+
{{#seo:
#if: {{{brazil|}}} | '''Released in Brazil''': {{{brazil}}}<br> | }}{{
+
|og:image={{filepath:{{#if: {{{bobscreen|}}}|{{{bobscreen}}}|Notavailable.svg}}}}
#if: {{{germany|}}} | '''Released in Germany''': {{{germany}}}<br> | }}{{
+
|og:site_name=Sonic Retro
#if: {{{scandinavia|}}} | '''Released in Scandinavia''': {{{scandinavia}}}<br> | }}{{
+
|title={{PAGENAME}}
#if: {{{southkorea|}}} | '''Released in South Korea''': {{{southkorea}}}<br> | }}{{
+
|twitter:card=summary_large_image
#if: {{{russia|}}} | '''Released in Russia''': {{{russia}}}<br> | }}{{
+
|twitter:site=@sonicretro
#if: {{{rrp_us|}}} | '''Price (US)''': ${{{rrp_us}}}<br> | }}{{
+
|twitter:image:src={{filepath:{{#if: {{{bobscreen|}}}|{{{bobscreen}}}|Notavailable.svg}}}}
#if: {{{rrp_jp|}}} | '''Price (Japan)''': ¥{{{rrp_jp}}}<br> | }}{{
+
}}</div><noinclude>
#if: {{{rrp_uk|}}} | '''Price (UK)''': £{{{rrp_uk}}}<br> | }}{{
 
#if: {{{rrp_eu|}}} | '''Price (Europe)''': €{{{rrp_eu}}}<br> | }}{{
 
#if: {{{rrp_au|}}} | '''Price (Australia)''': ${{{rrp_au}}}<br> | }}{{
 
#if: {{{esrb|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[ESRB]]'''</small><br> {{ #switch: {{{esrb}}}
 
| ec = [[Image:ESRB Early Childhood.svg|25px|Early Childhood]]
 
| e = [[Image:ESRB Everyone.svg|25px|Everyone]]
 
| e10 = [[Image:ESRB Everyone 10.svg|25px|Everyone 10+]]
 
| t = [[Image:ESRB Teen.svg|25px|Teen]]
 
| m = [[Image:ESRB Mature 17.svg|25px|Mature 17+]]
 
| ao = [[Image:ESRB Adults Only 18.svg|25px|Adults Only]]
 
| rp = [[Image:ESRB RP.svg|25px|Rating Pending]]
 
| ka = [[Image:KA ESRB.svg|25px|Kids to Adults]]
 
| Missing Parameter!
 
}}</div> | }}{{
 
#if: {{{vrc|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[VRC]]'''</small><br> {{ #switch: {{{vrc}}}
 
| ga = [[Image:VRC GA.png|25px|GA]]
 
| ma13 = [[Image:VRC MA13.png|30px|MA-13]]
 
| ma17 = [[Image:VRC MA17.png|30px|MA-17]]
 
| Missing Parameter!
 
}}</div> | }}{{
 
#if: {{{pegi|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[PEGI]]'''</small><br> {{ #switch: {{{pegi}}}
 
| 3 = [[Image:Newpegi_3.svg|30px|3+]]
 
| 4 = [[Image:Pegi 4.svg|30px|4+]]
 
| 6 = [[Image:Pegi 6.svg|30px|6+]]
 
| 7 = [[Image:Newpegi_7.svg|30px|7+]]
 
| 11 = [[Image:Pegi 11.svg|30px|11+]]
 
| 12 = [[Image:Newpegi_12.svg|30px|12+]]
 
| 15 = [[Image:Pegi 15.svg|30px|15+]]
 
| 16 = [[Image:Newpegi_16.svg|30px|16+]]
 
| 18 = [[Image:Newpegi_18.svg|30px|18+]]
 
| Missing Parameter!
 
}}</div> | }}{{
 
#if: {{{elspa|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[ELSPA]]'''</small><br> {{ #switch: {{{elspa}}}
 
| 3 = [[Image:ELSPA 3.jpg|40px|3+ OK]]
 
| 11 = [[Image:ELSPA 11.jpg|40px|11+ OK]]
 
| 15 = [[Image:ELSPA 15.jpg|40px|15+ OK]]
 
| 18 = [[Image:ELSPA 18.jpg|40px|18+ OK]]
 
| Missing Parameter!
 
}}</div> | }}{{
 
#if: {{{bbfc|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[BBFC]]'''</small><br> {{ #switch: {{{bbfc}}}
 
| u = [[Image:BBFC U.svg|30px|U]]
 
| uc = [[Image:BBFC UC.svg|30px|Uc]]
 
| pg = [[Image:BBFC PG.svg|30px|PG]]
 
| 12 = [[Image:BBFC 12.svg|30px|12]]
 
| 12a = [[Image:BBFC 12A.svg|30px|12A]]
 
| 15 = [[Image:BBFC 15.svg|30px|15]]
 
| 18 = [[Image:BBFC 18.svg|30px|18]]
 
| r18 = [[Image:BBFC R18.svg|30px|R18]]
 
| Missing Parameter!
 
}}</div> | }}{{
 
#if: {{{usk|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[USK]]'''</small><br> {{ #switch: {{{usk}}}
 
| 0 = [[Image:USK0_new.svg|30px|0]]
 
| 6 = [[Image:USK6_new.svg|30px|6]]
 
| 12 = [[Image:USK12_new.svg|30px|12]]
 
| 16 = [[Image:USK16_new.svg|30px|16]]
 
| 18 = [[Image:USK18_new.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: {{{sell|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[SELL]]'''</small><br> {{ #switch: {{{sell}}}
 
| tp = [[Image:Sell tp.svg|40px|0]]
 
| 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.svg|25px|A]]
 
| b = [[Image:Cero b.svg|25px|B]]
 
| c = [[Image:Cero c.svg|25px|C]]
 
| d = [[Image:Cero d.svg|25px|D]]
 
| z = [[Image:Cero z.svg|25px|Z]]
 
| Missing Parameter!
 
}}</div> | }}{{
 
#if: {{{csrr|}}} | <div style="display:table-cell; text-align:center; padding-right:4px"><small>'''[[CSRR]]'''</small><br> {{ #switch: {{{csrr}}}
 
| general = [[Image:Grb a.svg|25px|General (普遍級)]]
 
| protect = [[Image:Csrr protect.png|25px|Protect (保護級)]]
 
| counsel = [[Image:Grb 15.svg|25px|Counsel (輔導級)]]
 
| restrict = [[Image:Grb 18.svg|25px|Restrict (限制級)]]
 
| 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 164: Line 59:
 
{{Bob
 
{{Bob
 
| bobscreen=
 
| bobscreen=
| screenwidth=
 
| banner=
 
| bannerdesc=
 
| banners=
 
{{GCBanner|<file>}}
 
{{GCBanner|<file>|<description>}}
 
...
 
| icon=
 
| icondesc=
 
| icons=
 
{{icon|<file>}}
 
{{icon|<file>|<description>}}
 
...
 
 
| title=
 
| title=
 
| publisher=
 
| publisher=
 
| developer=
 
| developer=
 +
| distributor=
 
| system=
 
| system=
| romsize=
 
 
| savesize=
 
| savesize=
 +
| sounddriver=
 
| peripherals=
 
| peripherals=
| releases=
+
| players=
{{release|<console>|<region>|<date>|<price>|<product code>}}
+
| genre=
{{release|<console>|<region>|<date>|<price>|<product code>}}
+
| releases={{releases
 
...
 
...
| genre=
+
}}
| timeattack=
+
| vrc=
 +
| sega=
 +
| elspa=
 
| esrb=
 
| esrb=
| vrc=
 
 
| pegi=
 
| pegi=
| elspa=
 
 
| bbfc=
 
| bbfc=
 
| usk=
 
| usk=
 
| oflc=
 
| oflc=
 +
| adese=
 
| sell=
 
| sell=
 
| djctq=
 
| djctq=
Line 202: Line 86:
 
| grb=
 
| grb=
 
| csrr=
 
| 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.
  
 
Compilation-only fields:
 
Compilation-only fields:
Line 214: Line 102:
 
|consolescompilation=
 
|consolescompilation=
 
</pre>
 
</pre>
 
+
[[Category:Breakout box templates]]</noinclude>
[[Category:Breakout box templates|Bob]]</noinclude>
 

Latest 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=