Template:Slot/doc: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
(Standardizing Documentation pages)
m (Add examples about name and lore)
Line 10: Line 10:
=== Type ===
=== Type ===
''Optional.''  The third parameter, <code>{{{Type}}}</code>, is used to change the background color.  Defaults to custom.
''Optional.''  The third parameter, <code>{{{Type}}}</code>, is used to change the background color.  Defaults to custom.
=== Name ===
''Optional.''  <code>{{{Name}}}</code>, is used to change the display name of the item.
=== Lore ===
''Optional.''  <code>{{{Lore}}}</code>, is used to change the lore of the item.


{| class = "wikitable" style="text-align:center;"
{| class = "wikitable" style="text-align:center;"
Line 23: Line 29:
   {{Slot|Item=Stone|Count=16|type = standard}}
   {{Slot|Item=Stone|Count=16|type = standard}}


   {{Slot|Item=gm4:Boots of Ostara}}
   {{Slot|gm4:Boots of Ostara}}
 
  {{Slot|Cobblestone|lore=&e&oTotally not cobble|name=Crushed Stone}}
</pre>
</pre>


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


{{Slot|Item=gm4:Boots of Ostara}}
{{Slot|gm4:Boots of Ostara}}
 
{{Slot|Cobblestone|lore=&e&oTotally not cobble|name=Crushed Stone}}

Revision as of 23:21, 16 August 2020

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. The second parameter, {{{Count}}}, is used to display a stack count for the item. Defaults to 1.

Type

Optional. The third parameter, {{{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.

Standard Custom

Example Usage

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

  {{Slot|gm4:Boots of Ostara}}

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


16