Template

Map Location

From Dogcraft Wiki

No edit summary
No edit summary
Line 2: Line 2:
<templatestyles src="Template:Map_Location/styles.css"/>
<templatestyles src="Template:Map_Location/styles.css"/>
{{Panel
{{Panel
|title = <div style="text-align: center;">{{{name|Location}}} on {{ucfirst:{{{world|sheltie}}}}}</div>
|title = <div style="text-align: center;">{{fa|location-dot}} {{{name|Location}}} on {{ucfirst:{{{world|sheltie}}}}}</div>
|width = 500px
|width = 500px
|content = <div id="map-outer-container">
|content = <div id="map-outer-container">
Line 9: Line 9:
https://map.dogcraft.net/maps/{{lc:{{{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; 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;}} >
[[File:Map Pointer.png|left|50px]]
<i class="fa-solid fa-location-dot" style="color: red; font-size: 70px;"></i>
</div>
</div>
</div>
</div>

Revision as of 17:30, 8 February 2024


East Station on Sheltie

z-1.png

X:1434, Z:-294 on Sheltie


Map Location, shows a part of the map with the given location marked on it

Template parameters

ParameterDescriptionTypeStatus
namename

no description

Default
Location
Stringoptional
worldworld

no description

Default
sheltie
Stringoptional
xCoordxCoord

The x coordinate of the location

Default
0
Numberoptional
zCoordzCoord

The z coordinate of the location

Default
0
Numberoptional
This page was last modified on 8 February 2024, at 17:30. (3 months ago)