Template:Item infobox: Difference between revisions
From Vintage Story Wiki
mNo edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
|group3=[[Stackable]] | |group3=[[Stackable]] | ||
|body3={{#if: {{{stack|}}}|Yes ({{{stack}}})|No}} | |body3={{#if: {{{stack|}}}|Yes ({{{stack}}})|No}} | ||
|group4={{#if: {{{placeCrate|{{{placeGround|{{{placeShelf|{{{placeRack|}}} }}} }}} }}}|[[Placeable]]}} | |group4={{#if: {{{placeCrate|{{{placeGround|{{{placeShelf|{{{placeRack|{{{placeBarrel|}}} }}} }}} }}} }}}|[[Placeable]]}} | ||
|body4=<ol style="list-style-type:none; padding:0; margin:0;"><!-- | |body4=<ol style="list-style-type:none; padding:0; margin:0;"><!-- | ||
-->{{#if: {{{placeShelf|}}}|<li>[[Shelf| Shelf]]</li>}}<!-- | -->{{#if: {{{placeShelf|}}}|<li>[[Shelf| Shelf]]</li>}}<!-- | ||
-->{{#if: {{{placeCrate|}}}|<li>[[Crate]]</li>}}<!-- | -->{{#if: {{{placeCrate|}}}|<li>[[Crate]]</li>}}<!-- | ||
-->{{#if: {{{placeBarrel|}}}|<li>[[Barrel]]</li>}}<!-- | |||
-->{{#if: {{{placeRack|}}}|<li>[[Mold rack]]</li>}}<!-- | -->{{#if: {{{placeRack|}}}|<li>[[Mold rack]]</li>}}<!-- | ||
-->{{#if: {{{placeGround|}}}|<li>[[Placeable#Ground|Ground]]</li>}}</ol> | -->{{#if: {{{placeGround|}}}|<li>[[Placeable#Ground|Ground]]</li>}}</ol> |
Revision as of 17:41, 13 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 }} |
Lua error in Module:Infobox at line 49: invalid value (nil) at index 6 in table for 'concat'.
|
[view | edit | history | purge this page]The above documentation is transcluded from Template:Item infobox/doc.