Template:Inventory Item: Difference between revisions
Jump to navigation
Jump to search
CptTwinkie (talk | contribs) (Added usage, category, and information missing defaults) |
CptTwinkie (talk | contribs) mNo edit summary |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<h2>Inventory Item</h2> | <h2>[[:Category:Inventory/Items|Inventory Item]]</h2> | ||
;Mass | ;Mass | ||
: {{{mass|<Information Missing>}}} | <p style="margin-left: 1.6em;">{{{mass|<Information Missing>}}}{{#if:{{{mass|}}}| kg|<includeonly>[[Category:Missing_information]]</includeonly>}}</p> | ||
;Stack Size | ;Stack Size | ||
: {{{stacksize|1}}}< | <p style="margin-left: 1.6em;">{{{stacksize|1}}} item(s)</p> | ||
{{#if:{{{hitpoints|}}}|<!--TRUE-->'''Hit Points'''<p style="margin-left: 1.6em;">{{{hitpoints|}}} points</p>|<!--FALSE-->}}<!-- | |||
--><includeonly>[[Category:Inventory/Items]]</includeonly><noinclude> | |||
==Usage== | ==Usage== | ||
<pre> | The Inventory Item template is meant to be used with any item that can be placed in an inventory. | ||
{{Inventory_Item|mass=< | <pre>{{Inventory_Item | ||
</pre> | |mass=<kg?> | ||
|stacksize=<Number> | |||
*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. | |hitpoints=<Number> | ||
}}</pre> | |||
*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 or not display. 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. | |||
{{:Template Ordering}} | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 12:34, 12 September 2018
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> |hitpoints=<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 or not display. 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.
ORDERED TEMPLATE: This template is typically used on pages with other templates. It should be added in the order specified in Template Ordering.