Template:Advancement/doc: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
m (Blanking for testing)
Tag: Blanking
(Created documentation)
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.
=== 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.
== 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
}}
{{Advancement
| item = Fire Charge
| bg = fancy
| state = worn
| title = Return to Sender
| desc = Destroy a Ghast with a fireball
}}
</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
}}
{{Advancement
| item = Fire Charge
| bg = fancy
| state = worn
| title = Return to Sender
| desc = <span style="color:#A800A8;">Destroy a Ghast with a fireball</span>
}}
__NOTOC__

Revision as of 06:51, 13 August 2020

Using this template, you can create the advancements as seen within the game.

The badge is created using the [[Template:AdvancementIcon]] template, with images taken from {{Module:InvSprite}}.

Gamemode 4
Semi-funny blurb about GM4

Usage

Using the first parameter, {{{item}}}, you can set the image to the specified block or item or a fallback image. For Gamemode 4 specific items or blocks, gm4: must prefix the name, e.g., gm4:Boots of Ostara.

The second and third parameters, {{{title}}} and {{{desc}}}, are used in the advancement title and its description.

Icon

The badge and item are created with the first parameter, {{{item}}}, 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.

Example Usage

{{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
}}
{{Advancement
 | item = Fire Charge
 | bg = fancy
 | state = worn
 | title = Return to Sender
 | desc = Destroy a Ghast with a fireball
}}
Green Feet
Wear the Boots of Ostara


Magical Thief
Successfully extract the mending enchantment from a tool with an Enchantment Extractor


Return to Sender
Destroy a Ghast with a fireball