Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,633
edits
(Epyon moved page Template:Advancement/doc to Template:AdvancementIcon/doc: Advancement will mimic in-game advancement) Tag: New redirect |
m (-ing) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Using this template, you can create the advancements as seen within the game. | |||
The badge is created using the <code><nowiki>[[</nowiki>[[Template:AdvancementIcon]]<nowiki>]]</nowiki></code> template, | |||
with images taken from <code><nowiki>{{</nowiki>[[Module:InvSprite]]<nowiki>}}</nowiki></code>. | |||
{{Advancement}} | |||
== Usage == | |||
Using the first parameter, <code>{{{item}}}</code>, you can set the image to the specified block or item or a fallback image. | |||
For Gamemode 4 specific items or blocks, <code>gm4:</code> must prefix the name, e.g., <code>gm4:Boots of Ostara</code>. | |||
The second and third parameters, <code>{{{title}}}</code> and <code>{{{desc}}}</code>, are used in the advancement title and its description. | |||
''Optional.'' <code>{{{desc-color}}}</code>, is used to give the description a different color. Hex codes are inputted without the hashtag. Example: <code><nowiki>{{Advancement|desc-color=A800A8}}</nowiki></code> | |||
''Optional.'' <code>{{{hover}}}</code>, is used to display only the advancement icon until hovered over. This is used to mimic the in-game advancement tab. '''When using hover advancements, spacing needs to be replicated using non-breaking spaces, <code>&nbsp;</code>.''' ''Note, this overlays the title and description over anything surrounding it, as it does in-game.'' | |||
=== Icon === | |||
{{AdvancementIcon|Air}} | |||
The badge and item are created with the first parameter, <code>{{{item}}}</code>, and uses the plain and uncompleted advancement badge. | |||
The optional parameters of [[Template:AdvancementIcon]] can be given in the Advancement call, however they must be given by name. | |||
''Optional.'' <code>{{{enchanted}}}</code>, is used to give the advancement icon an enchanted glint. | |||
== Example Usage == | |||
<pre> | |||
{{Advancement|gm4:Boots of Ostara|Green Feet|Wear the Boots of Ostara}} | |||
{{Advancement | |||
| item = Enchantment Table | |||
| title = Magical Thief | |||
| desc = Successfully extract the mending enchantment from a tool with an Enchantment Extractor | |||
| enchanted = true | |||
}} | |||
{{Advancement | |||
| item = Fire Charge | |||
| bg = fancy | |||
| state = worn | |||
| title = Return to Sender | |||
| desc = Destroy a Ghast with a fireball | |||
| desc-color = A800A8 | |||
}} | |||
{{Advancement | |||
| item = Emerald | |||
| title = What a Deal! | |||
| desc = Successfully trade with a Villager | |||
| hover = true | |||
}} | |||
</pre> | |||
{{Advancement|gm4:Boots of Ostara|Green Feet|Wear the Boots of Ostara}} | |||
{{Advancement | |||
| item = Enchantment Table | |||
| title = Magical Thief | |||
| desc = Successfully extract the mending enchantment from a tool with an Enchantment Extractor | |||
| enchanted = true | |||
}} | |||
{{Advancement | |||
| item = Fire Charge | |||
| bg = fancy | |||
| state = worn | |||
| title = Return to Sender | |||
| desc = Destroy a Ghast with a fireball | |||
| desc-color = A800A8 | |||
}} | |||
{{Advancement | |||
| item = Emerald | |||
| title = What a Deal! | |||
| desc = Successfully trade with a Villager | |||
| hover = true | |||
}} | |||
__NOTOC__ |
edits