Difference between revisions of "Template:Mapmark"

From Morloch Wiki
Jump to: navigation, search
Line 12: Line 12:
 
!Wikicoords
 
!Wikicoords
 
!Game Coords
 
!Game Coords
!Difference
 
 
|-
 
|-
 
|'''Center'''
 
|'''Center'''
 
|<nowiki>{{mapmark|236|139}}</nowiki>
 
|<nowiki>{{mapmark|236|139}}</nowiki>
 
|63471 x 52976
 
|63471 x 52976
|?
 
 
|-
 
|-
 
|'''NW'''
 
|'''NW'''
 
|<nowiki>{{mapmark|4|-16}}</nowiki>
 
|<nowiki>{{mapmark|4|-16}}</nowiki>
 
|11100 x 89561
 
|11100 x 89561
|?
 
 
|-
 
|-
 
|'''NE'''
 
|'''NE'''
 
|<nowiki>{{mapmark|475|-16}}</nowiki>
 
|<nowiki>{{mapmark|475|-16}}</nowiki>
 
|115843 x 89561
 
|115843 x 89561
|?
 
 
|-
 
|-
 
|'''SW'''
 
|'''SW'''
 
|<nowiki>{{mapmark|4|294}}</nowiki>
 
|<nowiki>{{mapmark|4|294}}</nowiki>
 
|11100 x 16391
 
|11100 x 16391
|?
 
 
|-
 
|-
 
|'''SE''':
 
|'''SE''':
 
|<nowiki>{{mapmark|475|294}}</nowiki>
 
|<nowiki>{{mapmark|475|294}}</nowiki>
 
|115843 x 16391
 
|115843 x 16391
|?
 
 
|-
 
|-
 
|}
 
|}
 +
:<sup>to find others, use the formulas below</sup>
 +
 
== Conversion Formula ==
 
== Conversion Formula ==
 
To convert in-game coords to coords on this map, use the following formulas ('''''x''''' is the in-game coordinate):<br>
 
To convert in-game coords to coords on this map, use the following formulas ('''''x''''' is the in-game coordinate):<br>

Revision as of 16:11, 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
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)