To get rid of this ad please Sign up/Login.
Difference between revisions of "Template:Creature Spawns Map/EntropiaPlanets Forums"
m |
m |
||
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <table style="position:absolute; left:{{#expr: ({{{?Longitude|}}} - 8200)/30 -15}}px; bottom:{{#expr: ({{{?Latitude|}}} -8200)/30 -20}}px; width:200px; vertical-align:middle;"> | ||
<tr> | <tr> | ||
<td style=" | <td style="width:30px;"> | ||
<td> </td> | <div style="height:10px; text-align:center; position:relative; top:0px; font-size:10px; font-weight:bold;">{{{?Creature Min Level|}}}</div> | ||
<div style="height:20px; vertical-align:middle;">[[File:Spawn{{{?Spawn Size|}}}_Marker.png|middle|link={{{?Location|}}}|{{{?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|}}}]]</div> | |||
<div style="height:10px; text-align:center; position:relative; bottom:8px; font-size:10px; font-weight:bold;">{{{?Creature Max Level|}}}</div> | |||
</td> | |||
<td style="vertical-align:middle"> | |||
{{#replace:{{{?Creature|}}}|Creature:| }} {{{?Form Edit Link|}}} | |||
</td> | |||
</tr> | </tr> | ||
</table> | |||
<!-- This is a comment explaining a few numbers | <!-- This is a comment explaining a few numbers | ||
left:{{#expr: ({{{?Longitude|}}} - 8200)/30 - | left:{{#expr: ({{{?Longitude|}}} - 8200)/30 -15}}px; is defining the start of the table 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 table representing the location. Therefore Longitude has another offset of -15px (~half width of the marker image) and Latitude another offset of -20px (~half the total height of the table) to align the center of the map marker to the actual location. --> |