Template:HasMap: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
<includeonly>{{MessageBox
<includeonly>{{#invoke:Map|map}}</includeonly><noinclude>{{/doc}}</noinclude>
|class = info plainlinks
|img = [[File:World map icon.png|center|link=]]
|This page has an interactive map associated with it. {{#ifeq:{{#sub:{{{2|}}}|0|4}}|http|[{{{2}}} Click here]|[[{{{2|/Map}}}|Click here]]}} to view {{{1|{{PAGENAME}}}}} in more detail.
}}</includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 11:42, 17 October 2024

Template documentation
This documentation is transcluded from Template:HasMap/doc. [edit] [history] [purge]

The HasMap template can be used to link to an interactive map relevant to a page. The first parameter indicates the subject of the page, and the second parameter specifies either a wikipage to link to or a full URL to link to. The template will automatically determine which one of the two the link needs to go to. If the second parameter is absent, the link will go to a /Map subpage of the current page.

Wikilink example

{{HasMap|a map of music track unlock locations|Map:Music tracks}} becomes:

URL example

{{HasMap|the world map|https://maps.runescape.wiki/osrs/#1/0/0/3232/3232}} becomes: