User:Medyro/Sandbox/4

From Guild Wars 2 Wiki
Jump to navigationJump to search

Description[edit]

Provides the logic for, and should only be used indirectly via, "Locators/<"within"-parameter value of the {{location infobox}}; as found on the area pages/map (page) name>"-subtemplates.

Usage[edit]

{{locators|<area to bound information definitions>|<floor definitions>}}
{{locators|<area to bound information definitions>|<floor definitions>|caption=<descriptive text>}}
{{locators|<area to bound information definitions>|<floor definitions>|locator=<locator file>}}
{{locators|<area to bound information definitions>|<floor definitions>|page=<page name>}}

Parameters[edit]

1 (unnamed parameter)
One or more lines of area to bound information definitions. Area to bound information definitions consist of the following two parts, in that order, separated with a tilde:
  1. The page name of the area.
  2. The bound information applicable to the area. The bound information should be of polygonal nature and must be of the form as would be specified in the "imagemap"-element. Refer to mw:Extension:ImageMap#Syntax description for a description of the syntax.
2 (unnamed parameter)
One or more lines of floor definitions. Floor definitions consist of the following three parts, in that order, separated with a tilde:
  1. The page names of the areas part of this floor. Multiple values must be separated with a semicolon. These values are what will be compared against the values passed to unnamed parameter one in order to determine the bound information for the area.
  2. Optional. The label for the floor. E.g. "Sky", "Ground", "Depths", etc. Multiple values must be separated with a semicolon. Should not be specified for maps where all of the areas are the same across all of the floors.
  3. Optional. The name of the file (without the namespace) for the image to show for the floor when the curent page does not describe any area on the floor, i.e. an image of the floor without any area highlighted. This may but should not be specified when this cannot occur; as would be the case for maps where all of the areas are the same across all of the floors.
caption
Optional. The text to display below all of the floor images.
locator
Optional. The name of the locator image for the area (without the namespace). Defaults to <"page"-parameter value> locator.svg.
page
Optional. The name of the area page. Defaults to {{PAGENAME}}.

Example[edit]

Template code[edit]

Locators/Bloodstone Fen
<includeonly>{{locators|
Bloodstone Maw          ~ poly 930.35 611.29 1106.31 97.13 1839.13 97.13 1947.63 299.88 1947.63 949.25 1566.28 996.31 1142.87 996.31 930.35 611.29 [[Bloodstone Maw]]
Cavern of Unseen Lights ~ poly 67.72 106.75 152.44 97.13 1106.31 97.13 930.35 611.29 1142.87 996.31 439.84 996.31 67.72 962.59 67.72 106.75 [[Cavern of Unseen Lights]]
Fragmented Wastes       ~ poly 152.44 97.13 67.72 106.75 67.72 962.59 439.84 996.31 455.28 595 401.97 486.22 474.59 375.41 742.47 306.97 742.47 306.97 628.16 550.72 455.28 595 439.84 996.31 1566.28 996.31 1947.63 949.25 1947.63 299.88 1839.13 97.13 152.44 97.13 152.44 97.13 [[Fragmented Wastes]]
Haunted Canyons         ~ poly 67.72 106.75 152.44 97.13 1106.31 97.13 930.35 611.29 1142.87 996.31 439.84 996.31 67.72 962.59 67.72 106.75 [[Haunted Canyons]]
Pride of the Pact       ~ poly 455.29 595 401.96 486.2 474.59 375.42 742.48 306.97 628.14 550.71 455.29 595 [[Pride of the Pact]]
|
Fragmented Wastes; Pride of the Pact    ~ Sky    ~ Bloodstone Fen area outlines (Sky).svg
Bloodstone Maw; Haunted Canyons         ~ Ground ~ Bloodstone Fen area outlines (Ground & Depths).svg
Bloodstone Maw; Cavern of Unseen Lights ~ Depths ~ Bloodstone Fen area outlines (Ground & Depths).svg
|caption={{{caption|}}}|locator={{{locator|}}}|page={{{page|}}}}}</includeonly><noinclude>
{{locators/preview|
Bloodstone Maw
Cavern of Unseen Lights
Fragmented Wastes
Haunted Canyons
Pride of the Pact
}}
</noinclude>
Possible "Location infobox"-code (for #ifexists true branch)
{{{{{locator template|Locators/{{{within}}}}}}|caption=<small>''Location within {{{locator text|{{{within|}}}}}}''</small>|locator={{{locator|}}}}}

Resultant appearance by area[edit]

Bloodstone Maw
Sky
User Medyro Bloodstone Fen (Sky).svgFragmented WastesPride of the Pact
Ground
Bloodstone Maw locator.svgBloodstone MawHaunted Canyons
Depths
Bloodstone Maw locator.svgBloodstone MawCavern of Unseen Lights
Location within Bloodstone Fen
Cavern of Unseen Lights
Sky
User Medyro Bloodstone Fen (Sky).svgFragmented WastesPride of the Pact
Ground
User Medyro Bloodstone Fen (Ground & Depths).svgBloodstone MawHaunted Canyons
Depths
Cavern of Unseen Lights locator.svgBloodstone MawCavern of Unseen Lights
Location within Bloodstone Fen
Fragmented Wastes
Sky
Fragmented Wastes locator.svgFragmented WastesPride of the Pact
Ground
User Medyro Bloodstone Fen (Ground & Depths).svgBloodstone MawHaunted Canyons
Depths
User Medyro Bloodstone Fen (Ground & Depths).svgBloodstone MawCavern of Unseen Lights
Location within Bloodstone Fen
Haunted Canyons
Sky
User Medyro Bloodstone Fen (Sky).svgFragmented WastesPride of the Pact
Ground
Haunted Canyons locator.svgBloodstone MawHaunted Canyons
Depths
User Medyro Bloodstone Fen (Ground & Depths).svgBloodstone MawCavern of Unseen Lights
Location within Bloodstone Fen
Pride of the Pact
Sky
Pride of the Pact locator.svgFragmented WastesPride of the Pact
Ground
User Medyro Bloodstone Fen (Ground & Depths).svgBloodstone MawHaunted Canyons
Depths
User Medyro Bloodstone Fen (Ground & Depths).svgBloodstone MawCavern of Unseen Lights
Location within Bloodstone Fen