Difference between revisions of "Template:Location"

From SpiralKnights

Jump to: navigation, search
m (simplify entry)
m (adding a variation of 2.8 without link-text = 4.8)
 
(58 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch:{{{3|}}}
+
<includeonly>{{#switch:{{{4|}}}
|#default=
+
|#default =
|random segments = This floor is composed of random&nbsp;
+
|random   = This floor is composed of random&nbsp;
|fixed segments = This floor is composed of fixed segments reminiscent of&nbsp;
+
|same    = This floor is the same as&nbsp;
|fixed          = This floor is a fixed area reminiscent of&nbsp;
+
|several = This floor is composed of random&nbsp;
}}''[[{{#switch:{{{1}}}
+
|special  = This floor is composed of random&nbsp;
|#default        = {{{1}}}
+
}}{{#switch:{{{3|1}}}
|Blast Furnace  = Clockwork Tunnels
+
|=''[[{{{1|}}}]]: [[{{{1|}}}/{{{2|}}}|{{{2|}}}]]''
|Cooling Chamber = Clockwork Tunnels
+
|1.2 =''[[{{{1|}}}]]''
|Power Complex  = Clockwork Tunnels
+
|1.3 =''[[{{{1|}}}/{{{2|}}}|{{{2|}}}]]''
|Wasteworks      = Clockwork Tunnels
+
|1.5 =''[[{{{2|}}}]]''
  
|Ruined Compound   = Compound
+
|2   =[[File:Gate-{{{icon|{{{1}}}}}}.png|{{{size|26px}}}|link={{{1}}}/{{{2}}}]] ''[[{{{1|}}}]]: [[{{{1|}}}/{{{2|}}}|{{{2|}}}]]''
|Charred Compound  = Compound
+
|2.2 =[[File:Gate-{{{icon|{{{1}}}}}}.png|{{{size|26px}}}|link={{{1}}}/{{{2}}}]] ''[[{{{1|}}}]]''
|Frozen Compound   = Compound
+
|2.3 =[[File:Gate-{{{icon|{{{1}}}}}}.png|{{{size|26px}}}|link={{{1}}}/{{{2}}}]] ''[[{{{1|}}}/{{{2|}}}|{{{2|}}}]]''
|Shocked Compound  = Compound
+
|2.4 =[[File:Gate-{{{icon|{{{1}}}-{{{2}}}}}}.png|{{{size|26px}}}|link={{{1}}}/{{{2}}}]] ''[[{{{1|}}}/{{{2|}}}|{{{2|}}}]]''
|Blighted Compound = Compound
+
|2.5 =[[File:Gate-{{{icon|{{{2}}}}}}.png|{{{size|26px}}}|link={{{2}}}]] ''[[{{{2|}}}]]''
}}#{{{2}}}|{{{1}}}: {{{2}}}]]''{{#switch:{{{3|}}}
+
|2.6 =[[File:Gate-{{{icon|{{{1}}}}}}.png|{{{size|26px}}}|link={{{1}}}]] ''[[{{{1|}}}]]''
|#default=
+
|2.7 =[[File:Gate-{{{icon|{{{1}}}}}}.png|{{{size|26px}}}|link={{{1}}}]] ''[[{{{1|}}}/{{{2|}}}|{{{2|}}}]]''
|random segments =&nbsp;segments.
+
|2.8 =[[File:Gate-{{{icon|{{{1}}}-{{{2}}}}}}.png|{{{size|26px}}}|link={{{1}}}]] ''[[{{{1|}}}/{{{2|}}}|{{{1|}}}: {{{2|}}}]]''
|fixed segments =.
+
 
|fixed          =.
+
|3   =''{{{1|}}}: {{{2|}}}''
}}<noinclude>
+
|3.2 =''{{{1|}}}''
[[Category:Linking Templates]]</noinclude>
+
|3.3 =''{{{2|}}}''
 +
 
 +
|4  =[[File:Gate-{{{icon|{{{1}}}}}}.png|{{{size|26px}}}]] ''{{{1|}}}: {{{2|}}}''
 +
|4.2 =[[File:Gate-{{{icon|{{{1}}}}}}.png|{{{size|26px}}}]] ''{{{1|}}}''
 +
|4.3 =[[File:Gate-{{{icon|{{{1}}}}}}.png|{{{size|26px}}}]] ''{{{2|}}}''
 +
|4.4 =[[File:Gate-{{{icon|{{{1}}}-{{{2}}}}}}.png|{{{size|26px}}}]] ''{{{2|}}}''
 +
|4.8 =[[File:Gate-{{{icon|{{{1}}}-{{{2}}}}}}.png|{{{size|26px}}}|link={{{1}}}]] ''{{{1|}}}: {{{2|}}}''
 +
 
 +
|6.2 =[[File:Gate-{{{icon|{{{1}}}}}}.png|{{{size|26px}}}|link={{{1}}}]]
 +
|6.3 =[[File:Gate-{{{icon|{{{1}}}-{{{2}}}}}}.png|{{{size|26px}}}|link={{{1}}}/{{{2}}}]]
 +
}}{{#switch:{{{4|}}}
 +
|#default =
 +
|random   =&nbsp;segments
 +
|unique  =&nbsp;is unique to this mission
 +
|several =&nbsp;segments. Several are unique to this mission and are always encountered
 +
|special  =&nbsp;segments, several of which are unique to ''{{{floor}}}''
 +
}}</includeonly><noinclude>
 +
{{documentation}}[[Category:Linking Templates]]</noinclude>

Latest revision as of 17:49, 9 May 2020

[edit] [purge] Template documentation

Usage

To either link to an area that has different levels, and/or to link to an area with a specific phrase. Can include icon if necessary.

Usage of this template allows instant master control of all "area:level," "area," and "level" linking regarding icon size, font size, italics, and linking destinations in the face of disambiguation and redirect issues.

Code

{{location|AREA|LEVEL|#}}

or

{{location|AREA|LEVEL|#|PHRASE}}

Parameters

|1

  • The name of the area, such as "Clockwork Tunnels" or "Blast Furnace." Certain places are linked to appropriate pages via a switch.

|2

  • The name of the level, such as "Wild Path" or "Noxious Night."

|3

  • A number, X.X (defaults to 1)
Even numbers mean an icon is displayed.
Odd numbers mean no icon is displayed.
"6" mean just the icon is displayed.
"3" and "4" display information without linking (allows prevention of confusing link loops to the same area page through redirects).
X (no decimal) = Links to area and level, displays area and level.
X.2 = links and/or displays only area
X.3 = links and/or displays only level
X.4 = helps icon display status influenced level
X.5 = use for strange level exceptions

Optional

|4

  • A phrase, mostly used for Gate Maps. Inputs include:
"random" (use if the floor is composed of random level segments, even if there is technically a "0% chance for a danger room to appear" and so on)
"same" (use if the floor is the same as a level)
"unique" (use if the floor is unique to the mission)
"several" (use if there are several randomly generated segments unique to the mission. Can specify floor link with "floor=")
"special" (use if the mission is composed entirely of randomly generated segments unique to the mission)

Examples

See what links here for examples of this template in action.

Notes

Most of these names appear as italicized text during loading screens as well as the tooltips that pop up when mouse hovering over gate map icons in-game.

Used mostly to clarify the geography of gate maps.

If a level name uses a colon

Gate-Lichenous Lair-Prognosis∶ Symbiosis.png
For this "Prognosis∶ Symbiosis" file:

A different character than : (keyboard colon) had to be used in the filename because the colon character is not published-link-friendly and can cause line break issues. The wiki will automatically change the file name if the upload destination attempts to use a colon other than to specify namespace. The "∶" character (U+2236 ratio) is in place in the file here: File:Gate-Lichenous Lair-Prognosis∶ Symbiosis.png (ratio), while File:Gate-Lichenous Lair-Prognosis: Symbiosis.png (colon) is simply redirected to it. This redirect allows editors to continue using a colon for template inputs, so editors do not have to copy paste the ratio for casual editing.

Personal tools