Template:S
From Stiki
This template provides a shorthand for pluralising words in templates when those words have variable quantities.
Usage
{{s | number | plural_form | singular_form}}
Where:
- 'number' is the quantity of the word which the template is modifying. If 'number' is equal to 1 then 'singular_form' will be returned, orherwise 'plural_form' will be returned.
- 'plural_form' is the suffix to add to the word if it is in the plural. If this argument is blank, a default suffix of 's' is used.
- 'singular_form' is the suffix to add to the word if it is in the singular. If this argument is blank, the default suffix is blank.
Here are some examples of the way that it is intended to be used:
| Sample template code | When {{{1}}} is 1 returns | Otherwise returns |
|---|---|---|
Owl{{s|{{{1}}}}} | Owl | Owls |
Ox{{s|{{{1}}}|en}} | Ox | Oxen |
Oddit{{s|{{{1}}}|ies|y}} | Oddity | Oddities |
Template code
s

