Template
Map Location
From Dogcraft Wiki
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
|content = <div id="map-outer-container" href="https://dogcraft.net/map"> | |content = <div id="map-outer-container" href="https://dogcraft.net/map"> | ||
<div id="map-container"> | <div id="map-container"> | ||
https://map.dogcraft.net/maps/{{{world|sheltie}}}/tiles/1/x{{#expr: floor({{{xCoord|0}}} / 500)}}/z{{#expr: floor({{{zCoord|0}}} / 500)}}.png | https://map.dogcraft.net/maps/{{lc:{{{world|sheltie}}}}}/tiles/1/x{{#expr: floor({{{xCoord|0}}} / 500)}}/z{{#expr: floor({{{zCoord|0}}} / 500)}}.png | ||
</div> | </div> | ||
<div id="marker-wrapper" style="position: absolute; {{#ifexpr: {{#expr: {{{xCoord|0}}} mod 500}} < 0 | left: {{#expr: (500 + ({{{xCoord|0}}} mod 500)) - 25}}px; | left: {{#expr: ({{{xCoord|0}}} mod 500) - 25}}px;}} {{#ifexpr: {{#expr: {{{zCoord|0}}} mod 500}} < 0 | top: {{#expr: (500 + ({{{zCoord|0}}} mod 500)) - 78}}px; | top: {{#expr: ({{{zCoord|0}}} mod 500) - 78}}px;}} > | <div id="marker-wrapper" style="position: absolute; {{#ifexpr: {{#expr: {{{xCoord|0}}} mod 500}} < 0 | left: {{#expr: (500 + ({{{xCoord|0}}} mod 500)) - 25}}px; | left: {{#expr: ({{{xCoord|0}}} mod 500) - 25}}px;}} {{#ifexpr: {{#expr: {{{zCoord|0}}} mod 500}} < 0 | top: {{#expr: (500 + ({{{zCoord|0}}} mod 500)) - 78}}px; | top: {{#expr: ({{{zCoord|0}}} mod 500) - 78}}px;}} > |
Revision as of 15:44, 8 February 2024
Map Location, shows a part of the map with the given location marked on it
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | no description
| String | optional |
world | world | no description
| String | optional |
xCoord | xCoord | The x coordinate of the location
| Number | optional |
zCoord | zCoord | The z coordinate of the location
| Number | optional |
This page was last modified on 8 February 2024, at 15:44. (9 months ago)