Template
Interface template⮥
Infobox Locatable
From Dogcraft Wiki
(created) |
(fixed a problem with sur3 infoboxes) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#invoke:Infobox|infoboxInvokeTemplate|data30 = {{#ifeq:{{{world|}}}|Survival 1| |{{#ifeq:{{{world|}}}|Survival 2| |{{Collapsible Map|xCoord={{{xcoord|0}}}|zCoord={{{zcoord|0}}}|world={{# | {{#invoke:Infobox|infoboxInvokeTemplate|data30 = {{#ifeq:{{WorldSwitch/World|{{{world|}}}|{{{subworld|{{{sur4subworld|}}}}}}}}|Survival 1| |{{#ifeq:{{WorldSwitch/World|{{{world|}}}|{{{subworld|{{{sur4subworld|}}}}}}}}|Survival 2| |{{Collapsible Map|xCoord={{{xcoord|0}}}|zCoord={{{zcoord|0}}}|world={{#switch:{{{world|}}}|Survival 3=sur3|[[Survival 3]]=sur3|{{#if: {{WorldSwitch/Subworld|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}} | {{WorldSwitch/Subworld|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}} | sheltie }} }}|collapsed={{{collapsed|}}} }} }} }} }} | ||
{{#ifeq: {{NAMESPACE}} | {{ns:Template}} | {{#ifeq: {{#sub:{{ROOTPAGENAME}}|0|7}} | Infobox | [[Category:Infoboxes]] |}} |}} | {{#ifeq: {{NAMESPACE}} | {{ns:Template}} | {{#ifeq: {{#sub:{{ROOTPAGENAME}}|0|7}} | Infobox | [[Category:Infoboxes]] |}} |}} | ||
<noinclude> | <noinclude> | ||
Line 27: | Line 27: | ||
"type": "string", | "type": "string", | ||
"default": "sheltie" | "default": "sheltie" | ||
} | }, | ||
"collapsed": { | |||
"description": "If true, the map is collapsed by default, otherwise it is expanded by default", | |||
"type": "boolean" | |||
} | |||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
Line 33: | Line 37: | ||
"subworld", | "subworld", | ||
"xcoord", | "xcoord", | ||
"zcoord" | "zcoord", | ||
"collapsed" | |||
], | ], | ||
"description": " " | "description": " " |
Latest revision as of 21:40, 29 March 2024
Infobox template using Module:Infobox (imported from Wikipedia).
Parameter | Description | Type | Status | |
---|---|---|---|---|
world | world | The world the build/place is on
| String | optional |
subworld | subworld | The subworld the build/place is on
| String | optional |
xcoord | xcoord | The X coordinate of the build/place
| Number | optional |
zcoord | zcoord | The Z coordinate of the build/place
| Number | optional |
collapsed | collapsed | If true, the map is collapsed by default, otherwise it is expanded by default | Boolean | optional |