Template
Interface template

Infobox Locatable

From Dogcraft Wiki

No edit summary
(added map scale parameter)
 
(4 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={{#ifeq:{{{world|}}}|Survival 3|sur3|{{{subworld|sheltie}}} }}|collapsed={{{collapsed|}}} }} }} }} }}
{{#invoke:Infobox|infoboxInvokeTemplate
{{#ifeq: {{NAMESPACE}} | {{ns:Template}} | {{#ifeq: {{#sub:{{ROOTPAGENAME}}|0|7}} | Infobox | [[Category:Infoboxes]] |}} |}}
|data30 = {{#switch: {{WorldSwitch/World|{{{world|}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
<noinclude>
  | Survival 1
  | Survival 2 =
  | #default = {{Collapsible Map|xCoord={{{xcoord|0}}}|zCoord={{{zcoord|0}}}
    | world = {{#switch: {{{world|}}}
              | Survival 3 = sur3
              | [[Survival 3]] = sur3
              | #default = {{#if: {{WorldSwitch/Subworld|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
                  | {{WorldSwitch/Subworld|{{{world}}}|{{{subworld|{{{sur4subworld|}}}}}}}}
                  | sheltie  
                  }}  
              }}
    | collapsed = {{{collapsed|}}}  
    | scale = {{{mapScale|}}}
    }}  
}}
}}{{#ifeq: {{NAMESPACE}} | {{ns:Template}} | {{#ifeq: {{#sub:{{ROOTPAGENAME}}|0|7}} | Infobox | [[Category:Infoboxes]] |}} |}}<noinclude>
Infobox template using [[Module:Infobox]] (imported from [[wikipedia:Module:Infobox|Wikipedia]]). {{Interface template}}
Infobox template using [[Module:Infobox]] (imported from [[wikipedia:Module:Infobox|Wikipedia]]). {{Interface template}}
<templatedata>
<templatedata>
Line 31: Line 46:
             "description": "If true, the map is collapsed by default, otherwise it is expanded by default",
             "description": "If true, the map is collapsed by default, otherwise it is expanded by default",
             "type": "boolean"
             "type": "boolean"
        },
        "mapScale": {
        "description": "The scale of the map (0 = 500x500, 1 = 1500x1500, 2 = 2500x2500, etc)",
"type": "number",
"default": "0"
         }
         }
},
},
Line 38: Line 58:
"xcoord",
"xcoord",
"zcoord",
"zcoord",
         "collapsed"
         "collapsed",
        "mapScale"
],
],
"description": " "
"description": " "

Latest revision as of 14:41, 16 February 2025

Infobox template using Module:Infobox (imported from Wikipedia).

Template parameters

ParameterDescriptionTypeStatus
worldworld

The world the build/place is on

Default
Survival 6
Example
Survival 6
Stringoptional
subworldsubworld

The subworld the build/place is on

Default
sheltie
Example
sheltie
Stringoptional
xcoordxcoord

The X coordinate of the build/place

Default
0
Numberoptional
zcoordzcoord

The Z coordinate of the build/place

Default
0
Numberoptional
collapsedcollapsed

If true, the map is collapsed by default, otherwise it is expanded by default

Booleanoptional
mapScalemapScale

The scale of the map (0 = 500x500, 1 = 1500x1500, 2 = 2500x2500, etc)

Default
0
Numberoptional