模板:Achievement

出自Terraria Wiki
跳至導覽 跳至搜尋
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 文檔 以下文檔來自Template:Achievement/doc。(編輯 | 歷史

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
哦!亮閃閃! • 用鎬開採第一塊礦石。
開採第一塊礦石(電腦版、主機版、和移動版)
類別:探險家 探險家

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 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. "探險家".
  • $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}} → 探險家
  • [[File:{{achievement|name=Ooo! Shiny!|onlycateindex=y}} Achievement Category.png]]Explorer Achievement Category.png