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 | |name = East Station | ||
|world | |world = sheltie | ||
|xCoord | |xCoord = 1434 | ||
|zCoord | |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
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | Name of the location. Used only in the heading
| String | optional |
world | world | The world the location is on. This needs to match the world name used on the dynmap!
| String | optional |
xCoord | xCoord | The x coordinate of the location
| Number | optional |
zCoord | zCoord | The z coordinate of the location
| Number | optional |
collapsed | collapsed | If true, the map is collapsed by default, otherwise it is expanded by default
| Boolean | optional |
showCoords | showCoords | If true, will display the coordinates and world below the map
| Boolean | optional |
This page was last modified on 9 February 2024, at 22:02. (23 days ago)