Template

Collapsible Map

From Dogcraft Wiki

No edit summary
No edit summary
Line 21: Line 21:
   </div>
   </div>
   </div>
   </div>
   <p id="coord-text">X:{{{xCoord|0}}}, Z:{{{zCoord|0}}} on {{ucfirst:{{{world|sheltie}}}}}</p>
   {{#ifeq:{{{showCoords|}}}|true|<p id="coord-text">X:{{{xCoord|0}}}, Z:{{{zCoord|0}}} on {{ucfirst:{{{world|sheltie}}}}}</p>}}
  </div>
  </div>
</div>
</div>
Line 28: Line 28:
<div style="width: 50%;">
<div style="width: 50%;">
{{Collapsible Map
{{Collapsible Map
|name   = East Station
|name       = East Station
|world   = sheltie
|world     = sheltie
|xCoord = 1434
|xCoord     = 1434
|zCoord = -294
|zCoord     = -294
|showCoords = true
}}
}}
</div>
</div>
Line 61: Line 62:
             "default": "false",
             "default": "false",
             "description": "If true, the map is collapsed by default, otherwise it is expanded by default"
             "description": "If true, the map is collapsed by default, otherwise it is expanded by default"
        },
        "showCoords": {
            "type": "boolean",
            "default": "false",
            "description": "If true, will display the coordinates and world below the map"
         }
         }
     },
     },
Line 69: Line 75:
         "xCoord",
         "xCoord",
         "zCoord",
         "zCoord",
         "collapsed"
         "collapsed",
        "showCoords"
]
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 22:02, 9 February 2024


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
Location
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
This page was last modified on 9 February 2024, at 22:02. (26 days ago)