Jump to content
Toggle menu
  • 3 articles
  • 75 files
  • 7 users
  • 37.9K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Plural/doc: Difference between revisions

Template page
add TemplateData description, move much of the “description” to the usage notes, some further improvements
Prefix language interwiki links with w:
 
(4 intermediate revisions by 4 users not shown)
Line 11: Line 11:
|2aliases=sn
|2aliases=sn
|2label-en=show number
|2label-en=show number
|2d-en=Whether to display the number which given in parameter 2; any non-empty value (e.g. "1", "yes", etc.) will work
|2d-en=Whether to display the number which given in parameter 2; any non-empty value (e.g. "1", "yes", etc.) will work
|2type=line
|2type=line
|2stat=optional
|2stat=optional
Line 17: Line 17:
|3=space
|3=space
|3label-en=space type
|3label-en=space type
|3d-en=Which whitespace symbol to place between the number (given in parameter&nbsp;2) and the text (given in parameters 3,&nbsp;4,&nbsp;5). <code>none</code> for no space, <code>plain</code> for regular space, <code>nb</code> or <code>nbsp</code> for {{w|non-breaking space}}.
|3d-en=Which whitespace symbol to place between the number (given in parameter&nbsp;2) and the text (given in parameters 3, 4, 5). <code>none</code> for no space, <code>plain</code> for regular space, <code>nb</code> or <code>nbsp</code> for {{w|non-breaking space}}.
|3d-td-en=Which whitespace symbol to place between the number (given in parameter&nbsp;2) and the text (given in parameters 3,&nbsp;4,&nbsp;5). "none" for no space, "plain" for regular space, "nb" or "nbsp" for non-breaking space.
|3d-td-en=Which whitespace symbol to place between the number (given in parameter 2) and the text (given in parameters 3, 4, 5). "none" for no space, "plain" for regular space, "nb" or "nbsp" for non-breaking space.
|3type=line
|3type=line
|3def=nbsp
|3def=nbsp
Line 62: Line 62:
* {{language|cs}} ('''cs'''), {{language|sk}} ('''sk'''):
* {{language|cs}} ('''cs'''), {{language|sk}} ('''sk'''):
*: Czech and Slovak have two plural forms: the first, a "{{w|paucal}}" form, is used for the numbers 2, 3 and 4, while the other is used for larger numbers.
*: Czech and Slovak have two plural forms: the first, a "{{w|paucal}}" form, is used for the numbers 2, 3 and 4, while the other is used for larger numbers.
* {{language|be}} ('''be'''), {{language|be-tarask}} ('''be-tarask'''), {{language|bs}} ('''bs'''), {{language|hr}} ('''hr'''), {{language|ru}} ('''ru'''), {{language|sh}} ('''sh'''), {{language|sr}} ('''sr''', '''sr-ec''', '''sr-el'''), {{language|uk}} ('''uk'''):
* {{language|be}} ('''be'''), {{language|be-tarask}} ('''be-tarask'''), {{language|bs}} ('''bs'''), {{language|hr}} ('''hr'''), {{language|pl}} ('''pl'''), {{language|ru}} ('''ru'''), {{language|sh}} ('''sh'''), {{language|sr}} ('''sr''', '''sr-ec''', '''sr-el'''), {{language|uk}} ('''uk'''):
*: Same as above, except that only the ''last'' digit matters (but numbers ending in 11–19 are always plural; so 1, 21, 31, etc. all use the singular, 2–4, 22–24, 32–34 etc. use the paucal form and 5–19, 25–29, 35–39 etc. use the plural).
*: Same as above, except that only the ''last'' digit matters (but numbers ending in 11–19 are always plural; so 1, 21, 31, etc. all use the singular, 2–4, 22–24, 32–34 etc. use the paucal form and 5–19, 25–29, 35–39 etc. use the plural).
* {{language|ro}} ('''ro'''):
* {{language|ro}} ('''ro'''):
*: For integers between 20 to 100, and for integers whose last two digits are either 00 or make a number in the range from 20 to 99, the preposition ''{{lang|ro|de}}'' is added in most cases (see {{w|Romanian numbers}}, sections "[[:en:Romanian numbers#Preposition de|Preposition ''{{lang|ro|de}}'']]" and "[[:en:Romanian numbers#Agreement between number name and modified noun|Agreement between number name and modified noun]]"). To use this, one should explicitly enter the plural form without ''{{lang|ro|de}}'' as the first plural form, and the one with ''{{lang|ro|de}}'' as the second plural form.
*: For integers between 20 to 100, and for integers whose last two digits are either 00 or make a number in the range from 20 to 99, the preposition ''{{lang|ro|de}}'' is added in most cases (see {{w|Romanian numbers}}, sections "[[:w:Romanian numbers#Preposition de|Preposition ''{{lang|ro|de}}'']]" and "[[:w:Romanian numbers#Agreement between number name and modified noun|Agreement between number name and modified noun]]"). To use this, one should explicitly enter the plural form without ''{{lang|ro|de}}'' as the first plural form, and the one with ''{{lang|ro|de}}'' as the second plural form.


Currently, only the exceptions listed above are implemented, but others can and should be added as needed.
Currently, only the exceptions listed above are implemented, but others can and should be added as needed.
Line 76: Line 76:
* <code><nowiki>"{{{n}}} {{Plural | lang=fr | {{{n}}} | pomme | pommes }}"</nowiki></code>
* <code><nowiki>"{{{n}}} {{Plural | lang=fr | {{{n}}} | pomme | pommes }}"</nowiki></code>
** produces: "0 {{Plural | lang=fr | 0 | pomme | pommes }}", "1 {{Plural | lang=fr | 1 | pomme | pommes }}", "2 {{Plural | lang=fr | 2 | pomme | pommes }}", etc.
** produces: "0 {{Plural | lang=fr | 0 | pomme | pommes }}", "1 {{Plural | lang=fr | 1 | pomme | pommes }}", "2 {{Plural | lang=fr | 2 | pomme | pommes }}", etc.
* <code><nowiki>"{{{n}}} {{Plural | lang=pl | {{{n}}} | jabłko | jabłka | jabłek }}"</nowiki></code>
** produces: "0 {{Plural | lang=pl | 0 | jabłko | jabłka | jabłek }}", "1 {{Plural | lang=pl | 1 | jabłko | jabłka | jabłek }}", "2 {{Plural | lang=pl | 2 | jabłko | jabłka | jabłek }}", "5 {{Plural | lang=pl | 5 | jabłko | jabłka | jabłek }}", etc.


(To do: add more examples)
(To do: add more examples)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.