Difference between revisions of "Template:Mapmark"

From Morloch Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude><br><br><br><br><br><br><br><br><br><br><br><br><br><br>{{Ti|marking a map using input coords}}
 
<noinclude><br><br><br><br><br><br><br><br><br><br><br><br><br><br>{{Ti|marking a map using input coords}}
 
</noinclude>
 
</noinclude>
<div id="fadein" class="mapmark"><p>
+
<div class="mapmark"><span id="fadein"><p>
 
<div style="top: {{{2|139}}}px; left: {{{1|236}}}px; z-index: 2; position: relative; margin-top: 10px;">[[File:Mapmarker.png|30px|Map Marker]]</div>
 
<div style="top: {{{2|139}}}px; left: {{{1|236}}}px; z-index: 2; position: relative; margin-top: 10px;">[[File:Mapmarker.png|30px|Map Marker]]</div>
 
<div style="top: 0px; left: 0px; z-index: 1; position: absolute; margin-top: -6px;">[[File:Markedmap.png|border|{{{3|500}}}px|link=vorringia]]</div>
 
<div style="top: 0px; left: 0px; z-index: 1; position: absolute; margin-top: -6px;">[[File:Markedmap.png|border|{{{3|500}}}px|link=vorringia]]</div>
</p>
+
</p></span>
 
</div>
 
</div>
 
<noinclude>
 
<noinclude>

Revision as of 18:36, 4 October 2017















Template:Mapmark is used for marking a map using input coords.

How to Use Template:Mapmark

  • This template can be added to a page by typing the following in the page's code with any applicable parameters inserted after the name:
{{Mapmark}}

Raw Example of Template:Mapmark

Map Marker
Markedmap.png

Parameters

The first parameter is the longitude (horizontal position) and the second parameter is the latitude (vertical position).

Marker Positions

Location Wikicoords Game Coords
Center {{mapmark|236|139}} 63471 x 52976
NW {{mapmark|4|-16}} 11100 x 89561
NE {{mapmark|475|-16}} 115843 x 89561
SW {{mapmark|4|294}} 11100 x 16391
SE: {{mapmark|475|294}} 115843 x 16391
to find others, use the formulas below

Conversion Formula

To convert in-game coords to coords on this map, use the following formulas (x is the in-game coordinate):

First Coordinate (called LT in-game):
(x - 11100) / 104743 * 471 + 4
Second Coordinate (called LG in-game):
(x - 16391) / 73170 * -310 + 294

Example

The Animator discipline dropper is at 42360x45700. To plot this location on Mapmark:

 (42360 - 11100) / 104743 * 471 + 4 = 144.56
 (45700 - 16391) / 73170 * -310 + 294 = 169.82

So to get a map showing this location with this template, you would type {{mapmark|144.56|169.82}}.

note: I am working on changing this so that the wiki does the calculation for you. --Rewen (talk) 10:59, 26 September 2017 (CDT)