Template:Advancement: Difference between revisions
Jump to navigation
Jump to search
m (No need to have examples on this page) |
(Added TemplateData) |
||
Line 3: | Line 3: | ||
{{#ifeq:{{{hover}}}|true|<div class="hover-advancement-text">|}}<div class="{{#ifeq:{{{hover}}}|true|hover-title|advancement-title}}">{{{2|{{{title|Gamemode 4}}}}}}</div><div class="{{#ifeq:{{{hover}}}|true|hover-description|advancement-description}}">{{#if:{{{desc-color|}}}|<span style="color:#{{{desc-color}}};">}}{{{3|{{{desc|Semi-funny blurb about GM4}}}}}}{{#if:{{{desc-color|}}}|</span>}}</div>{{#ifeq:{{{hover}}}|true|</div>|}}</div></includeonly><noinclude> | {{#ifeq:{{{hover}}}|true|<div class="hover-advancement-text">|}}<div class="{{#ifeq:{{{hover}}}|true|hover-title|advancement-title}}">{{{2|{{{title|Gamemode 4}}}}}}</div><div class="{{#ifeq:{{{hover}}}|true|hover-description|advancement-description}}">{{#if:{{{desc-color|}}}|<span style="color:#{{{desc-color}}};">}}{{{3|{{{desc|Semi-funny blurb about GM4}}}}}}{{#if:{{{desc-color|}}}|</span>}}</div>{{#ifeq:{{{hover}}}|true|</div>|}}</div></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"hover": { | |||
"label": "Hover", | |||
"description": "If true, this mimics the functionality from the Advancement tab", | |||
"example": "true", | |||
"type": "line", | |||
"autovalue": "" | |||
}, | |||
"item": { | |||
"aliases": [ | |||
"1" | |||
], | |||
"label": "Display Item", | |||
"description": "Advancement Icon", | |||
"example": "Grass Block", | |||
"type": "line", | |||
"required": true | |||
}, | |||
"bg": { | |||
"label": "Frame", | |||
"description": "The Advancement icon frame", | |||
"example": "fancy", | |||
"type": "line" | |||
}, | |||
"state": { | |||
"label": "State", | |||
"description": "Advancement completion state", | |||
"example": "worn", | |||
"type": "line" | |||
}, | |||
"enchanted": { | |||
"label": "Enchanted", | |||
"description": "If true, the Advancement icon will show as enchanted", | |||
"example": "true", | |||
"type": "line" | |||
}, | |||
"title": { | |||
"aliases": [ | |||
"2" | |||
], | |||
"label": "Title", | |||
"description": "The Advancement text", | |||
"example": "Gamemode 4", | |||
"type": "line", | |||
"required": true | |||
}, | |||
"desc-color": { | |||
"label": "Description Color", | |||
"description": "A hex code for the color of the Advancement description", | |||
"example": "A800A8", | |||
"type": "line" | |||
}, | |||
"desc": { | |||
"aliases": [ | |||
"3" | |||
], | |||
"label": "Description", | |||
"description": "The Advancement description text", | |||
"example": "Semi-funny blurb about GM4", | |||
"type": "line", | |||
"required": true | |||
} | |||
}, | |||
"description": "Create Advancements as seen within Minecraft.", | |||
"paramOrder": [ | |||
"item", | |||
"title", | |||
"bg", | |||
"state", | |||
"desc", | |||
"desc-color", | |||
"enchanted", | |||
"hover" | |||
] | |||
} | |||
</templatedata></noinclude> |