Template:Infobox tool: Difference between revisions
(Created page with "{{infobox | above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}} | image = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|alt={{{alt|}}}|upright=.6|]]<includeonly>|Category:Tools without image</includeonly>}} | caption = {{{caption|}}} | image2 = {{#if:{{{image2|}}}|[[File:{{{image2}}}|frameless|alt={{{alt|}}}|upright=.6|]]}} | caption2 = {{{caption2|}}} | autoheaders = y | abovestyle = background:#eaecee;font-size:130%;padding:0.3em; | headerstyle = backgroun...") |
No edit summary |
||
| (25 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={{{ | | 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; | ||
| | | header9 = Properties | ||
| 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 59: | 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" | |||
} | } | ||
} | } | ||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 07:04, 13 August 2025
| Infobox tool | |
| Properties |
|---|
File:Test Template Info-Icon - Version (2).svg Template documentation[create] [purge]
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| name | name | the name of the tool
| String | optional |
| image | image texture | a image of the tool, as it appears in game | File | suggested |
| alt | alt | alternative text in case the image fails to load | String | optional |
| caption | caption | a caption of the image 1 | String | suggested |
| image2 | image2 | a second image to add
| File | optional |
| caption2 | caption2 | the caption of the second image | String | optional |
| powered | powered | whether the tool is powered | Boolean | optional |
| moddable | moddable | whether the tool accepts modifications | Boolean | optional |
| maxpower | maxpower | Power capacity of this tool | String | optional |
| maxmods | maxmods | Number of mods this tool may accept | String | optional |