Template:Slot: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Undo revision 4828 by BluePsychoRanger (talk)) Tag: Undo |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{# | <div class="slot slot-{{#switch: {{{Type}}} | ||
| custom = custom | |||
| Custom = custom | |||
| standard = standard | |||
| Standard = standard | |||
| custom | |||
}}"> | |||
<div class=slot-item> | |||
{{CraftingCell | |||
|{{Stack |{{{Item|}}} |count= {{{Count|1}}} }} | |||
}} | |||
</div> | |||
</div> | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 07:24, 3 May 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. {{{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 |
Lua error in Module:Crafting at line 82: attempt to index local 'sprite' (a nil value). |
Lua error in Module:Crafting at line 82: attempt to index local 'sprite' (a nil value). |
Lua error in Module:Crafting at line 82: attempt to index local 'sprite' (a nil value). |
The above documentation is transcluded from Template:Slot/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |