Template:Stack: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Added size parameter) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
"1": { | "1": { | ||
"label": "Item", | "label": "Item", | ||
"description": "The item to | "description": "The item to be displayed. Prefix with {{code|gm4:}} for GM4-specific items.", | ||
"example": " | "example": "gm4:Boots of Ostara", | ||
"type": "line", | "type": "line", | ||
"required": true | "required": true | ||
Line 26: | Line 26: | ||
], | ], | ||
"label": "Count", | "label": "Count", | ||
"description": " | "description": "The amount of this item", | ||
"example": "20", | "example": "20", | ||
"type": "number", | "type": "number", | ||
Line 59: | Line 59: | ||
"example": "&o&7They're magically delicious!", | "example": "&o&7They're magically delicious!", | ||
"type": "line" | "type": "line" | ||
}, | |||
"hideTooltip": { | |||
"aliases": [ | |||
"hideToolTip", | |||
"HideTooltip", | |||
"HideToolTip" | |||
], | |||
"label": "hideTooltip", | |||
"description": "Whether or not to show the tooltip on hover", | |||
"example": "true", | |||
"type": "boolean" | |||
}, | |||
"size": { | |||
"aliases": [ | |||
"Size" | |||
], | |||
"label": "Size", | |||
"description": "Size of sprite in pixels", | |||
"example": "24", | |||
"type": "number" | |||
} | } | ||
}, | }, | ||
Line 71: | Line 91: | ||
"lore", | "lore", | ||
"enchanted", | "enchanted", | ||
"link" | "link", | ||
"hideTooltip", | |||
"size" | |||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Latest revision as of 05:47, 2 July 2021
Template documentation[create]
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. |
Display a single item (borderless)
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item | 1 | The item to be displayed. Prefix with {{code|gm4:}} for GM4-specific items.
| Line | required |
Count | count Count | The amount of this item
| Number | suggested |
Name | name Name title Title | The display name for the item stack
| Unknown | optional |
Lore | lore Lore text Text | If the item has unique lore. Formatting codes should be prefixed with & and new lines are inputted using /"
| Line | optional |
Enchanted | enchanted Enchanted | Whether or not the item is enchanted
| Line | optional |
Link | 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 |
hideTooltip | hideTooltip hideToolTip HideTooltip HideToolTip | Whether or not to show the tooltip on hover
| Boolean | optional |
Size | size Size | Size of sprite in pixels
| Number | optional |