To get rid of this ad please Sign up/Login.
Difference between revisions of "Template:Creature Spawns Map/EntropiaPlanets Forums"
m |
m |
||
Line 1: | Line 1: | ||
<div style="position:absolute; left:{{#expr: ({{{?Longitude|}}} - 8200)/30}} | <div style="position:absolute; left:{{#expr: ({{{?Longitude|}}} - 8200)/30}}-6px; bottom:{{#expr: ({{{?Latitude|}}} -8200)/ 30}}-6px; width:200px; height:16px; vertical-align:middle; border:1px solid green;">[[File:Creature_Map_Icon.png|{{{?Creature|}}} Position:({{{?Longitude|}}},{{{?Latitude|}}},x) Min-Max Level:{{{?Creature Min Level|}}}-{{{?Creature Max Level|}}} Spawn Size:{{{?Spawn Size|}}} Spawn Rate:{{{?Spawn Rate|}}} Loot Distribution:{{{?Spawn Loot Distribution|}}} Spawn Type:{{{?Spawn Type|}}} Estate:{{{?Estate|}}} Hunting Tax:{{{?Hunting Tax|}}} Mining Tax:{{{?Mining Tax|}}}|x12px|link={{{?Location|}}}]] {{{?Form Edit Link|}}} {{{?Creature|}}}</div> | ||
<!-- This is a comment --> | <!-- This is a comment explaining a few numbers | ||
left:{{#expr: ({{{?Longitude|}}} - 8200)/30}}-6px; is defining the start of the div from the left border of the map. 8200 is the about the offset of the map, meaning the left border of the map represent 8200 longitude. {{{?Longitude|}}} - 8200) is divided by 30 because the map image has width:800px and is showing 3 server areas of 8000m each respectively 24000m total, so factor 30 consists of 2 subfactors: factor 10 representing the relation of a server area width (8000) to the with of the map image (800); and factor 3 which is the number of server areas on the map image (in horizontal of course). Latitude is working accordingly. Using left: and bottom: results in the bottom left corner of the div is actually representing the location. Therefore both Long and Lat have another offset of 6px to align the actual location to the center of the map marker representing the location. --> |