Template:Achievement

From Terraria Wiki
Jump to navigation Jump to search
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Achievement/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Template:Achievement/doc. (edit | history)

Use this to display an achievement. This template adds pages to Category:Achievement-related elements.

Usage

Auto mode

{{ achievement | name = achievement name }}

This requires this achievement name to exist in the achievement database.

Example:
{{achievement|name=Ooo! Shiny!}}

Produces:

Achievement Ooo! Shiny!.png
Ooo! Shiny! • Mine your first nugget of ore with a pickaxe.
Mine your first ore. (Desktop, Console and Mobile versions)
Category: Explorer Explorer

Manual mode

{{ achievement |name = achievement name | t = alternate name | desc = achievement description | title = achievement title text }}

  • name: required.
  • t/desc/title: optional. Will override auto content.
  • icons: optional. Will be displayed before name.
  • nocat : An optional flag to disable categorizing the page in Category:Achievement-related elements. Add |nocat=yes only in documentation, discussion examples, etc.

Example:
{{achievement|name=Ooo! Shiny!|t=Shiny!|desc=First ore.|title=first nugget of ore.|icons={{icon|ios|google}}}}

Produces:

Achievement Ooo! Shiny!.png
iOS & iPadOSGoogle Play Shiny! • “first nugget of ore.”
First ore.
Category: Explorer Explorer

Category mode

{{ achievement | name = <achievement name> | onlycateindex = y/yes | onlycatename = y/yes }}

This requires this achievement name to exist in the achievement database.

Only one of these two parameters can be set at a time:

  • $onlycatename: Displays the (localized) name of the in-game category that the achievement is in, e.g. "Explorer".
  • $onlycateindex: Displays the internal "index" of the in-game category that the achievement is in. This is to be used for the file name as shown below.

Examples:

  • {{achievement|name=Ooo! Shiny!|onlycatename=y}} → Explorer
  • [[File:{{achievement|name=Ooo! Shiny!|onlycateindex=y}} Achievement Category.png]]Explorer Achievement Category.png