Template:Inventory: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<h2>Inventory</h2>
<h2>{{{name|[[:Category:Inventory/Blocks|Inventory]]}}}{{#if:{{{name|}}}|<!--TRUE-->&nbsp;[[:Category:Inventory/Blocks|Inventory]]}}</h2>
'''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|21}}}&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>|}}{{#ifeq:{{{nocat|}}}|true|<!--TRUE-->|<!--FALSE--><includeonly>[[Category:Inventory/Blocks]]</includeonly>}}<noinclude>


==Usage==
==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.
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.
<pre>{{Inventory
<pre>{{Inventory
|name=<Name of inventory>
|slots=<Number of slots>
|slots=<Number of slots>
|whitelist=<Links to items>
|whitelist=<Links to items>
Line 12: Line 13:
}}</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. Slots will default to 14.
*Any of the attributes can be left out entirely. Slots will default to 21.
*Templates adds Category:Inventory.
*Templates adds [[:Category:Inventory/Blocks]].
{{:Template Ordering}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 12:51, 16 October 2018

Inventory

Number of Slots

21 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
|name=<Name of 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 21.
  • Templates adds Category:Inventory/Blocks.

ORDERED TEMPLATE: This template is typically used on pages with other templates. It should be added in the order specified in Template Ordering.