Difference between revisions of "Template:Slot"

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
m
(allow both lowercase and uppercase versions of parameters)
Line 1: Line 1:
<includeonly><div class="slot crafting-{{#switch: {{{Type}}}
<includeonly><div class="slot crafting-{{#switch: {{{Type|type}}}
| custom = custom
| custom = custom
| Custom = custom
| Custom = custom
Line 7: Line 7:
}}"><!--
}}"><!--
--><div class=crafting-recipe>
--><div class=crafting-recipe>
{{CraftingCell| {{Stack|{{{1|{{{Item|}}}}}}|count = {{{Count|1}}}|name={{{name|}}}|lore={{{lore|}}}}}}}
{{CraftingCell| {{Stack|{{{1|{{{item|{{{Item|Air}}}}}}}}}|count = {{{count|{{{Count|1}}}}}}|name={{{name|{{{Name|}}}}}}|lore={{{lore|{{{Lore|}}}}}}}}}}
</div><!--
</div><!--
--></div></includeonly><noinclude>
--></div></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 23:26, 16 August 2020

Template documentation[view] [edit] [history] [purge]

Using this template, you can create a single item with a stack number inside of a crafting slot.

Usage

Item

Using the first parameter, {{{Item}}}, you can set the image to the specified block or item.

Count

Optional. {{{Count}}}, is used to display a stack count for the item. Defaults to 1.

Type

Optional. {{{Type}}}, is used to change the background color. Defaults to custom.

Name

Optional. {{{Name}}}, is used to change the display name of the item.

Lore

Optional. {{{Lore}}}, is used to change the lore of the item.

Link

Optional. {{{link}}}, is used to change the lore of the item.

Standard Custom

Example Usage

  {{Slot|Item=Stone|Count=16|type = standard}}

  {{Slot|gm4:Boots of Ostara|Type = Standard}}

  {{Slot|Cobblestone|lore=&e&oTotally not cobble|name=Crushed Stone}}

  {{Slot|Cobblestone|lore=&6&oClick to go to the Sandbox page|link=[[Sandbox]]}}
16