Template:Plural/doc
< Template:Plural
Jump to navigation
Jump to search
Revision as of 16:27, 17 September 2022 by Ickputzdirwech (talk | contribs) (This template can be used to properly localise units.)
Usage
This template can be used to properly localise units.
The template has two parameters:
{{Plural|"value"|"text"}}
- The first parameter can be any value, usually in form of an expression.
- The second parameter can be any text including links and templates. It should end with the unit of the value as this template simply adds an "s" at the end of the text, if the value isn't 1.
Examples
{{Plural|1|component}}
produces: 1 component
{{Plural|2|component}}
produces: 2 components
{{Plural|1/3 round 2|component}}
produces: 0.33 components
{{Plural|0.5|{{Icon Small|component}} [[component]]}}
produces: 0.5 components