Template talk:Plural
Template:Plural is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
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 (talk • contribs) 18:17, 12 October 2010 (UTC)
Edit request on 1 July 2013: add TemplateData for Visual Editor
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Provides the appropriate singular or plural form of a noun preceded by a number
Parameter | Description | Type | Status | |
---|---|---|---|---|
Number | 1 | A non-negative number | Number | required |
Name | 2 | A singular noun | String | required |
Name (plural) | 3 | Plural form of Name (not needed if the plural is formed by adding -s) | 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]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- Thanks for the quick response and also for adding