Actions

Template

Difference between revisions of "LevelBob"

From Sonic Retro

(Added a few options so that both the Genesis and Saturn/PC versions of Sonic 3D can have their OSVs on the infobox, not just the Genesis version.)
m
 
(132 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{|cellpadding="0" cellspacing="0" style="max-width: 340px; padding: 0px; float: right; margin-left: 15px;" class="breakout" clear="right"
+
{{BobTable|
| style="text-align: center;"|
+
{{BobRow||{{{levelscreen|}}}|align=center|default=[[File:Notavailable.svg]]<includeonly>[[Category:No titlescreen]]</includeonly>|content={{#if: {{{levelscreen2|}}}|
{{ #if: {{{screenwidth|}}} | [[Image:{{ #if: {{{levelscreen|}}} | {{{levelscreen}}} | Notavailable.png }}|{{{screenwidth}}}px]] | [[Image:{{ #if: {{{levelscreen|}}} | {{{levelscreen}}} | Notavailable.png }}]] }}
+
{{tabs
|-
+
| hidetitle=yes
! {{ #if: {{{name|}}} | '''{{{name}}}''' | '''{{PAGENAME}}''' }}
+
| instant=yes
|-
+
| style=border:none; padding:0px;
|style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;" |
+
| orientation=horizontal
'''{{ #if: {{{levelno|}}} | {{{levelno}}} level, | Level, }} ''[[{{{game}}}]]'''''<br/>
+
| width=320px
{{ #if: {{{acts|}}} | '''Number of Acts''': {{{acts}}}<br/> | }}{{  
+
| icon1={{{levelscreentitle|Image 1}}}
#if: {{{cliche|}}} | '''Level cliché{{ #if: {{{cliche2|}}} | s }}''': [[{{{cliche}}} cliché]]{{ #if: {{{cliche2|}}} | , [[{{{cliche2}}} cliché]] }}<br/> | }}{{  
+
| icon2={{{levelscreen2title|Image 2}}}
#if: {{{act1cliche|}}} | '''Act 1 cliché{{ #if: {{{act1cliche2|}}} | s }}''': [[{{{act1cliche}}} cliché]]{{ #if: {{{act1cliche2|}}} | , [[{{{act1cliche2}}} cliché]] }}<br/> | }}{{  
+
| icon3={{#if:{{{levelscreen3|}}}|{{{levelscreen3title|Image 3}}}}}
#if: {{{act2cliche|}}} | '''Act 2 cliché{{ #if: {{{act2cliche2|}}} | s }}''': [[{{{act2cliche}}} cliché]]{{ #if: {{{act2cliche2|}}} | , [[{{{act2cliche2}}} cliché]] }}<br/> | }}{{
+
| icon4={{#if:{{{levelscreen4|}}}|{{{levelscreen4title|Image 4}}}}}
#if: {{{boss|}}} | '''Boss''': [[{{{boss}}}]]<br/> | }}{{
+
| icon5={{#if:{{{levelscreen5|}}}|{{{levelscreen5title|Image 5}}}}}
#if: {{{subboss|}}} | '''Sub-boss''': [[{{{subboss}}}]]<br/> | }}{{
+
| icon6={{#if:{{{levelscreen6|}}}|{{{levelscreen6title|Image 6}}}}}
#if: {{{subboss2|}}} | '''Sub-boss for Act 2''':  [[{{{subboss2}}}]]<br/> | }}{{
+
| icon7={{#if:{{{levelscreen7|}}}|{{{levelscreen7title|Image 7}}}}}
#if: {{{osv|}}} | '''OSV''': {{{osv}}}<br/>| }}{{
+
| icon8={{#if:{{{levelscreen8|}}}|{{{levelscreen8title|Image 8}}}}}
#if: {{{map|}}} | '''Level Map''': [[{{{map}}}]]<br/> | }}{{
+
| icon9={{#if:{{{levelscreen9|}}}|{{{levelscreen9title|Image 9}}}}}
#if: {{{rings1|}}} | '''Maximum Rings, Act 1''': {{{rings1}}}<br/> | }}{{
+
| content1={{bobscreen|{{{levelscreen}}}}}
#if: {{{rings2|}}} | '''Maximum Rings, Act 2''': {{{rings2}}}<br/> | }}{{
+
| content2={{bobscreen|{{{levelscreen2}}}}}
#if: {{{rings3|}}} | '''Maximum Rings, Act 3''': {{{rings3}}}<br/> | }}{{
+
| content3={{#if:{{{levelscreen3|}}}|{{bobscreen|{{{levelscreen3}}}}}}}
#if: {{{underwater|}}} | '''Underwater areas''': {{{underwater}}}<br/> | }}{{
+
| content4={{#if:{{{levelscreen4|}}}|{{bobscreen|{{{levelscreen4}}}}}}}
#if: {{{prereq|}}} | '''Prerequisite''': {{{prereq}}}<br/> | }}{{
+
| content5={{#if:{{{levelscreen5|}}}|{{bobscreen|{{{levelscreen5}}}}}}}
#if: {{{music|}}} | '''Music:'''<br/>{{{music}}} | }}{{
+
| content6={{#if:{{{levelscreen6|}}}|{{bobscreen|{{{levelscreen6}}}}}}}
#if: {{{music1|}}} | '''Act 1:'''<br/>{{{music1}}} | }}{{
+
| content7={{#if:{{{levelscreen7|}}}|{{bobscreen|{{{levelscreen7}}}}}}}
#if: {{{music2|}}} | <br/>'''Act 2:'''<br/>{{{music2}}} | }}{{
+
| content8={{#if:{{{levelscreen8|}}}|{{bobscreen|{{{levelscreen8}}}}}}}
#if: {{{music3|}}} | <br/>'''Act 3:'''<br/>{{{music3}}} | }}{{
+
| content9={{#if:{{{levelscreen9|}}}|{{bobscreen|{{{levelscreen9}}}}}}}
#if: {{{music2p|}}} | <br/>'''2P Music:'''<br/>{{{music2p}}} | }}{{
+
}}
#if: {{{musicgen1|}}} | '''Act 1 (Mega Drive/Genesis):'''<br/>{{{musicgen1}}} | }}{{
+
|{{bobscreen|{{{levelscreen}}}}}}}{{#ifeq: {{fileext|{{{levelscreen}}}}} | jpg | [[Category:JPEG titlescreen]] }}}}
#if: {{{musicgen2|}}} | '''Act 2 (Mega Drive/Genesis):'''<br/>{{{musicgen2}}} | }}{{
+
{{BobRow||{{{name|}}}|default=<span itemprop="name">{{PAGENAME}}</span>|content=<span itemprop="name">{{{name}}}</span>|headline=yes|align=center}}
#if: {{{musicsat1|}}} | '''Act 1 (Saturn/PC):'''<br/>{{{musicsat1}}} | }}{{
+
{{BobRow||{{{game|}}}|content='''{{ #if: {{{levelno|}}} | {{{levelno}}} {{LevelName|{{{game}}}}}, | {{LevelName|{{ucfirst:{{{game}}}}}}}, }} ''[[{{{game}}}]]'''''[[Category:{{{game}}} levels]]}}
#if: {{{musicsat2|}}} | '''Act 2 (Saturn/PC):'''<br/>{{{musicsat2}}} | }}
+
{{BobRow||{{{game2|}}}|content='''{{ #if: {{{levelno2|}}} | {{{levelno2}}} {{LevelName|{{{game2}}}}}, | {{LevelName|{{ucfirst:{{{game2}}}}}}}, }} ''[[{{{game2}}}]]'''''[[Category:{{{game2}}} levels]]}}
|}<noinclude>
+
{{BobRow|Number of Acts|{{{acts|}}}}}
 +
{{BobRow|Location|{{{location|}}}}}
 +
{{BobRow||{{{theme1|}}}|content='''Level theme{{#if:{{{theme2|}}}|s|}}:''' [[:Category:{{LevelBob/Categorize by theme|{{{theme1}}}}}|{{{theme1}}}]][[Category:{{LevelBob/Categorize by theme|{{{theme1}}}}}]]{{
 +
#if:{{{theme2|}}}|, [[:Category:{{LevelBob/Categorize by theme|{{{theme2}}}}}|{{{theme2}}}]][[Category:{{LevelBob/Categorize by theme|{{{theme2}}}}}]]|}}{{
 +
#if:{{{theme3|}}}|, [[:Category:{{LevelBob/Categorize by theme|{{{theme3}}}}}|{{{theme3}}}]][[Category:{{LevelBob/Categorize by theme|{{{theme3}}}}}]]|}}{{
 +
#if:{{{theme4|}}}|, [[:Category:{{LevelBob/Categorize by theme|{{{theme4}}}}}|{{{theme4}}}]][[Category:{{LevelBob/Categorize by theme|{{{theme4}}}}}]]|}}{{
 +
#if:{{{theme5|}}}|, [[:Category:{{LevelBob/Categorize by theme|{{{theme5}}}}}|{{{theme5}}}]][[Category:{{LevelBob/Categorize by theme|{{{theme5}}}}}]]|}}}}
 +
{{BobRow|Played as|{{{playedas|}}}}}
 +
{{BobRow||{{{opponent|}}}|content='''Opponent:''' [[{{{opponent}}}]]}}
 +
{{BobRow||{{{subboss|}}}|content='''Sub-boss''': [[{{{subboss}}}]]}}
 +
{{BobRow||{{{subboss2|}}}|content='''Sub-boss for Act 2''': [[{{{subboss2}}}]]}}
 +
{{BobRow||{{{subbossalt|}}}|content='''Alternate sub-boss''': [[{{{subbossalt}}}]]}}
 +
{{BobRow||{{{boss|}}}|content='''Boss''': [[{{{boss}}}]]}}
 +
{{BobRow||{{{bossalt|}}}|content='''Alternate boss''': [[{{{bossalt}}}]]}}
 +
{{BobRow|Maximum rings|{{{rings|}}}}}
 +
{{BobRow|Maximum rings, Act 1|{{{rings1|}}}}}
 +
{{BobRow|Maximum rings, Act 2|{{{rings2|}}}}}
 +
{{BobRow|Maximum rings, Act 3|{{{rings3|}}}}}
 +
{{BobRow|Flickies, Act 1|{{{flickies1|}}}}}<!--Sonic 3D-specific -->
 +
{{BobRow|Flickies, Act 2|{{{flickies2|}}}}}<!--Sonic 3D-specific -->
 +
{{BobRow|Underwater areas|{{{underwater|}}}}}
 +
{{BobRow|Prerequisite|{{{prereq|}}}}}
 +
{{BobRow||{{{shaddark|}}}|content='''Dark mission''': {{{shaddark}}}
 +
{{ShadowRank|A|{{{ShadDarkARank|}}}}}{{ShadowRank|B|{{{ShadDarkBRank|}}}}}{{ShadowRank|C|{{{ShadDarkCRank|}}}}}{{ShadowRank|D|{{{ShadDarkDRank|}}}}}{{ShadowRank|E|Finish the mission}}}}<!--Shadow the Hedgehog-specific -->
 +
{{BobRow||{{{shadnorm|}}}|content='''Normal mission''': {{{shadnorm}}}
 +
{{ShadowRank|A|{{{ShadNormARank|}}}}}{{ShadowRank|B|{{{ShadNormBRank|}}}}}{{ShadowRank|C|{{{ShadNormCRank|}}}}}{{ShadowRank|D|{{{ShadNormDRank|}}}}}{{ShadowRank|E|Finish the mission}}}}<!--Shadow the Hedgehog-specific -->
 +
{{BobRow||{{{shadhero|}}}|content='''Hero mission''': {{{shadhero}}}
 +
{{ShadowRank|A|{{{ShadHeroARank|}}}}}{{ShadowRank|B|{{{ShadHeroBRank|}}}}}{{ShadowRank|C|{{{ShadHeroCRank|}}}}}{{ShadowRank|D|{{{ShadHeroDRank|}}}}}{{ShadowRank|E|Finish the mission}}}}<!--Shadow the Hedgehog-specific -->
 +
{{BobRow||{{{Mission1|}}}|content='''Mission 1''': {{{Mission1}}}
 +
{{SA2Rank|A|{{{ARank1|}}}}}{{SA2Rank|B|{{{BRank1|}}}}}{{SA2Rank|C|{{{CRank1|}}}}}{{SA2Rank|D|{{{DRank1|}}}}}{{SA2Rank|E|Finish the mission}}{{#if:{{{MaxRings1|}}}|(total rings: {{{MaxRings1|}}})|}}}}<!--SA2-specific -->
 +
{{BobRow||{{{Mission2|}}}|content='''Mission 2''': {{{Mission2}}}
 +
{{SA2Rank|A|{{{ARank2|}}}}}{{SA2Rank|B|{{{BRank2|}}}}}{{SA2Rank|C|{{{CRank2|}}}}}{{SA2Rank|D|{{{DRank2|}}}}}{{SA2Rank|E|Finish the mission}}{{#if:{{{MaxRings2|}}}|(total rings: {{{MaxRings2|}}})|}}}}<!--SA2-specific -->
 +
{{BobRow||{{{Mission3|}}}|content='''Mission 3''': {{{Mission3}}}
 +
{{SA2Rank|A|{{{ARank3|}}}}}{{SA2Rank|B|{{{BRank3|}}}}}{{SA2Rank|C|{{{CRank3|}}}}}{{SA2Rank|D|{{{DRank3|}}}}}{{SA2Rank|E|Finish the mission}}{{#if:{{{MaxRings3|}}}|(total rings: {{{MaxRings3|}}})|}}}}<!--SA2-specific -->
 +
{{BobRow||{{{Mission4|}}}|content='''Mission 4''': {{{Mission4}}}
 +
{{SA2Rank|A|{{{ARank4|}}}}}{{SA2Rank|B|{{{BRank4|}}}}}{{SA2Rank|C|{{{CRank4|}}}}}{{SA2Rank|D|{{{DRank4|}}}}}{{SA2Rank|E|Finish the mission}}{{#if:{{{MaxRings4|}}}|(total rings: {{{MaxRings4|}}})|}}}}<!--SA2-specific -->
 +
{{BobRow||{{{Mission5|}}}|content='''Mission 5''': {{{Mission5}}}
 +
{{SA2Rank|A|{{{ARank5|}}}}}{{SA2Rank|B|{{{BRank5|}}}}}{{SA2Rank|C|{{{CRank5|}}}}}{{SA2Rank|D|{{{DRank5|}}}}}{{SA2Rank|E|Finish the mission}}{{#if:{{{MaxRings5|}}}|(total rings: {{{MaxRings5|}}})|}}}}<!--SA2-specific -->
 +
{{BobRow||{{{name_jp|}}}{{{name_de|}}}{{{name_fr|}}}{{{name_es|}}}{{{name_it|}}}{{{name_se|}}}{{{name_nl|}}}{{{name_fi|}}}{{{name_ru|}}}{{{name_zh|}}}{{{name_kr|}}}|content='''Non-English names:'''<div style="margin-left:1em;">{{#if: {{{name_jp|}}} |* '''JP:''' {{{name_jp}}} }}{{#if: {{{name_de|}}} | * '''DE:''' {{{name_de}}} }}{{#if: {{{name_fr|}}} | * '''FR:''' {{{name_fr}}} }}{{#if: {{{name_es|}}} | * '''ES:''' {{{name_es}}} }}{{#if: {{{name_pt|}}} | * '''PT:''' {{{name_pt}}} }}{{#if: {{{name_it|}}} | * '''IT:''' {{{name_it}}} }}{{#if: {{{name_se|}}} | * '''SE:''' {{{name_se}}} }}{{#if: {{{name_nl|}}} | * '''NL:''' {{{name_nl}}} }}{{#if: {{{name_fi|}}} | * '''FI:''' {{{name_fi}}} }}{{#if: {{{name_ru|}}} | * '''RU:''' {{{name_ru}}} }}{{#if: {{{name_zh|}}} | * '''ZH:''' {{{name_zh}}} }}{{#if: {{{name_kr|}}} | * '''KR:''' {{{name_kr}}} }}</div>}}
 +
{{BobRow||{{{next|}}}{{{prev|}}}|content={{#if: {{{prev|}}} | ← [[{{{prev}}}]] }} {{#if:{{{next|}}}|{{#if:{{{prev|}}}|{{!}}|}}|}} {{#if: {{{next|}}} | [[{{{next}}}]] → }}|align=center}}
 +
{{BobRow||{{{next2|}}}{{{prev2|}}}|content={{#if: {{{prev2|}}} | ← [[{{{prev2}}}]] }} {{#if:{{{next2|}}}|{{#if:{{{prev2|}}}|{{!}}|}}|}} {{#if: {{{next2|}}} | [[{{{next2}}}]] → }}|align=center}}
 +
}}<noinclude>
 +
 
 
==Usage==
 
==Usage==
 
This template is to be used on articles about specific [[:Category:Levels|levels]]. Place the following at the top of a page:
 
This template is to be used on articles about specific [[:Category:Levels|levels]]. Place the following at the top of a page:
Line 39: Line 81:
 
| levelscreen=
 
| levelscreen=
 
| screenwidth=
 
| screenwidth=
 +
| levelscreen2=
 +
| screenwidth2=
 +
| levelscreen3=
 +
| screenwidth3=
 +
| levelscreentitle=
 +
| levelscreen2title=
 +
| levelscreen3title=
 
| levelno=
 
| levelno=
 
| game=
 
| game=
 
| acts=
 
| acts=
| cliche=
+
| location=
| cliche2=
+
| theme1=
| act1cliche=
+
| theme2=
| act1cliche2=
+
| theme3=
| act2cliche=
+
| theme4=
| act2cliche2=
+
| theme5=
 +
| playedas=
 +
| opponent=
 
| boss=
 
| boss=
 +
| bossalt=
 
| subboss=
 
| subboss=
 
| subboss2=
 
| subboss2=
| osv=
+
| subbossalt=
| map=
+
| rings=
 
| rings1=
 
| rings1=
 
| rings2=
 
| rings2=
 
| rings3=
 
| rings3=
 +
| flickies1=
 +
| flickies2=
 
| underwater=
 
| underwater=
 
| prereq=
 
| prereq=
| music=
+
| shaddark=
| music1=
+
| ShadDarkARank=
| music2=
+
| ShadDarkBRank=
| music3=
+
| ShadDarkCRank=
| music2p=
+
| ShadDarkDRank=
 +
| shadnorm=
 +
| ShadNormARank=
 +
| ShadNormBRank=
 +
| ShadNormCRank=
 +
| ShadNormDRank=
 +
| shadhero=
 +
| ShadHeroARank=
 +
| ShadHeroBRank=
 +
| ShadHeroCRank=
 +
| ShadHeroDRank=
 +
| Mission1=
 +
| ARank1=
 +
| BRank1=
 +
| CRank1=
 +
| DRank1=
 +
| MaxRings1=
 +
| Mission2=
 +
| ARank2=
 +
| BRank2=
 +
| CRank2=
 +
| DRank2=
 +
| MaxRings2=
 +
| Mission3=
 +
| ARank3=
 +
| BRank3=
 +
| CRank3=
 +
| DRank3=
 +
| MaxRings3=
 +
| Mission4=
 +
| ARank4=
 +
| BRank4=
 +
| CRank4=
 +
| DRank4=
 +
| MaxRings4=
 +
| Mission5=
 +
| ARank5=
 +
| BRank5=
 +
| CRank5=
 +
| DRank5=
 +
| MaxRings5=
 +
| name_jp=
 +
| name_de=
 +
| name_fr=
 +
| name_es=
 +
| name_it=
 +
| name_se=
 +
| name_nl=
 +
| name_fi=
 +
| name_ru=
 +
| name_zh=
 +
| name_kr=
 +
| prev=
 +
| next=
 
}}
 
}}
 
</pre>
 
</pre>
  
All fields except "game" are optional.
+
All fields except "game" are optional. If no screenshot of the level will ever exist (e.g. it was scrapped in development), define <tt>levelscreen</tt> as <tt>none</tt>.
 +
 
 +
===Theme===
 +
Specify a valid level theme from the list on [[:Category:Level themes|level themes]].
 +
If a level has a single theme, specify it like this:
 +
| theme1= Tropical Island
 +
If it has multiple themes, specify it like this:
 +
| theme1= Death Egg
 +
| theme2= Factory/City
 +
Up to five themes can be specified.
 +
 
 +
===Prev and Next===
 +
Specify which levels come before or after the level like this:
 +
| prev= Green Hill Zone
 +
| next= Spring Yard Zone
 +
If a level page's name has a game title in brackets to signify a level from a particular game, specify it like this:
 +
| prev= Chemical Plant Zone (Sonic Mania)<nowiki>{{!}}</nowiki>Chemical Plant Zone
 +
| next= Flying Battery Zone (Sonic Mania)<nowiki>{{!}}</nowiki>Flying Battery Zone
  
[[Category:Breakout Box Templates|LevelBob]]</noinclude>
+
[[Category:Breakout box templates]]</noinclude>

Latest revision as of 11:43, 21 October 2023

Notavailable.svg
LevelBob

Usage

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

{{LevelBob
| name=
| levelscreen=
| screenwidth=
| levelscreen2=
| screenwidth2=
| levelscreen3=
| screenwidth3=
| levelscreentitle=
| levelscreen2title=
| levelscreen3title=
| levelno=
| game=
| acts=
| location=
| theme1=
| theme2=
| theme3=
| theme4=
| theme5=
| playedas=
| opponent=
| boss=
| bossalt=
| subboss=
| subboss2=
| subbossalt=
| rings=
| rings1=
| rings2=
| rings3=
| flickies1=
| flickies2=
| underwater=
| prereq=
| shaddark=
| ShadDarkARank=
| ShadDarkBRank=
| ShadDarkCRank=
| ShadDarkDRank=
| shadnorm=
| ShadNormARank=
| ShadNormBRank=
| ShadNormCRank=
| ShadNormDRank=
| shadhero=
| ShadHeroARank=
| ShadHeroBRank=
| ShadHeroCRank=
| ShadHeroDRank=
| Mission1=
| ARank1=
| BRank1=
| CRank1=
| DRank1=
| MaxRings1=
| Mission2=
| ARank2=
| BRank2=
| CRank2=
| DRank2=
| MaxRings2=
| Mission3=
| ARank3=
| BRank3=
| CRank3=
| DRank3=
| MaxRings3=
| Mission4=
| ARank4=
| BRank4=
| CRank4=
| DRank4=
| MaxRings4=
| Mission5=
| ARank5=
| BRank5=
| CRank5=
| DRank5=
| MaxRings5=
| name_jp=
| name_de=
| name_fr=
| name_es=
| name_it=
| name_se=
| name_nl=
| name_fi=
| name_ru=
| name_zh=
| name_kr=
| prev=
| next=
}}

All fields except "game" are optional. If no screenshot of the level will ever exist (e.g. it was scrapped in development), define levelscreen as none.

Theme

Specify a valid level theme from the list on level themes. If a level has a single theme, specify it like this:

| theme1= Tropical Island

If it has multiple themes, specify it like this:

| theme1= Death Egg
| theme2= Factory/City

Up to five themes can be specified.

Prev and Next

Specify which levels come before or after the level like this:

| prev= Green Hill Zone
| next= Spring Yard Zone

If a level page's name has a game title in brackets to signify a level from a particular game, specify it like this:

| prev= Chemical Plant Zone (Sonic Mania){{!}}Chemical Plant Zone
| next= Flying Battery Zone (Sonic Mania){{!}}Flying Battery Zone