Template:Item infobox: Difference between revisions
From Vintage Story Wiki
(Updated to new infobox format) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
|title={{{1|{{{ | |title={{{1|{{{name|}}}}}} | ||
|subtitle={{{subtitle|}}} | |subtitle={{{subtitle|}}} | ||
|image={{{2|{{{image|}}}}}} | |image={{{2|{{{image|}}}}}} | ||
|images={{{images|}}} | |||
|align={{{align|}}} | |align={{{align|}}} | ||
|rows={{#if: {{{ | |rows={{IRow|Details|header=1}}<!-- | ||
{{IRow | Burn duration | -->{{#if: {{{material|}}}|{{IRow | [[Material]] | [[{{{material}}}]] }} }}<!-- | ||
{{#if: {{{ | -->{{#if: {{{loretext|}}}|{{IRow | Lore text | ''{{{loretext}}}'' }} }}<!-- | ||
{{IRow | Food | -->{{#if: {{{burntemp|{{{burndur|}}}}}}|{{IRow | Burn temperature | {{{burntemp}}}°C}}<!-- | ||
{{IRow | | -->{{IRow | Burn duration |{{{burndur}}}s | 1}} }}<!-- | ||
{{#if: {{{placecrate|{{{placeground|{{{placeshelf|{{{placerack|{{{placebarrel|}}} }}} }}} }}} }}} | -->{{#if: {{{foodsat|{{{foodcategory|}}}}}}|{{IRow | [[Hunger|Saturation]] | {{{foodsat}}} }}<!-- | ||
-->{{IRow | Food category | [[{{{foodcategory}}}]] | 1}} }}<!-- | |||
-->{{#if: {{{effectiveon|}}}|{{IRow | Effective on | {{{effectiveon}}} }}|{{IRow | Stackable | {{#if: {{{stack|}}}|Yes ({{{stack}}})|No}} }} }}<!-- | |||
-->{{#if: {{{placecrate|{{{placeground|{{{placeshelf|{{{placerack|{{{placebarrel|}}} }}} }}} }}} }}} | |||
|{{IRow | |{{IRow | ||
|[[Placeable]] | |[[Placeable]] | ||
|{{#if: {{{placeshelf|}}}|[[Shelf| Shelf]]<br>}}<!-- | |{{#if: {{{placeshelf|}}}|[[Shelf| Shelf]]<br>}}<!-- | ||
-->{{#if: {{{placetool|}}}|[[Tool rack]]<br>}}<!-- | |||
-->{{#if: {{{placecrate|}}}|[[Crate]]<br>}}<!-- | -->{{#if: {{{placecrate|}}}|[[Crate]]<br>}}<!-- | ||
-->{{#if: {{{placebarrel|}}}|[[Barrel]]<br>}}<!-- | -->{{#if: {{{placebarrel|}}}|[[Barrel]]<br>}}<!-- | ||
-->{{#if: {{{placerack|}}}|[[Mold rack]]<br>}}<!-- | -->{{#if: {{{placerack|}}}|[[Mold rack]]<br>}}<!-- | ||
-->{{#if: {{{placeground|}}}|[[Placeable#Ground|Ground]]}} | -->{{#if: {{{placeground|}}}|[[Placeable#Ground|Ground]]}} | 1 }} }} | ||
|1}} }} }}</includeonly> | {{IRow|Technical|header=1}} | ||
{{IRow|field='''Internal [[Data IDs|ID]]:''' {{{id}}}|full=1}} | |||
}}</includeonly> | |||
<noinclude>{{doc}}</noinclude> | <noinclude>{{doc}}</noinclude> |
Revision as of 19:31, 20 August 2022
[view | edit | history | purge this page]Documentation
An infobox that presents information relating to a certain item. For tools/weapons, use {{Tool infobox}}
.
Usage
Parameter | Description | Type | Required |
---|---|---|---|
title | The name of the item | String | yes |
subtitle | A smaller subtitle shown below the title box | String | no |
image | The image of the item | File | yes |
align | Override to align this infobox differently | CSS | no |
burnTemp | The temperature at which this item burns | String | no |
burnDur | How long this item burns for | String | no |
foodSat | The saturation this item provides when eaten | String | no |
foodType | The type of saturation this item restores | String | no |
stack | How many of this item can fit in a single slot (do not use if not stackable) | String | no |
placecrate | Can this item be placed in a crate? | Boolean | no |
placebarrel | Can this item be placed in a barrel? | Boolean | no |
placerack | Can this item be placed in a mold rack? | Boolean | no |
placeshelf | Can this item be placed on a shelf? | Boolean | no |
placeground | Can this item be placed on the ground? | Boolean | no |
Example
Code | Result |
---|---|
{{Item infobox |Charcoal |charcoal |burnTemp = 1300 |burnDur = 40 |stack = 64 |placeshelf = true |placeground = true |placecrate = true }} |
|
[view | edit | history | purge this page]The above documentation is transcluded from Template:Item infobox/doc.