Difference between revisions of "Template:GateLevel"

From SpiralKnights

Jump to: navigation, search
m (woops)
m (clean up code, removed outdated parameter options)
 
(48 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
|9='''Ninth Floor:'''<br>
 
|9='''Ninth Floor:'''<br>
 
}}</div>
 
}}</div>
{{#switch:{{{level|}}}
+
[[File:Gate-{{{icon|{{{area|Ancient Grove}}}}}}.png|{{{size|58px}}}|left|link={{{plug|Plug Needed!}}}]]{{#if:{{{icon 2|}}}|,&nbsp;[[File:Gate-{{{icon 2|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 2|Plug 2 Needed!}}}]]
|Mission Lobby = [[File:Gate-Generic Lobby.png|{{{size|58px}}}|left]] '''Level''': ''[[{{{plug}}}|Standard Lobby]]''<br>'''Depth''': 0 {{clearleft}} Note: The floor name used in the mission's gate map is "''Mission Lobby''."
+
|Starter Lobby = [[File:Gate-Generic Lobby.png|{{{size|58px}}}|left]] '''Level''': ''[[{{{plug}}}|Starter Lobby]]''<br>'''Depth''': 0 {{clearleft}} Note: The floor name used in the mission's gate map is "''Mission Lobby''."
+
|#default      = [[File:Gate-{{{icon|{{{area|Ancient Grove}}}}}}.png|{{{size|58px}}}|left|link={{{plug|Plug Needed!}}}]]{{#if:{{{icon 2|}}}|,&nbsp;[[File:Gate-{{{icon 2|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 2|Plug 2 Needed!}}}]]
+
 
|}}{{#if:{{{icon 3|}}}|&nbsp;,&nbsp;[[File:Gate-{{{icon 3|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 3|Plug 3 Needed!}}}]]
 
|}}{{#if:{{{icon 3|}}}|&nbsp;,&nbsp;[[File:Gate-{{{icon 3|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 3|Plug 3 Needed!}}}]]
 
|}}{{#if:{{{icon 4|}}}|&nbsp;,&nbsp;[[File:Gate-{{{icon 4|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 4|Plug 4 Needed!}}}]]
 
|}}{{#if:{{{icon 4|}}}|&nbsp;,&nbsp;[[File:Gate-{{{icon 4|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 4|Plug 4 Needed!}}}]]
Line 24: Line 21:
 
|}}{{#if:{{{icon 9|}}}|&nbsp;,&nbsp;[[File:Gate-{{{icon 9|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 9|Plug 9 Needed!}}}]]
 
|}}{{#if:{{{icon 9|}}}|&nbsp;,&nbsp;[[File:Gate-{{{icon 9|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 9|Plug 9 Needed!}}}]]
 
|}}{{#if:{{{icon 2|}}}|{{clearleft}}
 
|}}{{#if:{{{icon 2|}}}|{{clearleft}}
 
+
|}}{{{missionlist|}}}{{#if:{{{name|}}}|'''Name''': ''{{{name}}}''<br>
|}}{{#if:{{{area|}}}|'''Area''': {{#if:{{{icon 2|}}}
+
|}}{{#if:{{{depth|}}}|'''Depth''': {{{depth}}}<br>
|{{{area}}}
+
|}}{{#switch:{{{note|random}}}
|{{#switch:{{{area|}}}
+
|#default       = '''Level Link''': {{{note}}}.
|Unique  = Unique to this mission.
+
|standard lobby = '''Level Link''': ''[[{{{plug}}}|This mission's lobby]]'' is standard.
|#default = ''[[{{{area}}}|{{#switch:{{{plug|}}}
+
|danger lobby  = '''Level Link''': ''[[{{{plug}}}|This mission's lobby]]'' is a danger mission lobby.
|#default = {{{area}}}
+
|starter lobby  = '''Level Link''': ''[[{{{plug}}}|This mission's lobby]]'' is the special starter lobby.
 
+
|compact area  = '''Level Link''': ''[[{{{plug}}}|{{{name}}}]]'' is composed of both random and unique "''[[Compact Area]]''" segments.
|Clockwork Tunnels: Gremlin Grounds  = Clockwork Tunnels
+
|mission arena  = '''Level Link''': ''[[{{{plug}}}|{{{name}}}]]'' is composed of random [[Battle Arena (mission)|mission arena]] segments.
|Clockwork Tunnels: Haunted Passage  = Clockwork Tunnels
+
}}{{#if:{{{special|}}}|&nbsp;'''Special''': It has {{{special}}}.|}}{{clearleft}}{{#switch:{{{last|}}}
|Clockwork Tunnels: Infernal Passage = Clockwork Tunnels
+
|#default=<br>
|Clockwork Tunnels: Mechanized Mile  = Clockwork Tunnels
+
|yes=}}</includeonly><noinclude>
|Clockwork Tunnels: Slimeway        = Clockwork Tunnels
+
|Clockwork Tunnels: Mechanized Mile  = Clockwork Tunnels
+
 
+
|Blast Furnace: Gremlin Grounds  = Blast Furnace
+
|Blast Furnace: Haunted Passage  = Blast Furnace
+
|Blast Furnace: Infernal Passage = Blast Furnace
+
|Blast Furnace: Mechanized Mile  = Blast Furnace
+
|Blast Furnace: Slimeway        = Blast Furnace
+
|Blast Furnace: Wild Path        = Blast Furnace
+
 
+
|Cooling Chamber: Gremlin Grounds  = Cooling Chamber
+
|Cooling Chamber: Haunted Passage  = Cooling Chamber
+
|Cooling Chamber: Infernal Passage = Cooling Chamber
+
|Cooling Chamber: Mechanized Mile  = Cooling Chamber
+
|Cooling Chamber: Slimeway        = Cooling Chamber
+
|Cooling Chamber: Wild Path        = Cooling Chamber
+
 
+
|Power Complex: Gremlin Grounds  = Power Complex
+
|Power Complex: Haunted Passage  = Power Complex
+
|Power Complex: Infernal Passage = Power Complex
+
|Power Complex: Mechanized Mile  = Power Complex
+
|Power Complex: Mechanized Mile  = Power Complex
+
|Power Complex: Wild Path        = Power Complex
+
 
+
|Wasteworks: Gremlin Grounds  = Wasteworks
+
|Wasteworks: Haunted Passage  = Wasteworks
+
|Wasteworks: Infernal Passage = Wasteworks
+
|Wasteworks: Mechanized Mile  = Wasteworks
+
|Wasteworks: Slimeway        = Wasteworks
+
|Wasteworks: Wild Path        = Wasteworks
+
}}]]''}}}}
+
 
+
 
+
 
+
|}}{{#if:{{{level|}}}|<br>'''Level''': {{#if:{{{icon 2|}}}
+
|{{{level}}}
+
|{{#switch:{{{level|}}}
+
|#default = ''[[{{{plug}}}|{{#switch:{{{plug|}}}|#default={{{level}}}}}]]''
+
|Clockwork Tunnels: Gremlin Grounds  = Gremlin Grounds
+
|Clockwork Tunnels: Haunted Passage  = Haunted Passage
+
|Clockwork Tunnels: Infernal Passage = Infernal Passage
+
|Clockwork Tunnels: Mechanized Mile  = Mechanized Mile
+
|Clockwork Tunnels: Slimeway        = Slimeway
+
|Clockwork Tunnels: Mechanized Mile  = Mechanized Mile
+
 
+
|Blast Furnace: Gremlin Grounds  = Gremlin Grounds
+
|Blast Furnace: Haunted Passage  = Haunted Passage
+
|Blast Furnace: Infernal Passage = Infernal Passage
+
|Blast Furnace: Mechanized Mile  = Mechanized Mile
+
|Blast Furnace: Slimeway        = Slimeway
+
|Blast Furnace: Wild Path        = Wild Path
+
 
+
|Cooling Chamber: Gremlin Grounds  = Gremlin Grounds
+
|Cooling Chamber: Haunted Passage  = Haunted Passage
+
|Cooling Chamber: Infernal Passage = Infernal Passage
+
|Cooling Chamber: Mechanized Mile  = Mechanized Mile
+
|Cooling Chamber: Slimeway        = Slimeway
+
|Cooling Chamber: Wild Path        = Wild Path
+
 
+
|Power Complex: Gremlin Grounds  = Gremlin Grounds
+
|Power Complex: Haunted Passage  = Haunted Passage
+
|Power Complex: Infernal Passage = Infernal Passage
+
|Power Complex: Mechanized Mile  = Mechanized Mile
+
|Power Complex: Mechanized Mile  = Slimeway
+
|Power Complex: Wild Path        = Wild Path
+
 
+
|Wasteworks: Gremlin Grounds  = Gremlin Grounds
+
|Wasteworks: Haunted Passage  = Haunted Passage
+
|Wasteworks: Infernal Passage = Infernal Passage
+
|Wasteworks: Mechanized Mile  = Mechanized Mile
+
|Wasteworks: Slimeway        = Slimeway
+
|Wasteworks: Wild Path        = Wild Path
+
}}
+
|}}
+
 
+
 
+
 
+
|}}{{#if:{{{depth|}}}|<br>'''Depth''': {{{depth}}}
+
|}}{{#if:{{{note|}}}|{{#switch:{{{note|}}}
+
|#default=
+
{{clearleft}}Note: {{{note}}}
+
|name =  
+
{{clearleft}}Note: The floor name used in the mission's gate map is "''{{{name}}}''."
+
}}
+
|}
+
}}{{clearleft}}<br></includeonly><noinclude>
+
 
{{documentation}}</noinclude>
 
{{documentation}}</noinclude>

Latest revision as of 18:43, 18 January 2016

[edit] [purge] Template documentation

Usage

To display level information in a compact manner. Compatible with various terms as needed. Use primarily on mission pages. Area pages such as Scarlet Fortress have their own special format to visually separate them from missions, and they do not have a set floor sequence at all.

Code

{{GateLevel
|missionlist = {{{missionlist|}}}
|size  = {{{size|58px}}}
|floor = 
|icon  = 
|name  = 
|depth = 
|plug  = 
|note  = 
}}

Parameters

|missionlist = {{{missionlist|}}}
|size = {{{size|58px}}}
|last = yes

These are included so the gate map display can be flexible, because it is used in both the mission page and a mission list page. "last=yes" tells the X/Gate Map page which template entry is the last floor in the gate, so the line break that separates gate template from each other in order for floors to be easily discernible does not occur and cause unnecessary whitespace on published mission pages, within show/hides on the mission list pages, and anywhere else the gate map page might be visible. Every X/Gate Map page should have these entries to allow master control of their behavior in various published locations.

|floor

The floor number. 0,1,2 etc. Only use if the gate is depicting a mission gate map, arcade gates do not concern themselves with this because depths are always predictable. In other words, in an arcade gate each "depth" is a "floor" that can be one level or rotate between 2 or more levels.

|icon

Specify icon file. There are many old, inconsistently named icons around the wiki. Only need to use NAME for entry: "File:Gate-NAME.png" is built into the template. If the level is new, you might need to upload an icon. Pay careful attention to icon naming convention for levels vs. areas.
This can be quite complicated for some floors. You might need to use icon 2, icon 3, etc. If there are levels in the floor's rotation. Make sure they line up with the plug order.

|name

The name of the floor. Pay attention to floor name vs. level. Mission floors often have special names for levels. For example, Tracking in High Temperature Hostages is a Wolver Den: Ashes to Ash Tails. This special naming helps the game's story, but can be confusing. So we display the name in plain text and a link to the named level as well.

|depth

A number, or Depends on [[Player Rank|rank]]'' (for prestige)

|plug

The name of the level the gate uses for this floor. This will be a geography subpage.
This can be quite complicated for some floors. You might need to use plug 2, plug 3, etc if there are levels in the floor's rotation. Make sure they line up with the icon order.

|note

There are a few standardized entries, otherwise, carefully link the level with a specially worded input using Template:Location.
compact area
danger lobby
mission arena
standard lobby
starter lobby

|special

Only include if the level is otherwise the same as the arcade version, but always has something special in it somewhere, such as a scenario room at the end.

Examples

See what links here or pages in Category:Gate Maps for examples of this template in action.

Personal tools