Template:HasMap: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "<includeonly>{{MessageBox |class = info plainlinks |img = 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>")
 
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly>{{#invoke:Map|map}}</includeonly><noinclude>{{/doc}}</noinclude>
<includeonly>{{MessageBox
|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>

Revision as of 00:36, 17 October 2024

Template documentation
This documentation is transcluded from Template:HasMap/doc. [edit] [history] [purge]
Template:HasMap invokes function map in Module:Map using Lua.

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: Lua error: [Module:Map] Feature contains mismatched coordinates.

URL example

{{HasMap|the world map|https://maps.runescape.wiki/osrs/#1/0/0/3232/3232}} becomes: Lua error: [Module:Map] Feature contains mismatched coordinates.