Template:Coordinates: Difference between revisions

From EarthMC
Jump to navigation Jump to search
>Nicosecci
No edit summary
(added multiserver support)
Line 1: Line 1:
<includeonly>[[File:Wiki-wordmark.png|20px|link=https://earthmc.net/map/?worldname=earth&mapname=flat&zoom=6&x={{{x}}}&y=64&z={{{z}}} ]] [https://earthmc.net/map/?worldname=earth&mapname=flat&zoom=6&x={{{x}}}&y=64&z={{{z}}} {{{x}}}, {{{z}}}]</includeonly>
<includeonly>[[File:Wiki-wordmark.png|20px|link=https://earthmc.net/map/{{{server}}}/?worldname=earth&mapname=flat&zoom=6&x={{{x}}}&y=64&z={{{z}}} ]] [https://earthmc.net/map/?worldname=earth&mapname=flat&zoom=6&x={{{x}}}&y=64&z={{{z}}} {{{x}}}, {{{z}}}]</includeonly>
<noinclude>
<noinclude>
This template can be used to create links to specific locations on the server dynmap.
This template can be used to create links to specific locations on the server dynmap.
Line 6: Line 6:


Template usage:
Template usage:
  <nowiki>{{</nowiki>Coordinates|x=''XCoords''|z=''ZCoords''}}
  <nowiki>{{</nowiki>Coordinates|server=''serverName''|x=''XCoords''|z=''ZCoords''}}
Example:
Example:
  <nowiki>{{</nowiki>Coordinates|x=4099|z=-12418}}
  <nowiki>{{</nowiki>Coordinates|server=aurora|x=4099|z=-12418}}
which gives {{Coordinates|x=4099|z=-12418}}
which gives {{Coordinates|server=aurora|x=4099|z=-12418}}
</noinclude>
</noinclude>

Revision as of 22:18, 23 March 2023


This template can be used to create links to specific locations on the server dynmap.

Usage

Template usage:

{{Coordinates|server=serverName|x=XCoords|z=ZCoords}}

Example:

{{Coordinates|server=aurora|x=4099|z=-12418}}

which gives Wiki-wordmark.png 4099, -12418