Template
Survival3MultiLocation
From Dogcraft Wiki
imported>William No edit summary |
mNo edit summary |
||
(6 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: 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- | ||
Line 20: | Line 20: | ||
| 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: {{{z2coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z2coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | | 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> }} | ||
Line 27: | Line 27: | ||
| 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: {{{z3coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z3coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | | 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> }} | ||
Line 34: | Line 34: | ||
| 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: {{{z4coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z4coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | | 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> }} | ||
Line 41: | Line 41: | ||
| 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: {{{z5coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z5coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | | 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> }} | ||
Line 48: | Line 48: | ||
| 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: {{{z6coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z6coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | | 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> }} | ||
Line 55: | Line 55: | ||
| 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: {{{z7coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z7coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | | 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> }} | ||
Line 62: | Line 62: | ||
| 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: {{{z8coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z8coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | | 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> }} | ||
Line 69: | Line 69: | ||
| 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: {{{z9coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z9coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | | 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> }} | ||
Line 76: | Line 76: | ||
| 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: {{{z10coord|}}} | {{#expr: {{#expr: {{#expr: {{{scale}}} * {{#expr:{{#expr: 20000 + {{{z10coord}}}}} / 40}}}} round 0}} - {{#expr: {{{scale}}} * 52}}}} }} | | 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 |