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>
'''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|All}}}</p><includeonly>[[Category:Inventory]]</includeonly><noinclude>


==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 and they will use their default value.
*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.