Template talk:Plural

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Old discussion[edit]

I have fixed this template to correctly handle all plurals, even "ox/oxen". Anomie 19:59, 5 October 2007 (UTC)

Safesubst[edit]

{{editprotected}} Please make this edit to allow the template to give the expected output when substed. Anomie 17:28, 12 October 2010 (UTC)

done —TheDJ (talkcontribs) 18:17, 12 October 2010 (UTC)

Edit request on 1 July 2013: add TemplateData for Visual Editor[edit]

Provides the appropriate singular or plural form of a noun preceded by a number

Template parameters

Parameter Description Type Status
Number 1

A non-negative number

Default
empty
Example
empty
Auto value
empty
Number required
Name 2

A singular noun

Default
empty
Example
empty
Auto value
empty
String required
Name (plural) 3

Plural form of Name (not needed if the plural is formed by adding -s)

Default
empty
Example
empty
Auto value
empty
String optional

ℜob C. alias ÀLAROB 00:07, 2 July 2013 (UTC)

Not done: {{edit protected}} is usually not required for edits to the documentation, categories, or interlanguage links of templates using a documentation subpage. Use the 'edit' link at the top of the green "Template documentation" box to edit the documentation subpage. --Redrose64 (talk) 08:58, 2 July 2013 (UTC)

Edit request on 30 September 2013[edit]

I am requesting that this template be updated to allow the option of using a non-breaking space between the number and the text (in place of the current breaking space). The updated code can be found in Template:Plural/sandbox. The following shows an example of how it would work (the output was placed inside a narrow <div> to force a line break).

Example Current output Sandbox output
Non-breaking space: {{plural|20|year|nb=y}}
20 years
20 years
Breaking space (default): {{plural|20|year}}
20 years
20 years

Additional examples can be found at Template:Plural/testcases. -- Zyxw (talk) 01:58, 30 September 2013 (UTC)

Done Except I used {{yesno}} so {{plural|20|year|nb=no}} will do what the user probably expects. Anomie 02:06, 30 September 2013 (UTC)
Thanks for the quick response and also for adding nb=no to the test cases. -- Zyxw (talk) 04:03, 30 September 2013 (UTC)