< Template:Mapbox
Revision as of 14:07, 28 May 2022 by BelgianCat (talk | contribs)
Template:Mapbox/doc
From Tycoon Gaming
when trying to edit the coordinates of a mapbox, do not try to edit the section header, but edit the page instead. Trying to edit the section header, will change the base template itself instead.
This template (created by Bouncer#1861) creates a location header with a map and dot to indicate the location.
First we need the coordinates from the game. With some luck, the location might be in the transformer dump (provided by glitchdetector#0621): dump discord link Otherwise, use ttmap.eu
- For the ttmap, zoom in all the way, right click on location and copy the coordinates link.
For both ways of obtaining the coordinates, we now need to apply a formula to them:
x = (x + 6646) / -13.905 + 200
y = (y + 4866) / 13.905 - 850
(you can simply use this spreadsheet for calculating)
Example
{{mapbox|x=-296.6199209|y=-485.3254225|color=255,125,0}}
would result in this:
Location
This mapbox example is used on the Pacific Standard Bank page, but is otherwise used extensively for the trucking related transformers. See Special:WhatLinksHere/Template:Mapbox for all examples.