Template:Stack: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
m (Transclude documentation - Removes error on this page.)
mNo edit summary
Line 1: Line 1:
<includeonly>{{#invoke:Crafting|Item}}</includeonly><noinclude>
<includeonly>{{#invoke:Crafting|Item}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
<templatedata>
{
"params": {
"1": {
"label": "Item",
"description": "The item to display",
"example": "Crafting Table",
"type": "line",
"required": true
},
"name": {
"aliases": [
"Name",
"title",
"Title"
],
"label": "Name",
"description": "The display name for the item stack",
"example": "Lucky Charms"
},
"count": {
"aliases": [
"Count"
],
"label": "Count",
"description": "A number to display for the item stack.",
"example": "20",
"type": "number",
"suggested": true
},
"enchanted": {
"aliases": [
"Enchanted"
],
"label": "Enchanted",
"description": "Whether or not the item is enchanted",
"example": "true",
"type": "line"
},
"link": {
"aliases": [
"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": "[[Custom Crafters]], or [https://gm4.co]",
"type": "line"
},
"lore": {
"aliases": [
"Lore",
"text",
"Text"
],
"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"
}
},
"description": "Display a single item (borderless)",
"maps": {
"test": {}
},
"paramOrder": [
"1",
"count",
"name",
"lore",
"enchanted",
"link"
]
}
</templatedata></noinclude>

Revision as of 14:54, 7 June 2021

Template documentation[create]

Display a single item (borderless)

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Item1

The item to display

Example
Crafting Table
Linerequired
Countcount Count

A number to display for the item stack.

Example
20
Numbersuggested
Namename Name title Title

The display name for the item stack

Example
Lucky Charms
Unknownoptional
Lorelore Lore text Text

If the item has unique lore. Formatting codes should be prefixed with & and new lines are inputted using /"

Example
&o&7They're magically delicious!
Lineoptional
Enchantedenchanted Enchanted

Whether or not the item is enchanted

Example
true
Lineoptional
Linklink 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.

Example
[[Custom Crafters]], or [https://gm4.co]
Lineoptional