Template: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