Template

Collapsible Map

From Dogcraft Wiki

No edit summary
No edit summary
Line 27: Line 27:
       <div class="map-grid-child" id="map-1-3">https://map.dogcraft.net/maps/{{lc:{{{world|sheltie}}}}}/tiles/1/x{{#expr: floor({{{xCoord|0}}} / 500) + 1}}/z{{#expr: floor({{{zCoord|0}}} / 500) - 1}}.png</div>
       <div class="map-grid-child" id="map-1-3">https://map.dogcraft.net/maps/{{lc:{{{world|sheltie}}}}}/tiles/1/x{{#expr: floor({{{xCoord|0}}} / 500) + 1}}/z{{#expr: floor({{{zCoord|0}}} / 500) - 1}}.png</div>
       <div class="map-grid-child" id="map-2-1">https://map.dogcraft.net/maps/{{lc:{{{world|sheltie}}}}}/tiles/1/x{{#expr: floor({{{xCoord|0}}} / 500) - 1}}/z{{#expr: floor({{{zCoord|0}}} / 500)}}.png</div>
       <div class="map-grid-child" id="map-2-1">https://map.dogcraft.net/maps/{{lc:{{{world|sheltie}}}}}/tiles/1/x{{#expr: floor({{{xCoord|0}}} / 500) - 1}}/z{{#expr: floor({{{zCoord|0}}} / 500)}}.png</div>
       <div class="inner-map-container map-grid-child" id="map-2-2">
       <div class="inner-map-container map-grid-child" id="map-2-2">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 id="marker-wrapper" style="
         <div id="marker-wrapper" style="
left: calc(
left: calc(

Revision as of 11:39, 27 March 2024


East Station

X:1434, Z:-294 on Sheltie



East Station

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

Name of the location. Used only in the heading

Default
Map
Stringoptional
worldworld

The world the location is on. This needs to match the world name used on the dynmap!

Default
sheltie
Stringoptional
xCoordxCoord

The x coordinate of the location

Default
0
Numberoptional
zCoordzCoord

The z coordinate of the location

Default
0
Numberoptional
collapsedcollapsed

If true, the map is collapsed by default, otherwise it is expanded by default

Default
false
Booleanoptional
showCoordsshowCoords

If true, will display the coordinates and world below the map

Default
false
Booleanoptional
scalescale

The scale of the map. 0 - 500x500 block map, 1 - 1500x1500 map

Default
0
Numberoptional
This page was last modified on 27 March 2024, at 11:39. (23 days ago)