Template:MapLink/Documentation: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(Created page with "This template creates an element that is understood by the Breath of the Wild Map as an internal link to another location. Clicking on...")
 
No edit summary
Line 1: Line 1:
This template creates an element that is understood by the [[Zelda Dungeon:Breath of the Wild Map|Breath of the Wild 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. This is intended for use inside <code><nowiki><section><includeonly></includeonly></section></nowiki></code> tags.
This template creates an element that is understood by the [[Zelda Dungeon:Breath of the Wild Map|Breath of the Wild 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==
==Usage==
Line 6: Line 6:
{{Usage/Param|lat|Latitude of the target as defined in its {{Temlink|Pin}} template.|optional}}
{{Usage/Param|lat|Latitude of the target as defined in its {{Temlink|Pin}} template.|optional}}
{{Usage/Param|lng|Longitude of the target as defined in its {{Temlink|Pin}} template.|optional}}
{{Usage/Param|lng|Longitude of the target as defined in its {{Temlink|Pin}} template.|optional}}
This is intended for use inside <code><nowiki><section></section></nowiki></code> tags. On the wiki, it is displayed as a simple wikilink to the article specified in the <code>text</code> parameter. If this isn't desired, hide it with <code><nowiki><includeonly></includeonly></nowiki></code>.


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


(The output is ultimately displayed on the map, not the wiki - visit the map to see example output)
(visit the map to see example output in map format)

Revision as of 19:27, March 10, 2017

This template creates an element that is understood by the Breath of the Wild 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. On the wiki, it is displayed as a simple wikilink to the article specified in the text parameter. If this isn't desired, hide it with <includeonly></includeonly>.

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)