Template:Plural: Difference between revisions
Template page
More actions
add Russian rule (same as Czech but mod 10), remove needless aliases of the default case, add documentation |
fix Russian rule (looks weird, but should match the code in LanguageRu.php now) |
||
| Line 2: | Line 2: | ||
|cs={{#switch: {{{1|}}} |1= {{{2|}}} |2|3|4= {{{3|}}} |#default= {{{4|}}} }} | |cs={{#switch: {{{1|}}} |1= {{{2|}}} |2|3|4= {{{3|}}} |#default= {{{4|}}} }} | ||
|fr={{#ifexpr: {{{1|}}} <= 1 | {{{2|}}} | {{{3|}}} }} | |fr={{#ifexpr: {{{1|}}} <= 1 | {{{2|}}} | {{{3|}}} }} | ||
|ru={{#switch: {{#expr:{{{1|}}} mod 10}} |1= {{{2|}}} |2|3|4= {{{3|}}} |#default= {{{4|}}} }} | |ru={{#ifexpr: ({{{1|}}} > 10) and trunc(({{{1|}}} mod 100) / 10) = 1 | {{{4|}}} | {{#switch: {{#expr:{{{1|}}} mod 10}} |1= {{{2|}}} |2|3|4= {{{3|}}} |#default= {{{4|}}} }} }} | ||
|#default={{#ifeq: {{{1|}}} | 1 | {{{2|}}} | {{{3|}}} }} | |#default={{#ifeq: {{{1|}}} | 1 | {{{2|}}} | {{{3|}}} }} | ||
}}<noinclude>{{documentation}}</noinclude> | }}<noinclude>{{documentation}}</noinclude> | ||