Template:Displaytext/doc

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

Usage
The result text will be auto-translated by tr (also see below).

Base text (is usually the link)
 * Unnamed Parameter 1

Custom display text, or plural suffix (s/es/ies)
 * Unnamed Parameter 2 (optional)

Language code for plural process. Default is.
 * lang (optional)

L10n note
This template is designed to work with auto translation, therefore, for non-English languages, it should be able to recognize English plural suffixes, and not treat them as custom text, even if they are not plural suffixes in the target language. Auto translation can be turned off in the code of the template (currently off for  and  ).

For example, for English,  will output , while for Chinese (zh),   will/should output   (auto-translated) or   (if it cannot be auto-translated) instead of   only (there is no plural form grammar in Chinese, but displaytext will recognize "s" as plural suffix and ignore it instead of displaying it as custom text).