Template:Slot/doc: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
No edit summary
(add link documentation)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Slot|Item=Stone |Count=16|Type = standard}}
Using this template, you can create a single item with a stack number inside of a crafting slot.


{{Slot|Item=gm4:Boots of Ostara}}
== Usage ==
=== Item ===
Using the first parameter, <code>{{{Item}}}</code>, you can set the image to the specified block or item.


These are examples of the Slot template. There are only 3 parameters: "Item", "Count", and "Type".
=== Count ===
''Optional.''  <code>{{{Count}}}</code>, is used to display a stack count for the item.  Defaults to 1.


Item - takes the name of an item and displays the item and name
=== Type ===
''Optional.''  <code>{{{Type}}}</code>, is used to change the background color.  Defaults to custom.


Count - displays the number in the bottom right corner (defaults to 1 if unset)
=== Name ===
''Optional.''  <code>{{{Name}}}</code>, is used to change the display name of the item.


Type - <custom or standard> custom is blue, standard is gray (defaults to custom if unset)
=== Lore ===
''Optional.''  <code>{{{Lore}}}</code>, is used to change the lore of the item.
 
=== Link ===
''Optional.''  <code>{{{link}}}</code>, is used to change the lore of the item.
 
{| class = "wikitable" style="text-align:center;"
! Standard
! Custom
|-
| {{Slot|Air|Type=standard}}
| {{Slot|Air|Type=custom}}
|}
 
== Example Usage ==
<pre>
  {{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]]}}
</pre>
 
{{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]]}}

Latest revision as of 01:28, 3 March 2021

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