Template:Displaytext

来自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.
Template-info.svg 文档 以下文档内容来自模板:Displaytext/doc。 (edit | history)

Get display text. Use in templates with link and customable display text.

Usage

{{displaytext|arg1|arg2|lang=<lang>}} The result text will be auto translated.

Unnamed Parameter 1

Base text (usually be link)

Unnamed Parameter 2 (optional)

Custom display text, or plural suffix (e/es/ies)

lang (optional)

Language code for plural process. default is {{lang}}

Example

Code Result Expected
{{displaytext|Block}} 物块 Block
{{displaytext|Block|s}} 物块 Blocks
{{displaytext|Boss|es}} Boss Bosses
{{displaytext|Butterfly|ies}} 蝴蝶 Butterflies
{{displaytext|Gold Table|Golden}} Golden Golden
{{displaytext|Golden Chest|s|lang=it}} 金宝箱 Cassa dorata