Template

Survival3Location

From Dogcraft Wiki

imported>William
No edit summary
mNo edit summary
 
(49 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{Panel
<div class="toccolours mw-collapsible mw-collapsed" style="width: {{#expr: 1000 * {{{scale}}}}}px; max-width: {{#expr: 1000 * {{{scale}}}}}px; text-align: center>
|width={{#expr: 1000 * {{{scale}}}}}px
<h3 style="padding:0.3em 0.4em; margin:10px 0 10px 0; background: #970000; color:white; font-size:140%; text-align:center;">[[File:Locator.svg|20px]] '''{{{location_name}}} in Survival 3'''</h3><div class="mw-collapsible-content">{{Superimpose
|title=<div style="text-align: center;">'''[[File:Locator.svg|16px]] {{{location_name}}} in Survival 3'''</div>
   | base = {{#ifeq: {{{transport}}}|false|2020-01-10-Grand-Map-complete-hiRez-cropped.png|{{GrandMapSRN|size = {{#expr: 1000 * {{{scale}}}}}px}}}}
|content=<div class="worldmap toccolours" style="text-align: center;">{{Superimpose
   | base = 2020-01-10-Grand-Map-complete-hiRez-cropped.png
   | base_width = {{#expr: 1000 * {{{scale}}}}}px
   | 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]]
   | base_type = {{#ifeq: {{{transport}}}|true|img|sim}}
   | float = {{#ifeq: {{{transport}}}|true|SRN NTN Overlay.png|Blank.png}}
  | float = Locator.svg
   | float_width = {{#expr: 1000 * {{{scale}}}}}px
   | float_width = {{#expr: 25 * {{{scale}}}}}px
   | x = 0
   | x = {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{xcoord}}}}} / 40.8}}}} round 0}}
  | y = 0
   | y = {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{zcoord}}}}} / 42}}}} round 0}}
  | float2 = Locator.svg
}}(Co-ordinates - X: '''{{{xcoord}}}''', Z: '''{{{zcoord}}}''')
  | float2_width = 25px
</div>
  | x2 = {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{xcoord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}}
</div>
   | 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>
</includeonly>
}}</div>
<noinclude>
<div style="text-align: center; margin-top: 0.5em;">(Co-ordinates &mdash; X: '''{{{xcoord}}}''', Z: '''{{{zcoord}}}''')</div>
}}</includeonly>
<noinclude>[[Category:Location map templates]]
<pre>
<pre>
{{Survival3Location
{{Survival3Location
|location_name = West Station
|location_name = Chronia
|xcoord = -1029
|xcoord = 4600
|zcoord = -270
|zcoord = -11700
|scale = 0.5
|scale = 0.5
|collapsed = true
|transport = true
|transport = true
}}
}}
Line 28: Line 32:


{{Survival3Location
{{Survival3Location
|location_name = West Station
|location_name = Chronia
|xcoord = -1029
|xcoord = 4600
|zcoord = -270
|zcoord = -11700
|scale = 0.5
|scale = 0.5
|transport = false
|collapsed = true
|transport = true
}}<templatedata>
}}<templatedata>
{
{
Line 60: Line 65:
"description": "The Z value, positive or negative integer",
"description": "The Z value, positive or negative integer",
"type": "number",
"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
"required": true
}
}
Line 68: Line 89:
"xcoord",
"xcoord",
"zcoord",
"zcoord",
"scale"
"scale",
"collapsed",
"transport"
]
]
}
}
</templatedata>
</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
}}
Locator.svg Chronia in Survival 3

Chronia

Location of Chronia on the Grand Map of Survival 3.
(Co-ordinates — X: 4600, Z: -11700)

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.

Template parameters

ParameterDescriptionTypeStatus
Location Namelocation_name

The name of the location

Stringrequired
X-Coordinatexcoord

The X value, positive or negative integer.

Numberrequired
Z-Coordinatezcoord

The Z value, positive or negative integer

Numberrequired
Scale modifierscale

Determines the size of the map. 1 = 1000px map.

Default
1
Auto value
1
Numberrequired
Collapse by defaultcollapsed

If the map should be collapsed by default, requiring the user to press "Expand" to view it.

Default
true
Auto value
true
Booleanrequired
Transporttransport

Display SRN and NTN routes overlay?

Default
false
Auto value
false
Booleanrequired
Background Dragon Slayer - Retriever by Ironboundred