Template
Survival3MultiLocation
From Dogcraft Wiki
imported>William No edit summary |
mNo edit summary |
||
(12 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class="toccolours mw-collapsible {{#ifeq: {{{collapsed}}}|true|mw-collapsed|}}" style="width: {{#expr: 1000 * {{{scale}}}}}px; max-width: {{#expr: 1000 * {{{scale}}}}}px; text-align: center> | <div class="toccolours mw-collapsible {{#ifeq: {{{collapsed}}}|true|mw-collapsed|}}" style="width: {{#expr: 1000 * {{{scale}}}}}px; max-width: {{#expr: 1000 * {{{scale}}}}}px; text-align: center> | ||
<p style="padding:0.1em 0.4em; margin:10px 0 10px 0; background: #970000; color:white; font-size:140%; text-align:center;">[[File:Locator.svg|20px]] ''' | <p style="padding:0.1em 0.4em; margin:10px 0 10px 0; background: #970000; color:white; font-size:140%; text-align:center;">[[File:Locator.svg|20px]] '''Locations on Survival 3'''</p><div class="mw-collapsible-content">{{Superimpose | ||
| base = 2020-01-10-Grand-Map-complete-hiRez-cropped.png | | base = 2020-01-10-Grand-Map-complete-hiRez-cropped.png | ||
| base_width = {{#expr: 1000 * {{{scale}}}}}px | | base_width = {{#expr: 1000 * {{{scale}}}}}px | ||
Line 12: | Line 12: | ||
| float2 = Locator.svg | | float2 = Locator.svg | ||
| float2_width = 25px | | float2_width = 25px | ||
| x2 = {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{xcoord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} | | 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}}}} | | 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- | | 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> | align:center;">'''{{{location_name}}}'''</p> | ||
| float3 = {{#if: {{{ | | float3 = {{#if: {{{x2coord|}}} | LocatorBlue.svg }} | ||
| float3_width = {{#if: {{{ | | float3_width = {{#if: {{{x2coord|}}} | 25px }} | ||
| x3 = {{#if: {{{x2coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x2coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | | x3 = {{#if: {{{x2coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x2coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | ||
| y3 = {{#if: {{{ | | y3 = {{#if: {{{z2coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z2coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | ||
| t3 = {{#if: {{{location2_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:# | | t3 = {{#if: {{{location2_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:#367fa9; display: inline-block; color:white; font-size:80%; text- | ||
align:center;">'''{{{location2_name}}}'''</p> }} | align:center;">'''{{{location2_name}}}'''</p> }} | ||
| float4 = {{#if: {{{ | | float4 = {{#if: {{{x3coord|}}} | LocatorGrey.svg }} | ||
| float4_width = {{#if: {{{ | | float4_width = {{#if: {{{x3coord|}}} | 25px }} | ||
| x4 = {{#if: {{{x3coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x3coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | | x4 = {{#if: {{{x3coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x3coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | ||
| y4 = {{#if: {{{ | | y4 = {{#if: {{{z3coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z3coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | ||
| t4 = {{#if: {{{location3_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:# | | t4 = {{#if: {{{location3_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:#4d4d4d; display: inline-block; color:white; font-size:80%; text- | ||
align:center;">'''{{{location3_name}}}'''</p> }} | align:center;">'''{{{location3_name}}}'''</p> }} | ||
| float5 = {{#if: {{{ | | float5 = {{#if: {{{x4coord|}}} | LocatorWhite.svg }} | ||
| float5_width = {{#if: {{{ | | float5_width = {{#if: {{{x4coord|}}} | 25px }} | ||
| x5 = {{#if: {{{x4coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x4coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | | x5 = {{#if: {{{x4coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x4coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | ||
| y5 = {{#if: {{{ | | y5 = {{#if: {{{z4coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z4coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | ||
| t5 = {{#if: {{{location4_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:# | | t5 = {{#if: {{{location4_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:#fff; display: inline-block; color:black; font-size:80%; text- | ||
align:center;">'''{{{location4_name}}}'''</p> }} | align:center;">'''{{{location4_name}}}'''</p> }} | ||
| float6 = {{#if: {{{ | | float6 = {{#if: {{{x5coord|}}} | LocatorGreen.svg }} | ||
| float6_width = {{#if: {{{ | | float6_width = {{#if: {{{x5coord|}}} | 25px }} | ||
| x6 = {{#if: {{{x5coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x5coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | | x6 = {{#if: {{{x5coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x5coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | ||
| y6 = {{#if: {{{ | | y6 = {{#if: {{{z5coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z5coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | ||
| t6 = {{#if: {{{location5_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:# | | t6 = {{#if: {{{location5_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:#008000; display: inline-block; color:white; font-size:80%; text- | ||
align:center;">'''{{{location5_name}}}'''</p> }} | align:center;">'''{{{location5_name}}}'''</p> }} | ||
| float7 = {{#if: {{{ | | float7 = {{#if: {{{x6coord|}}} | LocatorYellow.svg }} | ||
| float7_width = {{#if: {{{ | | float7_width = {{#if: {{{x6coord|}}} | 25px }} | ||
| x7 = {{#if: {{{x6coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x6coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | | x7 = {{#if: {{{x6coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x6coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | ||
| y7 = {{#if: {{{ | | y7 = {{#if: {{{z6coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z6coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | ||
| t7 = {{#if: {{{location6_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:# | | t7 = {{#if: {{{location6_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:#ffcc00; display: inline-block; color:white; font-size:80%; text- | ||
align:center;">'''{{{location6_name}}}'''</p> }} | align:center;">'''{{{location6_name}}}'''</p> }} | ||
| float8 = {{#if: {{{ | | float8 = {{#if: {{{x7coord|}}} | LocatorPurple.svg }} | ||
| float8_width = {{#if: {{{ | | float8_width = {{#if: {{{x7coord|}}} | 25px }} | ||
| x8 = {{#if: {{{x7coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x7coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | | x8 = {{#if: {{{x7coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x7coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | ||
| y8 = {{#if: {{{ | | y8 = {{#if: {{{z7coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z7coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | ||
| t8 = {{#if: {{{location7_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:# | | t8 = {{#if: {{{location7_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:#660080; display: inline-block; color:white; font-size:80%; text- | ||
align:center;">'''{{{location7_name}}}'''</p> }} | align:center;">'''{{{location7_name}}}'''</p> }} | ||
| float9 = {{#if: {{{ | | float9 = {{#if: {{{x8coord|}}} | LocatorPink.svg }} | ||
| float9_width = {{#if: {{{ | | float9_width = {{#if: {{{x8coord|}}} | 25px }} | ||
| x9 = {{#if: {{{x8coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x8coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | | x9 = {{#if: {{{x8coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x8coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | ||
| y9 = {{#if: {{{ | | y9 = {{#if: {{{z8coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z8coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | ||
| t9 = {{#if: {{{location8_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:# | | t9 = {{#if: {{{location8_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:#ff8080; display: inline-block; color:white; font-size:80%; text- | ||
align:center;">'''{{{location8_name}}}'''</p> }} | align:center;">'''{{{location8_name}}}'''</p> }} | ||
| float10 = {{#if: {{{ | | float10 = {{#if: {{{x9coord|}}} | LocatorNavy.svg }} | ||
| float10_width = {{#if: {{{ | | float10_width = {{#if: {{{x9coord|}}} | 25px }} | ||
| x10 = {{#if: {{{x9coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x9coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | | x10 = {{#if: {{{x9coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x9coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | ||
| y10 = {{#if: {{{ | | y10 = {{#if: {{{z9coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z9coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | ||
| t10 = {{#if: {{{location9_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:# | | t10 = {{#if: {{{location9_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:#000080; display: inline-block; color:white; font-size:80%; text- | ||
align:center;">'''{{{location9_name}}}'''</p> }} | align:center;">'''{{{location9_name}}}'''</p> }} | ||
| float11 = {{#if: {{{ | | float11 = {{#if: {{{x10coord|}}} | LocatorOrange.svg }} | ||
| float11_width = {{#if: {{{ | | float11_width = {{#if: {{{x10coord|}}} | 25px }} | ||
| x11 = {{#if: {{{x10coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x10coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | | x11 = {{#if: {{{x10coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{x10coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 44}}}} }} | ||
| y11 = {{#if: {{{ | | y11 = {{#if: {{{z10coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z10coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | ||
| t11 = {{#if: {{{location10_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:# | | t11 = {{#if: {{{location10_name|}}} | <p style="padding:0em 0.1em; margin:5px 0 5px 0; background:#ff6600; display: inline-block; color:white; font-size:80%; text- | ||
align:center;">'''{{{location10_name}}}'''</p> }} | align:center;">'''{{{location10_name}}}'''</p> }} | ||
}} | }} | ||
Line 83: | Line 83: | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude>[[Category:Location map templates]] | ||
<pre> | <pre> | ||
{{Survival3MultiLocation | {{Survival3MultiLocation | ||
Line 102: | Line 102: | ||
|z5coord = -5215 | |z5coord = -5215 | ||
<!-------[Up to 10]--------!> | <!-------[Up to 10]--------!> | ||
|scale = 0. | |scale = 0.5 | ||
|collapsed = true | |collapsed = true | ||
|transport = | |transport = false | ||
}} | }} | ||
</pre> | </pre> | ||
Line 124: | Line 124: | ||
|x5coord = -7400 | |x5coord = -7400 | ||
|z5coord = -5215 | |z5coord = -5215 | ||
|scale = 0. | |scale = 0.5 | ||
|collapsed = true | |collapsed = true | ||
|transport = true | |transport = false | ||
}} | }}<templatedata> | ||
{ | |||
"params": { | |||
"collapsed": { | |||
"required": true | |||
}, | |||
"scale": { | |||
"label": "Scale", | |||
"default": "0.5", | |||
"required": true | |||
}, | |||
"location_name": { | |||
"label": "1st location name", | |||
"required": true | |||
}, | |||
"transport": { | |||
"type": "boolean", | |||
"default": "false", | |||
"autovalue": "false", | |||
"required": true | |||
}, | |||
"xcoord": { | |||
"autovalue": "", | |||
"required": true | |||
}, | |||
"zcoord": { | |||
"required": true | |||
}, | |||
"x2coord": {}, | |||
"z2coord": {}, | |||
"x3coord": {}, | |||
"z3coord": {}, | |||
"location3_name": {}, | |||
"x4coord": {}, | |||
"z4coord": {}, | |||
"location4_name": {}, | |||
"x5coord": {}, | |||
"z5coord": {}, | |||
"location5_name": {}, | |||
"x6coord": {}, | |||
"z6coord": {}, | |||
"location6_name": {}, | |||
"x7coord": {}, | |||
"z7coord": {}, | |||
"location7_name": {}, | |||
"x8coord": {}, | |||
"z8coord": {}, | |||
"location8_name": {}, | |||
"x9coord": {}, | |||
"z9coord": {}, | |||
"location9_name": {}, | |||
"x10coord": {}, | |||
"z10coord": {}, | |||
"location10_name": {}, | |||
"2nd location name": {} | |||
}, | |||
"paramOrder": [ | |||
"collapsed", | |||
"scale", | |||
"location_name", | |||
"transport", | |||
"xcoord", | |||
"zcoord", | |||
"x2coord", | |||
"z2coord", | |||
"2nd location name", | |||
"x3coord", | |||
"z3coord", | |||
"location3_name", | |||
"x4coord", | |||
"z4coord", | |||
"location4_name", | |||
"x5coord", | |||
"z5coord", | |||
"location5_name", | |||
"x6coord", | |||
"z6coord", | |||
"location6_name", | |||
"x7coord", | |||
"z7coord", | |||
"location7_name", | |||
"x8coord", | |||
"z8coord", | |||
"location8_name", | |||
"x9coord", | |||
"z9coord", | |||
"location9_name", | |||
"x10coord", | |||
"z10coord", | |||
"location10_name" | |||
], | |||
"description": "Accepts up to 10 series of coordinates of places on Survival 3 (x, z) and a name for each set and displays markers of their location on a collapsible map (based on the Grand Map)." | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> |
Latest revision as of 13:32, 4 December 2023
{{Survival3MultiLocation |location_name = Chronia |xcoord = 4600 |zcoord = -11700 |location2_name = Ouranos |x2coord = 5413 |z2coord = 2089 |location3_name = Barkenstein |x3coord = -5600 |z3coord = -2400 |location4_name = Spawn |x4coord = 0 |z4coord = 0 |location5_name = Calafort |x5coord = -7400 |z5coord = -5215 <!-------[Up to 10]--------!> |scale = 0.5 |collapsed = true |transport = false }}
Accepts up to 10 series of coordinates of places on Survival 3 (x, z) and a name for each set and displays markers of their location on a collapsible map (based on the Grand Map).
Parameter | Description | Type | Status | |
---|---|---|---|---|
collapsed | collapsed | no description | Unknown | required |
Scale | scale | no description
| Unknown | required |
1st location name | location_name | no description | Unknown | required |
transport | transport | no description
| Boolean | required |
xcoord | xcoord | no description
| Unknown | required |
zcoord | zcoord | no description | Unknown | required |
x2coord | x2coord | no description | Unknown | optional |
z2coord | z2coord | no description | Unknown | optional |
2nd location name | 2nd location name | no description | Unknown | optional |
x3coord | x3coord | no description | Unknown | optional |
z3coord | z3coord | no description | Unknown | optional |
location3_name | location3_name | no description | Unknown | optional |
x4coord | x4coord | no description | Unknown | optional |
z4coord | z4coord | no description | Unknown | optional |
location4_name | location4_name | no description | Unknown | optional |
x5coord | x5coord | no description | Unknown | optional |
z5coord | z5coord | no description | Unknown | optional |
location5_name | location5_name | no description | Unknown | optional |
x6coord | x6coord | no description | Unknown | optional |
z6coord | z6coord | no description | Unknown | optional |
location6_name | location6_name | no description | Unknown | optional |
x7coord | x7coord | no description | Unknown | optional |
z7coord | z7coord | no description | Unknown | optional |
location7_name | location7_name | no description | Unknown | optional |
x8coord | x8coord | no description | Unknown | optional |
z8coord | z8coord | no description | Unknown | optional |
location8_name | location8_name | no description | Unknown | optional |
x9coord | x9coord | no description | Unknown | optional |
z9coord | z9coord | no description | Unknown | optional |
location9_name | location9_name | no description | Unknown | optional |
x10coord | x10coord | no description | Unknown | optional |
z10coord | z10coord | no description | Unknown | optional |
location10_name | location10_name | no description | Unknown | optional |