Difference between revisions of "Template:Mapmark"

From Morloch Wiki
Jump to: navigation, search
Line 40: Line 40:
 
|-
 
|-
 
|}
 
|}
 +
== Conversion Formula ==
 +
To convert in-game coords to coords on this map, use the following formulas ('''''x''''' is the in-game coordinate):<br>
 +
:'''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 {{PAGENAME}}:
 +
  ('''''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 <nowiki>{{mapmark|144.56|169.82}}</nowiki>.
 +
:''note: I am working on changing this so that the wiki does the calculation for you.''  --[[User:Rewen|Rewen]] ([[User talk:Rewen|talk]]) 10:59, 26 September 2017 (CDT)
 
</noinclude>
 
</noinclude>

Revision as of 15:59, 26 September 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 latitude, and the second parameter is the longitude.

Marker Positions

Location Wikicoords Game Coords Difference
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 ?

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)