Plural/Mediawiki plural rules/row
Appearance
Example of rendering with one row for one language code
Code | Language name (in English) | Group | CLDR rules | CLDR examples for integers | CLDR examples for decimal numbers | |
---|---|---|---|---|---|---|
[en] | English | Default | one | n is 1 | 1 | 1.0 |
other | 0, 1–100, 1000, 10000, 100000, 1000000, ... | 0.0–0.9, 1.1–9.9, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, ... |
The documentation of this template is included from the "Plural/Mediawiki plural rules/row/doc" page.
[Edit]
- Usage:
- Summary description.
- Syntax:
-
{{Plural/Mediawiki plural rules/row|1 = language code|group = common group of plural rules|note = note|r = number of rules|r0 = rule zero|e0 = examples of zero as an integer|d0 = examples of zero with decimals|r1 = rule one|e1 = examples of one as an integer|d1 = examples of one with decimals|r2 = rule two|e2 = examples of two as an integer|d2 = examples of two with decimals|rf = rule few|ef = examples of few as an integer|df = examples of few with decimals|rm = rule many|em = examples of many as an integer|dm = examples of many with decimals|e = examples of other as an integer|d = examples of other with decimals}}
- Parameters:
-
1=
language code (required)group=
common group of plural rules (optional)note=
notes (optional)r =
number of rules (optional)r0=
rule for zero (optional)e0=
example values of zero as an integer (optional, only used if r0 is set)d0=
example values of zero with decimals (optional, only used if r0 is set)r1=
rule for one (optional)e1=
example values of one as an integer (optional, only used if r1 is set)d1=
example values of one with decimals (optional, only used if r1 is set)r2=
rule for two (optional)e2=
example values of two as an integer (optional, only used if r2 is set)d2=
example values of two with decimals (optional, only used if r2 is set)rf=
rule for few (optional)ef=
example values of few as an integer (optional, only used if rf is set)df=
example values of few with decimals (optional, only used if rf is set)rm=
rule for many (optional)em=
example values of many as an integer (optional, only used if rm is set)dm=
example values of many with decimals (optional, only used if rm is set)e=
example values for other as an integer (optional)d=
example values for other with decimals (optional)
- Example:
{{Plural/Mediawiki plural rules/row|1=ar|group = <kbd>[https://github.com/wikimedia/mediawiki/blob/master/languages/classes/LanguageAr.php arabic]</kbd>}}
generates this table row:
[ar] | Arabic | Arabic[a] | zero | n is 0 | 0 | 0.0 |
---|---|---|---|---|---|---|
one | n is 1 | 1 | 1.0 | |||
two | n is 2 | 2 | 2.0 | |||
few | n mod 100 in 3–10 | 3–10, 103–110, 203–210... | 3.0–10.0, 103.0–110.0, 203.0–210.0... | |||
many | n mod 100 in 11–99 | 11–99, 111–199, 211–299, ... | 11.0–99.0, 111.0–199.0, 211.0–299.0, ... | |||
other | 100–102, 200–202, 300–302, ... | 0.1–0.9, 1.1–1.9, 2.1–2.9, 100.0–102.9, 200.0–202.9, 300.0–302.9, ... |
- See also: