Template:Inventory Item: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
: {{{mass|<Information Missing>}}}{{#if:{{{mass|}}}|&nbsp;kg|<includeonly>[[Category:Missing_information]]</includeonly>}}
: {{{mass|<Information Missing>}}}{{#if:{{{mass|}}}|&nbsp;kg|<includeonly>[[Category:Missing_information]]</includeonly>}}
;Stack Size
;Stack Size
: {{{stacksize|1}}} item(s)<includeonly>[[Category:Inventory]]</includeonly><noinclude>
: {{{stacksize|1}}} item(s)<includeonly>[[Category:Inventory_Items]]</includeonly><noinclude>


==Usage==
==Usage==
Line 10: Line 10:
*The code above can be pasted into your page and edited.
*The code above can be pasted into your page and edited.
*Any of the attributes can be left out entirely and they will use their default value. Items marked with a "?" do not have defaults and will display <Information Missing> if they are not filled in.
*Any of the attributes can be left out entirely and they will use their default value. Items marked with a "?" do not have defaults and will display <Information Missing> if they are not filled in.
*Templates adds [[:Category:Inventory]]. [[:Category:Missing_information]] is added conditionally.
*Templates adds [[:Category:Inventory_Items]]. [[:Category:Missing_information]] is added conditionally.
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 20:56, 29 July 2017

Inventory Item

Mass
<Information Missing>
Stack Size
1 item(s)

Usage

The Inventory Item template is meant to be used with any item that can be placed in an inventory.

{{Inventory_Item|mass=<kg?>|stacksize=<Number>}}
  • The code above can be pasted into your page and edited.
  • Any of the attributes can be left out entirely and they will use their default value. Items marked with a "?" do not have defaults and will display <Information Missing> if they are not filled in.
  • Templates adds Category:Inventory_Items. Category:Missing_information is added conditionally.