Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 22:22, 1 April 2010 by commons>Ilmari Karonen (basic documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template can be used to select the singular or plural form of a word depending on a number and the grammar rules of a language. It functions more or less like the {{PLURAL:}} parser function, except that the language code is given as a parameter. For most languages, including English, {{Plural | lang=xx | {{n}} | singular | plural}} is exactly equivalent to {{#ifeq: {{n}} | 1 | singular | plural}}, but for some languages the rules are different and some even have more than one plural form:

  • français (fr): Zero is considered singular in French, not plural.
  • čeština (cs): Czech has two plural forms: the first, a "paucal" form, is used for the numbers 2, 3 and 4, while the other is used for larger numbers.
  • русский (ru): Russian is same as Czech, except that only the last digit matters (so 1, 11, 21, 31, etc. all use the singular, 2–4, 12–14, 22–24, etc. use the paucal form and 5–9, 15–19, 25–29, etc. use the plural).

Currently, only the exceptions listed above are implemented, but others can and should be added as needed.

Usage

{{Plural |lang= |1= |2= |3= |4= }}

Template parameters

ParameterDescriptionDefaultStatus
langISO language code"en" (effectively)optional
1Numberemptyrequired
2Singular formemptyrequired
3Plural form (or first plural form for languages with several)emptyrequired
4Second plural form (for languages with several plural forms)emptyoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Example

{{Plural|lang=en|1|example|examples}}

renders as:

Localization

This template is not intended to be localized.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.