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.

Usage
With a space between the number and name (using numeric character reference ):
 * NaN names
 * NaN singular names

With a non-breaking space between the number and name (using character entity reference ):
 * 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"
 * returns "-1 pages"
 * returns "-2 pages"
 * returns "0.5 pages"
 * returns "1.5 pages"
 * returns "-0.5 pages"
 * returns "-1.5 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"
 * returns "-1 oxs"
 * returns "-2 oxs"
 * returns "0.5 oxs"
 * returns "1.5 oxs"
 * returns "-0.5 oxs"
 * returns "-1.5 oxs"

With parameter nb:
 * returns: 2 sesquipedalians
 * returns: 2 sesquipedalians

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 },		"4": {},		"nb": {} } }