Template:Infobox tool: Difference between revisions

From Horizon's End Wiki
No edit summary
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 2: Line 2:
| above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}
| above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}


| image = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|alt={{{alt|}}}|upright=.6|]]<includeonly>|[[Category:Tools without image]]</includeonly>}}
| image = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|alt={{{alt1|}}}|upright=.6|]]<includeonly>|[[Category:Tools without image]]</includeonly>}}
| image2 = {{#if:{{{image2|}}}|  [[File:{{{image2}}}|frameless|alt={{{alt2|}}}|border|upright=.6|]]}}
| image3 = {{#if:{{{image3|}}}|  [[File:{{{image3}}}|frameless|alt={{{alt3}}}|border|upright=.6|]]}}
 
| caption = {{{caption|}}}
| caption = {{{caption|}}}


Line 11: Line 14:
| headerstyle  = background:#eaecee;
| headerstyle  = background:#eaecee;


| rows =
| header9 = Properties
{{#if: {{{powered|}}} | {{infobox row|label=[[Power Tools|Powered]]|field={{{powered}}} }} }}
 
| label11 = {{#if:{{{maxpower|}}}|  [[:Category:Power Tools|Max Power]] }}
| data11 = {{#if:{{{maxpower|}}}| {{{maxpower}}} }}
| label12 = {{#if:{{{maxmods|}}}|  [[Power_Tool_Modifier|Max Mods]] }}
| data12 = {{#if:{{{maxmods|}}}|  {{{maxmods}}} }}


}}<noinclude>{{documentation}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here -->
}}<noinclude>{{documentation}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here -->
Line 53: Line 61:
"description": "whether the tool is powered",
"description": "whether the tool is powered",
"type": "boolean"
"type": "boolean"
},
"moddable": {
"description": "whether the tool accepts modifications",
"type": "boolean"
},
"maxpower": {
"description": "Power capacity of this tool",
"type": "string"
},
"maxmods": {
"description": "Number of mods this tool may accept",
"type": "string"
}
}
},
}
"description": "This template should be used in Player pages, and the User:Player page should redirect to the main Player (should the user have an account and no out of game content in the User page)"
}
}
</templatedata>
</templatedata>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 07:04, 13 August 2025

Infobox tool
Properties

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
namename

the name of the tool

Example
Wrench
Auto value
Stringoptional
imageimage texture

a image of the tool, as it appears in game

Filesuggested
altalt

alternative text in case the image fails to load

Stringoptional
captioncaption

a caption of the image 1

Stringsuggested
image2image2

a second image to add

Auto value
Fileoptional
caption2caption2

the caption of the second image

Stringoptional
poweredpowered

whether the tool is powered

Booleanoptional
moddablemoddable

whether the tool accepts modifications

Booleanoptional
maxpowermaxpower

Power capacity of this tool

Stringoptional
maxmodsmaxmods

Number of mods this tool may accept

Stringoptional