Difference between revisions of "Template:GateLevel"

From SpiralKnights

Jump to: navigation, search
m (add switch for type=floor or type=level. Only minor header differences. Testing.)
m (clean up code, removed outdated parameter options)
 
(187 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| cellpadding="0" cellspacing="0" align="{{{align|*}}}" valign="middle" style="width: {{{width|{{#switch:{{{name|}}}|#default=100%|Mission Lobby=875px}}}}}; border: {{{border-width|5px}}} {{{border-type|solid}}} #000000; background: #496e8b; margin: {{{margin|0px}}}; border-radius: 14px;"
+
<includeonly><div style="font-size:125%;">
| align="center" |
+
{{#switch:{{{floor|}}}|
{| cellpadding="0" cellspacing="5" align="" style="border: {{{body border-width|2px}}} {{{border-type|solid}}} #496e8b; background: #114255; width: 100%; border-radius: 10px;"
+
|#default =
{{SKNewRow}}
+
|1='''First Floor:'''<br>
{{SKCell
+
|2='''Second Floor:'''<br>
|1={{#if:{{{icon 2|}}}|{{#switch:{{{type|}}}|#default=Rotates between:&nbsp;|level=Consists of:&nbsp;}}|}}[[File:Gate-{{{icon|{{{icon 1|Ancient Grove}}}}}}.png|36px|{{#if:{{{icon 2|}}}|fixed|left}}|{{{icon 1}}}]]{{#if:{{{icon 2|}}}
+
|3='''Third Floor:'''<br>
|
+
|4='''Fourth Floor:'''<br>
|'''Name''': ''{{{name|Name = {{???}} (might be "Floor name is variable per level") }}}'' <br> '''[[Depth]]''': {{{depth|depth = {{???}} (might be "variable per [[Player Rank|rank]]")}}}
+
|5='''Fifth Floor:'''<br>
}}{{#if:{{{icon 2|}}}|&nbsp;, [[File:Gate-{{{icon|{{{icon 2|}}}}}}.png|36px|{{{icon 2|}}}]]|
+
|6='''Sixth Floor:'''<br>
}}{{#if:{{{icon 3|}}}|&nbsp;, [[File:Gate-{{{icon|{{{icon 3|Ancient Grove}}}}}}.png|36px|{{{icon 3|}}}]]|
+
|7='''Seventh Floor:'''<br>
}}{{#if:{{{icon 4|}}}|&nbsp;, [[File:Gate-{{{icon|{{{icon 4|Ancient Grove}}}}}}.png|36px|{{{icon 4|}}}]]|
+
|8='''Eighth Floor:'''<br>
}}{{#if:{{{icon 5|}}}|&nbsp;, [[File:Gate-{{{icon|{{{icon 5|Ancient Grove}}}}}}.png|36px|{{{icon 5|}}}]]|
+
|9='''Ninth Floor:'''<br>
}}{{#if:{{{icon 6|}}}|&nbsp;, [[File:Gate-{{{icon|{{{icon 6|Ancient Grove}}}}}}.png|36px|{{{icon 6|}}}]]|}}{{#if:{{{icon 2|}}}
+
}}</div>
|<br>'''Name''': ''{{{name|Name = {{???}} (might be "Floor name is variable per level") }}}'' <br> '''[[Depth]]''': {{{depth|depth = {{???}} (might be "variable per [[Player Rank|rank]]")}}}
+
[[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 4|}}}|&nbsp;,&nbsp;[[File:Gate-{{{icon 4|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 4|Plug 4 Needed!}}}]]
|2={{#if:{{{icon 2|}}}|center|left}}
+
|}}{{#if:{{{icon 5|}}}|&nbsp;,&nbsp;[[File:Gate-{{{icon 5|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 5|Plug 5 Needed!}}}]]
|3=middle
+
|}}{{#if:{{{icon 6|}}}|&nbsp;,&nbsp;[[File:Gate-{{{icon 6|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 6|Plug 6 Needed!}}}]]
|4=99
+
|}}{{#if:{{{icon 7|}}}|&nbsp;,&nbsp;[[File:Gate-{{{icon 7|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 7|Plug 7 Needed!}}}]]
|padding = 5px 10px 0px 5px
+
|}}{{#if:{{{icon 8|}}}|&nbsp;,&nbsp;[[File:Gate-{{{icon 8|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 8|Plug 8 Needed!}}}]]
}}
+
|}}{{#if:{{{icon 9|}}}|&nbsp;,&nbsp;[[File:Gate-{{{icon 9|Ancient Grove}}}.png|{{{size|58px}}}|link={{{plug 9|Plug 9 Needed!}}}]]
{{SKNewRow}}
+
|}}{{#if:{{{icon 2|}}}|{{clearleft}}
{{SKCell
+
|}}{{{missionlist|}}}{{#if:{{{name|}}}|'''Name''': ''{{{name}}}''<br>
|1=<div style="text-align:center;">'''[[Monster]]s'''</div>
+
|}}{{#if:{{{depth|}}}|'''Depth''': {{{depth}}}<br>
----
+
|}}{{#switch:{{{note|random}}}
{{{monsters|*monsters = {{???}} (list monsters and/or bosses - even if only possibly - encountered. Do not include "rare" monster spawns unless they are set, like Scarlet Fortress Rock Jellies. Chance for rares is implicit per monster it applies to.)}}}
+
|#default      = '''Level Link''': {{{note}}}.
|3=top
+
|standard lobby = '''Level Link''': ''[[{{{plug}}}|This mission's lobby]]'' is standard.
|6=50%
+
|danger lobby  = '''Level Link''': ''[[{{{plug}}}|This mission's lobby]]'' is a danger mission lobby.
}}
+
|starter lobby  = '''Level Link''': ''[[{{{plug}}}|This mission's lobby]]'' is the special starter lobby.
{{SKCell
+
|compact area  = '''Level Link''': ''[[{{{plug}}}|{{{name}}}]]'' is composed of both random and unique "''[[Compact Area]]''" segments.
|1=<div style="text-align:center;">'''[[Exploration]]'''</div>
+
|mission arena  = '''Level Link''': ''[[{{{plug}}}|{{{name}}}]]'' is composed of random [[Battle Arena (mission)|mission arena]] segments.
----
+
}}{{#if:{{{special|}}}|&nbsp;'''Special''': It has {{{special}}}.|}}{{clearleft}}{{#switch:{{{last|}}}
{{{exploration|exploration = {{???}} (include links to areas like [[Clockwork Tunnels]] and mention exclusive hazards or interesting combinations)}}}
+
|#default=<br>
|3=top
+
|yes=}}</includeonly><noinclude>
|6=50%
+
}}
+
{{SKNewRow}}
+
{{SKCell|'''Notes'''
+
----
+
{{{floor notes|floor notes = {{???}}. Include quick strategy. include gallery with maps and special areas here, if needed. Maps will usually be desired if the floor is not randomly generated sections. Also include links to any important NPC dialogue encountered on this floor and so on. Please refer to other pages that use this template for consistent format in this section.}}}
+
|4=99
+
}}
+
{{SKNewRow}}
+
{{#if:{{{gallery|}}}
+
|{{SKCell|'''Gallery'''
+
----
+
{{{gallery|see implemented examples for gallery format. Maintain consistent file naming convention.}}}
+
|4=99
+
}}
+
|}}
+
|}
+
|}<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