Template:Inventory: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
'''Number of Slots'''
'''Number of Slots'''
<p style="margin-left: 1.6em;">{{{slots|14}}}&nbsp;slot(s)</p>
<p style="margin-left: 1.6em;">{{{slots|14}}}&nbsp;slot(s)</p>
{{#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>
{{#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/Blocks]]</includeonly><noinclude>


==Usage==
==Usage==
Line 13: Line 13:
*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. Slots will default to 14.
*Any of the attributes can be left out entirely. Slots will default to 14.
*Templates adds Category:Inventory.
*Templates adds [[:Category:Inventory/Blocks]].
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 14:09, 16 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/Blocks.