Jump to content

Template talk:Plural

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Plural/doc)

Old discussion

[edit]

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

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)[reply]

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

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

ParameterDescriptionTypeStatus
Number1

A non-negative number

Numberrequired
Name2

A singular noun

Stringrequired
Name (plural)3

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

Stringoptional

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

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)[reply]

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)[reply]

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)[reply]
Thanks for the quick response and also for adding nb=no to the test cases. -- Zyxw (talk) 04:03, 30 September 2013 (UTC)[reply]