Template:Slot/doc: Difference between revisions

Jump to navigation Jump to search
Standardizing Documentation pages
(Include code)
(Standardizing Documentation pages)
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.
 
== Usage ==
=== Item ===
Using the first parameter, <code>{{{Item}}}</code>, you can set the image to the specified block or item.
 
=== Count ===
''Optional.''  The second parameter, <code>{{{Count}}}</code>, is used to display a stack count for the item.  Defaults to 1.


{{Slot|Item=gm4:Boots of Ostara}}
=== Type ===
''Optional.''  The third parameter, <code>{{{Type}}}</code>, is used to change the background color.  Defaults to custom.


<nowiki>
{| class = "wikitable" style="text-align:center;"
{{Slot
! Standard
|Item= {{{Item}}}  
! Custom
|Count= {{{Count}}}
|-
|Type = {{{Count}}}}}
| {{Slot|Air|Type=standard}}
</nowiki>
| {{Slot|Air|Type=custom}}
|}


These are examples of the Slot template. There are only 3 parameters: "Item", "Count", and "Type".
== Example Usage ==
<pre>
  {{Slot|Item=Stone|Count=16|type = standard}}


Item - takes the name of an item and displays the item and name
  {{Slot|Item=gm4:Boots of Ostara}}
</pre>


Count - displays the number in the bottom right corner (defaults to 1 if unset)
{{Slot|Item=Stone |Count=16|Type = standard}}


Type - <custom or standard> custom is blue, standard is gray (defaults to custom if unset)
{{Slot|Item=gm4:Boots of Ostara}}
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,633

edits

Navigation menu