Template:PLURAL/doc
Jump to navigation
Jump to search

This is the documentation subpage for the parent Template:PLURAL page.
This is used to format plurals using Ruby the syntax (Ruby infers which value to use by detecting parameter reference "%name%" in each listed item: the first reference found is supposed to be the numeric value to test so it should be somewhere in the listed parameters. This syntax does not work natively on this wiki.
Note that MediaWiki uses another syntax where "PLURAL:" is followed by a colon and the numeric value to test (Mediawiki does not have to parse all cases to detect which value to use), before listing other parameters as pairs keyed by a plural case, or an anonymous parameter for the default translation.
Examples
{{PLURAL|zero=No comments|one=%{count} comment|%{count} comments}}
→{{PLURAL|zero=No comments|one=%{count} comment|%{count} comments}}
{{PLURAL|one=%{count} comment|%{count} comments}}
→{{PLURAL|one=%{count} comment|%{count} comments}}
- Messages using this template:
- Website-collection items count ("
{{PLURAL|zero=Empty|one=%{count} item|%{count} items}}
") - EOL - Global-number.x time ("
{{PLURAL|zero=Never|one=%{count} time|%{count} times}}
") - Shapado
- Website-collection items count ("