Template:Inventory: Difference between revisions
Jump to navigation
Jump to search
CptTwinkie (talk | contribs) mNo edit summary |
CptTwinkie (talk | contribs) mNo edit summary |
||
Line 2: | Line 2: | ||
'''Number of Slots''' | '''Number of Slots''' | ||
<p style="margin-left: 1.6em;">{{{slots|14}}} slot(s)</p> | <p style="margin-left: 1.6em;">{{{slots|14}}} slot(s)</p> | ||
'''Whitelisted Items''' | {{#if:{{{whitelist|}}}|'''Whitelisted Items'''<br/><p style="margin-left: 1.6em;">{{{whitelist}}}</p>|}}{{#if:{{{blacklist|}}}|'''Blacklisted Items'''<br/><p style="margin-left: 1.6em;">{{{blacklist}}}</p>|}}<includeonly>[[Category:Inventory]]</includeonly><noinclude> | ||
<p style="margin-left: 1.6em;">{{{whitelist| | |||
==Usage== | ==Usage== | ||
Line 10: | Line 9: | ||
|slots=<Number of slots> | |slots=<Number of slots> | ||
|whitelist=<Links to items> | |whitelist=<Links to items> | ||
|blacklist=<Links to items> | |||
}}</pre> | }}</pre> | ||
*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 | *Any of the attributes can be left out entirely. Slots will default to 14. | ||
*Templates adds Category:Inventory. | *Templates adds Category:Inventory. | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 15:46, 6 September 2017
Inventory
Number of Slots
14 slot(s)
Usage
The Inventory template is meant to be used on any block that has an inventory where items can be placed. This includes chests, barrels, crafting blocks, and the player characters.
{{Inventory |slots=<Number of slots> |whitelist=<Links to items> |blacklist=<Links to items> }}
- The code above can be pasted into your page and edited.
- Any of the attributes can be left out entirely. Slots will default to 14.
- Templates adds Category:Inventory.