Template
Survival2Location
From Dogcraft Wiki
imported>William (Created page with "<includeonly> <div class="toccolours mw-collapsible {{#ifeq: {{{collapsed}}}|true|mw-collapsed|}}" style="width: {{#expr: 1000 * {{{scale}}}}}px; max-width: {{#expr: 1000 * {{...") |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 12: | Line 12: | ||
| float2 = Locator.svg | | float2 = Locator.svg | ||
| float2_width = 25px | | float2_width = 25px | ||
| x2 = {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 10240 + {{{xcoord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} | | x2 = {{#expr: {{#expr: {{{scale}}} * 340}} + {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 10240 + {{{xcoord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | ||
| y2 = {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 10240 + {{{zcoord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} | | y2 = {{#expr: {{#expr: {{{scale}}} * 46}} + {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 10240 + {{{zcoord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | ||
| t2 = <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:#970000; display: inline-block; color:white; font-size:80%; text-align:center;">'''{{{location_name}}}'''</p> | | t2 = <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:#970000; display: inline-block; color:white; font-size:80%; text-align:center;">'''{{{location_name}}}'''</p> | ||
}}(Co-ordinates - X: '''{{{xcoord}}}''', Z: '''{{{zcoord}}}''') <br>Note that the Great Survival Map only covers a distance of 10,240 blocks from spawn. | }}(Co-ordinates - X: '''{{{xcoord}}}''', Z: '''{{{zcoord}}}''') <br>Note that the Great Survival Map only covers a distance of 10,240 blocks from spawn. | ||
Line 20: | Line 20: | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude>[[Category:Location map templates]] | ||
<pre> | <pre> | ||
{{ | {{Survival2Location | ||
|location_name = | |location_name = Akkara | ||
|xcoord = | |xcoord = 0 | ||
|zcoord = | |zcoord = 0 | ||
|scale = 0.5 | |scale = 0.5 | ||
|collapsed = true | |collapsed = true | ||
Line 32: | Line 32: | ||
</pre> | </pre> | ||
{{ | {{Survival2Location | ||
|location_name = | |location_name = Akkara | ||
|xcoord = | |xcoord = 0 | ||
|zcoord = | |zcoord = 0 | ||
|scale = 0.5 | |scale = 0.5 | ||
|collapsed = true | |collapsed = true |
Latest revision as of 13:32, 4 December 2023
{{Survival2Location |location_name = Akkara |xcoord = 0 |zcoord = 0 |scale = 0.5 |collapsed = true |transport = true }}
Akkara
(Co-ordinates - X: 0, Z: 0)
Note that the Great Survival Map only covers a distance of 10,240 blocks from spawn.
Accepts co-ordinates of a location on the Survival 2 world and generates a collapsible map using the Great Survival Map showing where the location is in the world.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Location Name | location_name | The name of the location | String | required |
X-Coordinate | xcoord | The X value, positive or negative integer. | Number | required |
Z-Coordinate | zcoord | The Z value, positive or negative integer | Number | required |
Scale modifier | scale | Determines the size of the map. 1 = 1000px map.
| Number | required |
Collapse by default | collapsed | If the map should be collapsed by default, requiring the user to press "Expand" to view it.
| Boolean | required |
Transport | transport | Display SRN and NTN routes overlay?
| Boolean | required |