Template:Mapmark: Difference between revisions

From Morloch Wiki
Jump to navigation Jump to search
No edit summary
(Undo revision 33461 by Rewen (talk))
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Ti|marking a map using input coords}}
<div class="mapmark"><div style="top: {{#expr: ({{{2|52976}}} - 16391) / 73170 * -310 + 294}}px; left: {{#expr: ({{{1|63471}}} - 11100) / 104743 * 471 + 4}}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;"><span id="fadein"><p>[[File:Markedmap.png|border|{{{3|500}}}px|link=vorringia]]</p></span></div></div>
</noinclude><span id="fadein">
<div class="mapmark"><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></span>
<noinclude>
== Parameters ==
The first parameter is the '''longitude''' (horizontal position) and the second parameter is the '''latitude''' (vertical position).
=== Marker Positions ===
{| class="wikitable"
|-
!Location
!Wikicoords
!Game Coords
|-
|'''Center'''
|<nowiki>{{mapmark|236|139}}</nowiki>
|63471 x 52976
|-
|'''NW'''
|<nowiki>{{mapmark|4|-16}}</nowiki>
|11100 x 89561
|-
|'''NE'''
|<nowiki>{{mapmark|475|-16}}</nowiki>
|115843 x 89561
|-
|'''SW'''
|<nowiki>{{mapmark|4|294}}</nowiki>
|11100 x 16391
|-
|'''SE''':
|<nowiki>{{mapmark|475|294}}</nowiki>
|115843 x 16391
|-
|}
:<sup>to find others, use the formulas below</sup>
 
== 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>

Latest revision as of 18:40, 26 October 2017

Map Marker