Template:$

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.
Template-info.svg Documentation The documentation below is transcluded from Template:$/doc. (edit | history)

This template is used to quickly pluralize singular links to plural page titles, or append suffix.

Usage

Unnamed Parameter 1

Display text (singular)

Unnamed Parameter 2 (optional)

Plural suffix (s/es/ies) or custom link text, will auto detect if omitted. See {{displaytext}} for details about auto plural detection.

Unnamed Parameter 3 (optional)

Pagename suffix (without parenthesis), See examples below.

Example

[[King Slime]] is a {{$|boss}}. results in: King Slime is a boss.

Code Result Note
{{$|event}} event Default plural suffix is s.
{{$|boss}} boss See {{displaytext}} for all other plural rules.
{{$|butterfly}} butterfly
{{$|ray}} ray
{{$|leaf}} leaf
{{$|roof}} roof
{{$|tooth|teeth}} tooth Custom plural link text for irregular nouns. Equal to [[teeth|tooth]].
{{$|leaf|events}} leaf Custom link text. Equal to [[event|leaf]]. Even though it works, please do not do this!
{{$|Jellyfish||bait}} Jellyfish pagename suffix
{{$|Banner|s|enemy}} Banner
{{lang/set|es}}{{$|Music Box||Snow}} Caja de música i18n test