Template
Survival3Location
From Dogcraft Wiki
imported>William No edit summary |
mNo edit summary |
||
(103 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{Panel | ||
{{Superimpose | |width={{#expr: 1000 * {{{scale}}}}}px | ||
|title=<div style="text-align: center;">'''[[File:Locator.svg|16px]] {{{location_name}}} in Survival 3'''</div> | |||
|content=<div class="worldmap toccolours" style="text-align: center;">{{Superimpose | |||
| base = 2020-01-10-Grand-Map-complete-hiRez-cropped.png | | base = 2020-01-10-Grand-Map-complete-hiRez-cropped.png | ||
| base_width = | | base_width = {{#expr: 1000 * {{{scale}}}}}px | ||
| base_alt = Location of {{{location_name}}} on the [[Grand Map]] of [[Survival 3]]. | | base_alt = Location of {{{location_name}}} on the [[Grand Map]] of [[Survival 3]]. | ||
| base_caption = Grand Map of Survival 3 | | base_caption = Grand Map of [[Survival 3]] | ||
| float = Locator.svg | | float = {{#ifeq: {{{transport}}}|true|SRN NTN Overlay.png|Blank.png}} | ||
| | | float_width = {{#expr: 1000 * {{{scale}}}}}px | ||
| | | x = 0 | ||
| | | y = 0 | ||
| float2 = Locator.svg | |||
| float2_width = 25px | |||
| x2 = {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{xcoord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} | |||
| y2 = {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{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> | |||
}}</div> | |||
<div style="text-align: center; margin-top: 0.5em;">(Co-ordinates — X: '''{{{xcoord}}}''', Z: '''{{{zcoord}}}''')</div> | |||
}}</includeonly> | }}</includeonly> | ||
<noinclude> | <noinclude>[[Category:Location map templates]] | ||
<pre> | |||
{{Survival3Location | {{Survival3Location | ||
|location_name = | |location_name = Chronia | ||
|xcoord = | |xcoord = 4600 | ||
|zcoord = | |zcoord = -11700 | ||
|scale = 0.5 | |||
|collapsed = true | |||
|transport = true | |||
}} | }} | ||
</pre> | |||
{{Survival3Location | |||
|location_name = Chronia | |||
|xcoord = 4600 | |||
|zcoord = -11700 | |||
|scale = 0.5 | |||
|collapsed = true | |||
|transport = true | |||
}}<templatedata> | |||
{ | |||
"params": { | |||
"scale": { | |||
"label": "Scale modifier", | |||
"description": "Determines the size of the map. 1 = 1000px map.", | |||
"type": "number", | |||
"default": "1", | |||
"autovalue": "1", | |||
"required": true | |||
}, | |||
"location_name": { | |||
"label": "Location Name", | |||
"description": "The name of the location", | |||
"required": true, | |||
"type": "string" | |||
}, | |||
"xcoord": { | |||
"label": "X-Coordinate", | |||
"description": "The X value, positive or negative integer.", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"zcoord": { | |||
"label": "Z-Coordinate", | |||
"description": "The Z value, positive or negative integer", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"transport": { | |||
"label": "Transport", | |||
"description": "Display SRN and NTN routes overlay?", | |||
"type": "boolean", | |||
"default": "false", | |||
"autovalue": "false", | |||
"required": true | |||
}, | |||
"collapsed": { | |||
"label": "Collapse by default", | |||
"description": "If the map should be collapsed by default, requiring the user to press \"Expand\" to view it.", | |||
"type": "boolean", | |||
"default": "true", | |||
"autovalue": "true", | |||
"required": true | |||
} | |||
}, | |||
"description": "Accepts co-ordinates of a location on the Survival 3 world and generates a collapsible map using the Grand Map showing where the location is in the world.", | |||
"paramOrder": [ | |||
"location_name", | |||
"xcoord", | |||
"zcoord", | |||
"scale", | |||
"collapsed", | |||
"transport" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> |
Latest revision as of 13:32, 4 December 2023
{{Survival3Location |location_name = Chronia |xcoord = 4600 |zcoord = -11700 |scale = 0.5 |collapsed = true |transport = true }}
Accepts co-ordinates of a location on the Survival 3 world and generates a collapsible map using the Grand 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 |