Template:Displaytext

From Terraria Mods Wiki
Jump to navigation Jump to search
Template-info.svg Documentation The documentation below is transcluded from Template:Displaytext/doc. (edit | history)

Get display text. Used in templates with link and custom display text. It will do intuitive pluralism process for plural suffixes (s/es/ies).

Usage

{{displaytext|arg1|arg2}}

Unnamed Parameter 1

Base text (is usually the link)

Unnamed Parameter 2 (optional)

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

Examples

Code Result Note
{{displaytext|Block}} Block Regular
{{displaytext|Block|s}} Blocks
{{displaytext|Boss|es}} Bosses
{{displaytext|Butterfly|ies}} Butterflies
{{displaytext| Boss | es }} Bosses Spaces will be ignored.
{{displaytext|Boss|s}} Bosses Smart process for "s"
{{displaytext|Cash|s}} Cashes
{{displaytext|Watch|s}} Watches
{{displaytext|Box|s}} Boxes
{{displaytext|Butterfly|s}} Butterflies
{{displaytext|Mouse|s}} Mice
{{displaytext|Leaf|s}} Leaves
{{displaytext|Staff|s}} Staves
{{displaytext|Knife|s}} Knives
{{displaytext|Campfire|s}} Campfires
{{displaytext|Gold Table|Golden}} Golden Custom display text