Pine Wiki
(new param: Area)
m
 
(3 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
-->{{#if:{{{Area|}}}|&area={{{Area}}}}}<!--
 
-->{{#if:{{{Area|}}}|&area={{{Area}}}}}<!--
 
-->{{#if:{{{Layers|}}}|&layers={{{Layers}}}}}<!--
 
-->{{#if:{{{Layers|}}}|&layers={{{Layers}}}}}<!--
-->|#&|#}} {{{Text|Show on map}}}]</includeonly><noinclude>
+
-->|#&|#}} {{{Text|Show on map}}}]</includeonly><noinclude>{{doc}}
  +
[[Category:Templates]]
This template is used to link to the [[Interactive Map]].
 
  +
[[Category:Link templates]]
 
If there are other maps in existence, this template should be changed, to not display a link directly, but show an dropdown to select which map to use. IDs and Layer names need to be adjusted then. Probably it's best to have one template per map and use this one only for the dropdown. As a fallback to the ID it might be advisable to always give the coordinates additionally.
 
 
Parameters:
 
* ID
 
* X
 
* Z
 
* Zoom
 
* Layers
 
* Area
 
* Text (for the link)
 
 
Examples:
 
* {{Map|ID=42|Text=by ID}}
 
* {{Map|ID=42|Zoom=3|Text=by ID and zoom}}
 
* {{Map|X=-506.06|Z=15.87|Text=by coordinates}}
 
* {{Map|X=-506.06|Z=15.87|Zoom=3|Text=by coordinates and zoom}}
 
* {{Map|Area=16|Text=by Area}}
 
* {{Map|Layers=unique.chest,unique.idea|Text=only show specific layers}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 23:04, 20 May 2021

Template-info.png Documentation

This template is used to link to the Interactive Map.

If there are other maps in existence, this template should be changed, to not display a link directly, but show an dropdown to select which map to use. IDs and Layer names need to be adjusted then. Probably it's best to have one template per map and use this one only for the dropdown. As a fallback to the ID it might be advisable to always give the coordinates additionally.

Parameters:

  • ID
  • X
  • Z
  • Zoom
  • Layers
  • Area
  • Text (for the link)

Examples: