Template:Advancement/doc: Difference between revisions

Jump to navigation Jump to search
Updated for new parameters
m (JP is happy. Idk about that right padding though.)
(Updated for new parameters)
Line 12: Line 12:


The second and third parameters, <code>{{{title}}}</code> and <code>{{{desc}}}</code>, are used in the advancement title and its description.
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.  ''Note, this overlays the title and description over anything surround it, as it does in-game.''


=== Icon ===
=== Icon ===
Line 19: Line 23:


The optional parameters of [[Template:AdvancementIcon]] can be given in the Advancement call, however they must be given by name.
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 ==
== Example Usage ==
Line 28: Line 34:
  | title = Magical Thief
  | title = Magical Thief
  | desc = Successfully extract the mending enchantment from a tool with an Enchantment Extractor
  | desc = Successfully extract the mending enchantment from a tool with an Enchantment Extractor
| enchanted = true
}}
}}
{{Advancement
{{Advancement
Line 35: Line 42:
  | title = Return to Sender
  | title = Return to Sender
  | desc = Destroy a Ghast with a fireball
  | desc = Destroy a Ghast with a fireball
| desc-color = A800A8
}}
}}
{{Advancement
{{Advancement
Line 40: Line 48:
  | title = What a Deal!
  | title = What a Deal!
  | desc = Successfully&nbsp;trade with a Villager
  | desc = Successfully&nbsp;trade with a Villager
| hover = true
}}
}}
</pre>
</pre>
Line 50: Line 59:
  | title = Magical Thief
  | title = Magical Thief
  | desc = Successfully extract the mending enchantment from a tool with an Enchantment Extractor
  | desc = Successfully extract the mending enchantment from a tool with an Enchantment Extractor
| enchanted = true
}}
}}


Line 58: Line 68:
  | state = worn
  | state = worn
  | title = Return to Sender
  | title = Return to Sender
  | desc = <span style="color:#A800A8;">Destroy a Ghast with a fireball</span>
  | desc = Destroy a Ghast with a fireball
| desc-color = A800A8
}}
}}


Line 66: Line 77:
  | title = What a Deal!
  | title = What a Deal!
  | desc = Successfully&nbsp;trade with a Villager
  | desc = Successfully&nbsp;trade with a Villager
| hover = true
}}
}}
__NOTOC__
__NOTOC__
Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,659

edits

Navigation menu