Template:Slot: Difference between revisions
m (Reverted edits by BluePsychoRanger (talk) to last revision by Epyon) Tag: Rollback |
m (Hide Template Data by default) |
||
(5 intermediate revisions by 2 users not shown) | |||
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 8: | ||
}}"><!-- | }}"><!-- | ||
--><div class=crafting-recipe> | --><div class=crafting-recipe> | ||
{{CraftingCell| {{Stack|{{{1|{{{Item|}}}}}}|count = {{{ | {{CraftingCell| {{Stack|{{{1|{{{item|{{{Item|Air}}}}}}}}}|count = {{{count|{{{Count|1}}}}}}|name={{{name|{{{Name|}}}}}}|lore={{{lore|{{{Lore|}}}}}}|link={{{link|}}}}}}} | ||
</div><!-- | </div><!-- | ||
--></div></includeonly><noinclude> | --></div></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | {{Hidden begin | ||
| toggle = left | |||
| title = Template Data}} | |||
<templatedata> | |||
{ | |||
"params": { | |||
"Type": { | |||
"label": "Type", | |||
"description": "The type of cell for the item. \"Custom\" for GM4 blue background boxes", | |||
"example": "Custom", | |||
"type": "line" | |||
}, | |||
"item": { | |||
"aliases": [ | |||
"1" | |||
], | |||
"label": "Item", | |||
"description": "The item to be displayed. Prefix with {{code|gm4:}} for GM4-specific items.", | |||
"example": "gm4:Boots of Ostara", | |||
"type": "line", | |||
"required": true | |||
}, | |||
"count": { | |||
"label": "Count", | |||
"description": "The amount of this item", | |||
"example": "8", | |||
"type": "number" | |||
}, | |||
"name": { | |||
"label": "Name", | |||
"description": "If the item is uniquely named", | |||
"example": "Lucky Charms", | |||
"type": "line" | |||
}, | |||
"lore": { | |||
"label": "Lore", | |||
"description": "If the item has unique lore. Formatting codes should be prefixed with & and new lines are inputted using /", | |||
"example": "&o&7They're magically delicious!", | |||
"type": "line" | |||
}, | |||
"link": { | |||
"label": "Link", | |||
"description": "When the item is clicked, it will redirect the user. Internal links only need the title of the page. External links require the full link.", | |||
"example": "End Fishing/Enderpuff", | |||
"type": "line" | |||
} | |||
}, | |||
"description": "Single item display", | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
{{Hidden end}}</noinclude> |
Latest revision as of 19:00, 5 June 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 |
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. |
Single item display
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | Type | The type of cell for the item. "Custom" for GM4 blue background boxes
| Line | optional |
Item | item 1 | The item to be displayed. Prefix with {{code|gm4:}} for GM4-specific items.
| Line | required |
Count | count | The amount of this item
| Number | optional |
Name | name | If the item is uniquely named
| Line | optional |
Lore | lore | If the item has unique lore. Formatting codes should be prefixed with & and new lines are inputted using /
| Line | optional |
Link | link | When the item is clicked, it will redirect the user. Internal links only need the title of the page. External links require the full link.
| Line | optional |