Template:Infobox material: Difference between revisions
(Created page with "{{Stub}}") |
No edit summary |
||
| (16 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{infobox | ||
| above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}} | |||
| image = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|alt={{{alt1|}}}|upright=.6|]]<includeonly>|[[Category:Materials 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|}}} | |||
| image2 = {{#if:{{{image2|}}}|[[File:{{{image2}}}|frameless|alt={{{alt|}}}|upright=.6|]]}} | |||
| caption2 = {{{caption2|}}} | |||
| autoheaders = y | |||
| abovestyle = background:#eaecee;font-size:130%;padding:0.3em; | |||
| headerstyle = background:#eaecee; | |||
| data9 = {{ #if:{{{stackable|}}}| | |||
<div style= "border: 1px solid gray;"> | |||
<div style="float:left;padding-left:5%;padding-top:3%;"><b>Stackable</b></div> | |||
<div style="float:right;padding-right:5%;;padding-top:3%;">{{{stackable|}}}</div> | |||
</div> | |||
}} | |||
| data10 = {{#if:{{{blastresistance|}}}| | |||
<div style= "border: 1px solid gray;"> | |||
<div style="float:left;padding-left:5%;padding-top:3%;"><b>[[Blast Resistance]]</b></div> | |||
<div style="float:right;padding-right:5%;;padding-top:3%;">{{{blastresistance|}}}</div> | |||
</div> | |||
}} | |||
}} | |||
<includeonly>[[Category:Materials]]</includeonly> | |||
<noinclude>{{documentation}}<!-- Please add category and language links to the bottom of the /doc sub-page, not here --> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"name": { | |||
"description": "the name of the tool", | |||
"example": "Wrench", | |||
"type": "string", | |||
"autovalue": "" | |||
}, | |||
"image": { | |||
"aliases": [ | |||
"texture" | |||
], | |||
"description": "a image of the material, as it appears in game", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"alt": { | |||
"description": "alternative text in case the image fails to load", | |||
"type": "string" | |||
}, | |||
"caption": { | |||
"description": "a caption of the image 1", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"image2": { | |||
"description": "a second image to add", | |||
"type": "wiki-file-name", | |||
"autovalue": "" | |||
}, | |||
"caption2": { | |||
"description": "the caption of the second image", | |||
"type": "string" | |||
}, | |||
"image3": { | |||
"description": "a third image to add", | |||
"type": "wiki-file-name", | |||
"autovalue": "" | |||
}, | |||
"caption3": { | |||
"description": "the caption of the third image", | |||
"type": "string" | |||
}, | |||
"stackable": { | |||
"description": "whether the material is stackable", | |||
"type": "string" | |||
}, | |||
"blastresistance": { | |||
"description": "blast resistance of the material", | |||
"type": "string" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
[[Category:Templates]] | |||
</noinclude> | |||
Latest revision as of 18:36, 15 August 2025
| Infobox material |
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 material, 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 |
| image3 | image3 | a third image to add
| File | optional |
| caption3 | caption3 | the caption of the third image | String | optional |
| stackable | stackable | whether the material is stackable | String | optional |
| blastresistance | blastresistance | blast resistance of the material | String | optional |