Template

Collapsible Map

From Dogcraft Wiki

(created)
 
No edit summary
Line 2: Line 2:
<templatestyles src="Template:Collapsible_Map/styles.css"/>
<templatestyles src="Template:Collapsible_Map/styles.css"/>


<div id="collapsible-container" class="toccolours mw-collapsible mw-collapsed" style="overflow:auto;">
<div id="collapsible-container" class="toccolours mw-collapsible mw-collapsed">
  <div style="text-align: center;">{{fa|location-dot}} {{{name|Location}}} on {{ucfirst:{{{world|sheltie}}}}}</div>
  <div style="text-align: center;">{{fa|location-dot}} {{{name|Location}}} on {{ucfirst:{{{world|sheltie}}}}}</div>
  <div class="mw-collapsible-content">
  <div class="mw-collapsible-content">
   <div id="outer-map-container" style="background-image: url(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="outer-map-container">
   <div id="marker-wrapper" style="{{#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;}} >
  https://map.dogcraft.net/maps/{{lc:{{{world|sheltie}}}}}/tiles/1/x{{#expr: floor({{{xCoord|0}}} / 500)}}/z{{#expr: floor({{{zCoord|0}}} / 500)}}.png
     <i class="fa-solid fa-location-dot" style="color: red; font-size: 70px;"></i>
   <div id="marker-wrapper" style="
left: calc(
{{#ifexpr: {{#expr: {{{xCoord|0}}} mod 500}} < 0  
| {{#expr: (500 + ({{{xCoord|0}}} mod 500)) / 5.01}}
| {{#expr: ({{{xCoord|0}}} mod 500) / 5.01}}}}% - 30px);
top: calc(
{{#ifexpr: {{#expr: {{{zCoord|0}}} mod 500}} < 0  
| {{#expr: (500 + ({{{zCoord|0}}} mod 500)) / 5.01}}  
| {{#expr: ({{{zCoord|0}}} mod 500) / 5.01}}}}% - 70px);
>
     <i class="fa-solid fa-location-dot"></i>
   </div>
   </div>
   </div>
   </div>

Revision as of 15:19, 9 February 2024


East Station on Sheltie
  z-1.png
   

X:1434, Z:-294 on Sheltie



This page was last modified on 9 February 2024, at 15:19. (23 days ago)
Background Dragon Slayer - Retriever by Ironboundred