模板:Etext/doc

来自Terraria Wiki
跳到导航 跳到搜索

This shortcut template displays text with {{exclusive icons}}. It is roughly equivalent to {{nowrap| text {{eicons|...}} }} or {{nowrap| {{eicons|...}} text }}, however, the whitespace between the text and the icons is more elegant.

Usage

It accepts all named parameters of {{eicons}}, in addition to the following parameters:

{{ etext | <text before icons> | t/after = <text after icons> | e/eicons = <entity name for {{eicons}}> }}

First unnamed parameter or before

The text before the exclusive icons. This is usually used outside of normal article text, e.g. for short numbers in infoboxes or tables, commonly together with |small=y.

t or after

The text after the exclusive icons. This is usually used in normal article text.

e or eicons

Equivalent to the first unnamed parameter of {{eicons}}.

Examples

Code Result
In {{etext|e=1.4.3.3|t=the [[Desert]]}} /

{{etext|e=1.4.3.3|invert=y|3ds=no|t=the [[Snow biome]]}}, ...

In (电脑版、主机版、和移动版)the Desert / (前代主机版)the Snow biome, ...
{{etext|{{chance|1/4}}|e=Dyes|not=1.4.0.1}} 1/4 (25%)(前代主机版)

Options

The {{options}} setting of {{eicons}} will also affect this template. For example:

Code Result
{{options/set|eicons|small=y}}
{{etext|{{chance|1/4}}|e=Dyes|not=1.4.0.1}}
{{options/reset|eicons}}
1/4 (25%)(前代主机版)