Template:Plural/doc

This template allows easy formatting of statements of the form "# thing(s)", with correct use of plurals. It uses the "plural" magic word, so ideally it should work with minimal modification for other language.

Syntax

 * NaN names
 * NaN singular names

Examples
For most English nouns, the plural is formed by adding "s" to the end of the singular form. If that is the case, only one "name" parameter is required:
 * returns "0 pages"
 * returns "1 page"
 * returns "2 pages"

For plurals that require adding "es", or more unusual forms, the singular and plural forms must be specified explicitly:
 * returns "0 oxs"
 * returns "1 ox"
 * returns "2 oxs"

TemplateData
{ "description": "Allows easy formatting of statements using plural.", "params": { "1": {     "label": "Number", "description": "The number of items: 0, 1, 2 etc.", "type": "number", "required": true },   "2": {      "label": "Singular name", "description": "The text to use when one item is specified", "type": "string", "required": true },   "3": {      "label": "plural name", "description": "The text to use when two or more items are specified. The default is to append the singular form with 's'.", "type": "string", "required": false } } }