Actions

Template

Difference between revisions of "LevelBob"

From Sonic Retro

Line 1: Line 1:
<span class="morphMaster" id="LevelBobMaster"></span>
+
{{BobTable|
{|cellpadding="0" cellspacing="0" style="max-width: 340px; padding: 0px; float: right; margin-left: 15px;" class="breakout" clear="right"
+
{{BobRow||{{{levelscreen|}}}|align=center|default=[[File:Notavailable.svg]]<includeonly>[[Category:No titlescreen]]</includeonly>|content={{#if: {{{levelscreen2|}}} |
| style="text-align: center;"|
+
{{tabs
{{ #ifeq: {{{levelscreen|}}} | none | |
+
| hidetitle=yes
<div id="LevelBobContent1" style="transform:scalex({{#expr: {{{scale|1}}}}}); transform-origin:1">[[File:{{#if: {{{levelscreen|}}}|{{{levelscreen}}}|Notavailable.svg}}|{{#if: {{{screenwidth|}}}|{{{screenwidth|}}}|}}px|{{{title|{{PAGENAME}}}}}]]</div>
+
| instant=yes
{{ #if: {{{levelscreen2|}}} | <span style="display:none" id="LevelBobContent2">{{ #if: {{{screenwidth2|}}} | [[Image:{{{levelscreen2}}}|{{{screenwidth2}}} px]] | [[Image:{{{levelscreen2}}}]] }}</span><span id="LevelBobLink1">{{{levelscreentitle|Image 1}}}</span> &#124; <span id="LevelBobLink2">{{{levelscreen2title|Image 2}}}</span> }} }}
+
| style=border:none; padding:0px;
|-
+
| orientation=horizontal
! {{ #if: {{{name|}}} | '''{{{name}}}''' | '''{{PAGENAME}}''' }}
+
| width=320px
|-
+
| icon1={{{levelscreentitle|Image 1}}}
|style="max-width: 340px;padding: 0.3em; line-height: 1.5em; padding-left: 5px;" |
+
| icon2={{{levelscreen2title|Image 2}}}
'''{{ #if: {{{levelno|}}} | {{{levelno}}} level, | Level, }} ''[[{{{game}}}]]''''' {{
+
| content1={{bobscreen|{{{levelscreen}}}}}
#if: {{{acts|}}} |<br/> '''Number of Acts''': {{{acts}}} | }}{{
+
| content2={{bobscreen|{{{levelscreen2}}}}}
#if: {{{theme1location|}}} |<br/> '''Themes''': [[:Category:{{LevelBob/Categorize by theme|{{{theme1}}}}}|{{{theme1}}}]] ({{{theme1location}}})  |
+
}}
    {{ #if: {{{theme1|}}} |<br/> '''Level theme''': [[:Category:{{LevelBob/Categorize by theme|{{{theme1}}}}}|{{{theme1}}}]] | }}
+
|{{bobscreen|{{{levelscreen}}}}}}}{{#ifeq: {{fileext|{{{levelscreen}}}}} | jpg | [[Category:JPEG titlescreen]] }}}}
}}{{
+
{{BobRow||{{{name|}}}|default=''<span itemprop="name">{{PAGENAME}}</span>''|content=''<span itemprop="name">{{{name}}}</span>''|headline=yes|align=center}}
#if: {{{theme2location|}}} | , [[:Category:{{LevelBob/Categorize by theme|{{{theme2}}}}}|{{{theme2}}}]] ({{{theme2location}}})  |
+
{{BobRow||{{{game|}}}|content='''{{ #if: {{{levelno|}}} | {{{levelno}}} level, | Level, }} ''[[{{{game}}}]]'''''}}
    {{ #if: {{{theme2|}}} | <br/> '''Secondary level theme''': [[:Category:{{LevelBob/Categorize by theme|{{{theme2}}}}}|{{{theme2}}}]] | }}
+
{{BobRow|Number of Acts|{{{acts|}}}}}
}}{{
+
{{BobRow||{{{theme1|}}}|content='''Level theme''': [[:Category:{{LevelBob/Categorize by theme|{{{theme1}}}}}|{{{theme1}}}]][[Category:{{LevelBob/Categorize by theme|{{{theme1}}}}}]]}}
#if: {{{theme3location|}}} |, [[:Category:{{LevelBob/Categorize by theme|{{{theme3}}}}}|{{{theme3}}}]] ({{{theme3location}}})  |
+
{{BobRow||{{{theme2|}}}|content='''Secondary level theme''': [[:Category:{{LevelBob/Categorize by theme|{{{theme2}}}}}|{{{theme2}}}]][[Category:{{LevelBob/Categorize by theme|{{{theme2}}}}}]]}}
    {{ #if: {{{theme3|}}} |<br/> '''Tertiary level theme''': [[:Category:{{LevelBob/Categorize by theme|{{{theme3}}}}}|{{{theme3}}}]] | }}
+
{{BobRow||{{{theme3|}}}|content='''Tertiary level theme''': [[:Category:{{LevelBob/Categorize by theme|{{{theme3}}}}}|{{{theme3}}}]][[Category:{{LevelBob/Categorize by theme|{{{theme3}}}}}]]}}
}}{{
+
{{BobRow||{{{theme4|}}}|content='''Quaternary level theme''': [[:Category:{{LevelBob/Categorize by theme|{{{theme4}}}}}|{{{theme4}}}]][[Category:{{LevelBob/Categorize by theme|{{{theme4}}}}}]]}}
#if: {{{theme4location|}}} |, [[:Category:{{LevelBob/Categorize by theme|{{{theme4}}}}}|{{{theme4}}}]] ({{{theme4location}}})  |
+
{{BobRow||{{{theme5|}}}|content='''Quinary level theme''': [[:Category:{{LevelBob/Categorize by theme|{{{theme5}}}}}|{{{theme5}}}]][[Category:{{LevelBob/Categorize by theme|{{{theme5}}}}}]]}}
    {{ #if: {{{theme4|}}} |<br/> '''Quaternary level theme''': [[:Category:{{LevelBob/Categorize by theme|{{{theme4}}}}}|{{{theme4}}}]] | }}
+
{{BobRow|Played as|{{{playedas|}}}}}
}}{{
+
{{BobRow||{{{opponent|}}}|content='''Opponent:''' [[{{{opponent}}}]]}}
#if: {{{theme5location|}}} |, [[:Category:{{LevelBob/Categorize by theme|{{{theme5}}}}}|{{{theme5}}}]] ({{{theme5location}}})  |
+
{{BobRow||{{{boss|}}}|content='''Boss''': [[{{{boss}}}]]}}
    {{ #if: {{{theme5|}}} |<br/> '''Quinary level theme''': [[:Category:{{LevelBob/Categorize by theme|{{{theme5}}}}}|{{{theme5}}}]] | }}
+
{{BobRow||{{{subboss|}}}|content='''Sub-boss''': [[{{{subboss}}}]]}}
}}{{
+
{{BobRow||{{{subboss2|}}}|content='''Sub-boss for Act 2''': [[{{{subboss2}}}]]}}
#if: {{{playedas|}}} | <br/>'''Played as''': {{{playedas}}} | }}{{
+
{{BobRow|Maximum rings|{{{rings|}}}}}
#if: {{{opponent|}}} | <br/>'''Opponent''': [[{{{opponent}}}]] | }}{{
+
{{BobRow|Maximum rings, Act 1|{{{rings1|}}}}}
#if: {{{boss|}}} | <br/>'''Boss''': [[{{{boss}}}]] | }}{{
+
{{BobRow|Maximum rings, Act 2|{{{rings2|}}}}}
#if: {{{subboss|}}} | <br/>'''Sub-boss''': [[{{{subboss}}}]] | }}{{
+
{{BobRow|Maximum rings, Act 3|{{{rings3|}}}}}
#if: {{{subboss2|}}} | <br/>'''Sub-boss for Act 2''': [[{{{subboss2}}}]] | }}{{
+
{{BobRow|Flickies, Act 1|{{{flickies1|}}}}}
#if: {{{osv|}}} | <br/>'''OSV''': {{{osv}}}| }}{{
+
{{BobRow|Flickies, Act 2|{{{flickies2|}}}}}
#if: {{{map|}}} | <br/>'''Level Map''': [[{{{map}}}]] | }}{{
+
{{BobRow|Underwater areas|{{{underwater|}}}}}
#if: {{{rings|}}} | <br/>'''Maximum Rings''': {{{rings}}} | }}{{
+
{{BobRow|Prerequisite|{{{prereq|}}}}}
#if: {{{rings1|}}} | <br/>'''Maximum Rings, Act 1''': {{{rings1}}} | }}{{
+
{{BobRow|Dark mission|{{{shaddark|}}}}}<!--Shadow the Hedgehog-specific -->
#if: {{{rings2|}}} | <br/>'''Maximum Rings, Act 2''': {{{rings2}}} | }}{{
+
{{BobRow|Normal mission|{{{shadnorm|}}}}}<!--Shadow the Hedgehog-specific -->
#if: {{{rings3|}}} | <br/>'''Maximum Rings, Act 3''': {{{rings3}}} | }}{{
+
{{BobRow|Hero mission|{{{shadhero|}}}}}<!--Shadow the Hedgehog-specific -->
#if: {{{flickies1|}}} | <br/>'''Flickies, Act 1''':<br/>{{{flickies1}}} | }}{{
+
{{BobRow||{{{mission1|}}}|content='''Mission 1''': {{{Mission1}}}{{#if: {{{ARank1|}}} | :*'''A-Rank''': {{{ARank1}}} }}{{#if: {{{MaxRings1|}}} | :*'''Total rings''': {{{MaxRings1}}} }} }}<!--SA2-specific -->
#if: {{{flickies2|}}} | <br/>'''Flickies, Act 2''':<br/>{{{flickies2}}} | }}{{
+
{{BobRow||{{{mission2|}}}|content='''Mission 2''': {{{Mission2}}}{{#if: {{{ARank2|}}} | :*'''A-Rank''': {{{ARank2}}} }}{{#if: {{{MaxRings2|}}} | :*'''Total rings''': {{{MaxRings2}}} }} }}<!--SA2-specific -->
#if: {{{underwater|}}} | <br/>'''Underwater areas''': {{{underwater}}} | }}{{
+
{{BobRow||{{{mission3|}}}|content='''Mission 3''': {{{Mission3}}}{{#if: {{{ARank3|}}} | :*'''A-Rank''': {{{ARank3}}} }}{{#if: {{{MaxRings3|}}} | :*'''Total rings''': {{{MaxRings3}}} }} }}<!--SA2-specific -->
#if: {{{prereq|}}} | <br/>'''Prerequisite''': {{{prereq}}} | }}{{
+
{{BobRow||{{{mission4|}}}|content='''Mission 4''': {{{Mission4}}}{{#if: {{{ARank4|}}} | :*'''A-Rank''': {{{ARank4}}} }}{{#if: {{{MaxRings4|}}} | :*'''Total rings''': {{{MaxRings4}}} }} }}<!--SA2-specific -->
#if: {{{shaddark|}}} | <br/>'''Dark Mission''': {{{shaddark}}} | }}<!--Shadow the Hedgehog-specific -->{{  
+
{{BobRow||{{{mission5|}}}|content='''Mission 5''': {{{Mission5}}}{{#if: {{{ARank5|}}} | :*'''A-Rank''': {{{ARank5}}} }}{{#if: {{{MaxRings5|}}} | :*'''Total rings''': {{{MaxRings5}}} }} }}<!--SA2-specific -->
#if: {{{shadnorm|}}} | <br/>'''Normal Mission''': {{{shadnorm}}} | }}<!--Shadow the Hedgehog-specific -->{{
+
}}<noinclude>
#if: {{{shadhero|}}} | <br/>'''Hero Mission''': {{{shadhero}}} | }}<!--Shadow the Hedgehog-specific -->{{
 
#if: {{{Mission1|}}} | <br/>
 
*'''Mission 1''': {{{Mission1}}} | }}{{
 
      #if: {{{ARank1|}}} |:*'''A-Rank''': {{{ARank1}}} | }}{{
 
      #if: {{{MaxRings1|}}} |:*'''Total Rings''': {{{MaxRings1}}} | }}<!--SA2-specific -->{{
 
#if: {{{Mission2|}}} | <br/>
 
*'''Mission 2''': {{{Mission2}}} | }}{{
 
      #if: {{{ARank2|}}} |:*'''A-Rank''': {{{ARank2}}} | }}{{
 
      #if: {{{MaxRings2|}}} |:*'''Total Rings''': {{{MaxRings2}}} | }}<!--SA2-specific -->{{
 
#if: {{{Mission3|}}} | <br/>
 
*'''Mission 3''': {{{Mission3}}} | }}{{
 
      #if: {{{ARank3|}}} |:*'''A-Rank''': {{{ARank3}}} | }}{{
 
      #if: {{{MaxRings3|}}} |:*'''Total Rings''': {{{MaxRings3}}} | }}<!--SA2-specific -->{{
 
#if: {{{Mission4|}}} | <br/>
 
*'''Mission 4''': {{{Mission4}}} | }}{{
 
      #if: {{{ARank4|}}} |:*'''A-Rank''': {{{ARank4}}} | }}{{
 
      #if: {{{MaxRings4|}}} |:*'''Total Rings''': {{{MaxRings4}}} | }}<!--SA2-specific -->{{
 
#if: {{{Mission5|}}} | <br/>
 
*'''Mission 5''': {{{Mission5}}} | }}{{
 
      #if: {{{ARank5|}}} |:*'''A-Rank''': {{{ARank5}}} | }}{{
 
      #if: {{{MaxRings5|}}} |:*'''Total Rings''': {{{MaxRings5}}} | }}<!--SA2-specific -->
 
{{  #if: {{{icon|}}} | <br>'''Level icon''': [[File:{{{icon}}}]] | }}
 
|}<div style="display:none">{{#if: {{{theme1|}}}|[[Category:{{LevelBob/Categorize by theme|{{{theme1}}}}}]]|}}
 
{{#if: {{{theme2|}}}|[[Category:{{LevelBob/Categorize by theme|{{{theme2}}}}}]]|}}
 
{{#if: {{{theme3|}}}|[[Category:{{LevelBob/Categorize by theme|{{{theme3}}}}}]]|}}
 
{{#if: {{{theme4|}}}|[[Category:{{LevelBob/Categorize by theme|{{{theme4}}}}}]]|}}
 
{{#if: {{{theme5|}}}|[[Category:{{LevelBob/Categorize by theme|{{{theme5}}}}}]]|}}</div><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 128: Line 101:
 
| ARank5 =  
 
| ARank5 =  
 
| MaxRings5 =  
 
| MaxRings5 =  
| musicnamed=
 
| pinchmode=
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 154: Line 125:
 
  | theme3location = Act 2
 
  | theme3location = Act 2
 
Up to five themes can be specified.
 
Up to five themes can be specified.
[[Category:Breakout box templates|LevelBob]]</noinclude>
+
[[Category:Breakout box templates]]</noinclude>

Revision as of 11:41, 3 September 2016

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=
| levelscreentitle=
| levelscreen2title=
| levelno=
| game=
| acts=
| theme1=
| theme2=
| theme3=
| theme4=
| theme5=
| theme1location=
| theme2location=
| theme3location=
| theme4location=
| theme5location=
| playedas=
| opponent=
| boss=
| subboss=
| subboss2=
| osv=
| map=
| rings=
| rings1=
| rings2=
| rings3=
| flickies1=
| flickies2=
| underwater=
| prereq=
| shaddark=
| shadnorm=
| shadhero=
| Mission1 =
| ARank1 = 
| MaxRings1 = 
| Mission2 =
| ARank2 = 
| MaxRings2 = 
| Mission3 =
| ARank3 = 
| MaxRings3 = 
| Mission4 =
| ARank4 = 
| MaxRings4 = 
| Mission5 =
| ARank5 = 
| MaxRings5 = 
}}

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 themes from the list on Sonic clichés. If a level has a single theme, specify it like this:

| theme1= Tropical Island

If it has both a primary and secondary theme, specify it like this:

| theme1= Death Egg
| theme2= Factory/City

If themes are only specific to one act, do this:

| theme1= Factory/City
| theme1location = Act 1
| theme2= Ancient Ruins
| theme2location = Act 2

Combining the above, if if an entire level has a primary theme but acts also have their own individual themes:

| theme1= Factory/City
| theme2= Ancient Ruins
| theme2location = Act 1
| theme3 = Carnival/Casino
| theme3location = Act 2

Up to five themes can be specified.