Template:MapLink/Documentation

From Zelda Dungeon Wiki
< Template:MapLink
Revision as of 19:54, March 10, 2017 by Locke (talk | contribs) (update doc with pin info)
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.

This template has two behaviors depending on whether it's displayed on a page or called by the API. On a page, it generates a simple wikilink with a pin icon linking to the Breath of the Wild Map. Called by the API (i.e. from the map), it creates an element that is understood by the map as an internal link to another location. Clicking on this link will pan the map (or jump if far away) to the given location.

Usage

{{MapLink/Documentation| text | lat | lng }}

  • text — Display text that the user clicks. If lat and lng aren't supplied, this also doubles as the target id to link to.
  • lat — Latitude of the target as defined in its {{Pin}} template. (Optional.)
  • lng — Longitude of the target as defined in its {{Pin}} template. (Optional.)

This is intended for use inside <section></section> tags.

Example

<section begin=summary />'''Shrine Quest:''' {{MapLink|The Stolen Heirloom}}<section end=summary />

Shrine Quest: The Stolen Heirloom

(visit the map to see example output in map format)