Template
Map Location
From Dogcraft Wiki
(created) |
No edit summary |
||
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<templatestyles src="Template:Map_Location/styles.css"/> | <templatestyles src="Template:Map_Location/styles.css"/> | ||
<div id="map-outer-container"> | {{Panel | ||
|title = <div style="text-align: center;">{{fa|location-dot}} {{{name|Location}}} on {{ucfirst:{{{world|sheltie}}}}}</div> | |||
|width = 500px | |||
|content = <div id="map-outer-container"> | |||
<div id="map-inner-container"> | |||
[https://dogcraft.net/map#{{lc:{{{world|sheltie}}}}}:{{{xCoord|0}}}:0:{{{zCoord|0}}}:250:0:0:0:0:perspective Click for full 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)) - | <div id="marker-wrapper" style="position: absolute; width: 60px; text-align: center; {{#ifexpr: {{#expr: {{{xCoord|0}}} mod 500}} < 0 | left: {{#expr: (500 + ({{{xCoord|0}}} mod 500)) - 30}}px; | left: {{#expr: ({{{xCoord|0}}} mod 500) - 30}}px;}} {{#ifexpr: {{#expr: {{{zCoord|0}}} mod 500}} < 0 | top: {{#expr: (500 + ({{{zCoord|0}}} mod 500)) - 70}}px; | top: {{#expr: ({{{zCoord|0}}} mod 500) - 70}}px;}} > | ||
<i class="fa-solid fa-location-dot" style="color: red; font-size: 70px;"></i> | |||
</div> | </div> | ||
</div> | </div> | ||
<p id="coord-text">X:{{{xCoord|0}}}, Z:{{{zCoord|0}}} on {{ucfirst:{{{world|sheltie}}}}}</p> | |||
</div> | |||
}} | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{Map Location | {{Map Location | ||
|world = | |name = East Station | ||
|world = sheltie | |||
|xCoord = 1434 | |xCoord = 1434 | ||
|zCoord = -294 | |zCoord = -294 | ||
Line 19: | Line 28: | ||
{ | { | ||
"params": { | "params": { | ||
"name": { | |||
"type": "string", | |||
"default": "Location" | |||
}, | |||
"world": { | "world": { | ||
"default": "sheltie", | "default": "sheltie", | ||
Line 36: | Line 49: | ||
"description": "Map Location, shows a part of the map with the given location marked on it", | "description": "Map Location, shows a part of the map with the given location marked on it", | ||
"paramOrder": [ | "paramOrder": [ | ||
"name", | |||
"world", | "world", | ||
"xCoord", | "xCoord", |
Latest revision as of 19:33, 8 February 2024
East Station on Sheltie
X:1434, Z:-294 on Sheltie
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 |