Difference between revisions of "Template:Location"
From SpiralKnights
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:{{{ | + | <includeonly>{{#switch:{{{4|}}} |
− | |#default= | + | |#default = |
− | |random | + | |random = This floor is composed of random |
− | | | + | |same = This floor is the same as |
− | | | + | |several = This floor is composed of random |
− | }} | + | |special = This floor is composed of random |
− | | | + | }}{{#switch:{{{3|1}}} |
− | | | + | |1 =''[[{{{1|}}}]]: [[{{{1|}}}/{{{2|}}}|{{{2|}}}]]'' |
− | | | + | |1.2 =''[[{{{1|}}}]]'' |
− | | | + | |1.3 =''[[{{{1|}}}/{{{2|}}}|{{{2|}}}]]'' |
− | | | + | |1.5 =''[[{{{2|}}}]]'' |
− | | | + | |2 =[[File:Gate-{{{icon|{{{1}}}}}}.png|{{{size|26px}}}|link={{{1}}}/{{{2}}}]] ''[[{{{1|}}}]]: [[{{{1|}}}/{{{2|}}}|{{{2|}}}]]'' |
− | | | + | |2.2 =[[File:Gate-{{{icon|{{{1}}}}}}.png|{{{size|26px}}}|link={{{1}}}/{{{2}}}]] ''[[{{{1|}}}]]'' |
− | | | + | |2.3 =[[File:Gate-{{{icon|{{{1}}}}}}.png|{{{size|26px}}}|link={{{1}}}/{{{2}}}]] ''[[{{{1|}}}/{{{2|}}}|{{{2|}}}]]'' |
− | | | + | |2.4 =[[File:Gate-{{{icon|{{{1}}}-{{{2}}}}}}.png|{{{size|26px}}}|link={{{1}}}/{{{2}}}]] ''[[{{{1|}}}/{{{2|}}}|{{{2|}}}]]'' |
− | | | + | |2.5 =[[File:Gate-{{{icon|{{{2}}}}}}.png|{{{size|26px}}}|link={{{2}}}]] ''[[{{{2|}}}]]'' |
− | }} | + | |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 | + | |2.8 =[[File:Gate-{{{icon|{{{1}}}-{{{2}}}}}}.png|{{{size|26px}}}|link={{{1}}}]] ''[[{{{1|}}}/{{{2|}}}|{{{1|}}}: {{{2|}}}]]'' |
− | | | + | |
− | | | + | |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 = segments | ||
+ | |unique = is unique to this mission | ||
+ | |several = segments. Several are unique to this mission and are always encountered | ||
+ | |special = segments, several of which are unique to ''{{{floor}}}'' | ||
+ | }}</includeonly><noinclude> | ||
+ | {{documentation}}[[Category:Linking Templates]]</noinclude> |
Latest revision as of 17:49, 9 May 2020
Contents
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
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.
The above documentation is transcluded from Template:Location/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |