Template:Plural: Difference between revisions
Template page
More actions
m add some language codes matching the existing rules, per grepping the Language*.php files; still need to add other rules |
m Protected "Template:Plural": Widely used template ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)) |
||
| (17 intermediate revisions by 12 users not shown) | |||
| Line 1: | Line 1: | ||
{{#switch: {{{lang|}}} | {{#if:{{{shownum|{{{sn|}}}}}} |<!--then:-->{{{1}}}{{#switch: {{{space|}}} | ||
|none=<!--no space--> | |||
|plain= <!--normal space--> | |||
|nb|nbsp|#default= <!--non-breaking space--> | |||
}}<!--end #switch: {{{space|}}}-->}}<!--end #if:{{{shownum|}}} | |||
-->{{#switch: {{{lang|}}} | |||
|cs|sk={{#switch: {{{1|}}} |1= {{{2|}}} |2|3|4= {{{3|}}} |#default= {{{4|}}} }} | |cs|sk={{#switch: {{{1|}}} |1= {{{2|}}} |2|3|4= {{{3|}}} |#default= {{{4|}}} }} | ||
|am|fr|hi|hy|ln|mg|pt-br|ti|tl|wa={{#ifexpr: {{{1|}}} <= 1 | {{{2|}}} | {{{3|}}} }} | |am|fr|hi|hy|ln|mg|pt-br|ti|tl|wa={{#ifexpr: {{{1|}}} <= 1 | {{{2|}}} | {{{3|}}} }} | ||
|be|be-tarask|bs|hr|ru|sh|sr|sr-ec|sr-el|uk={{#ifexpr: ({{{1|}}} > 10) and trunc(({{{1|}}} mod 100) / 10) = 1 | {{{4|}}} | {{#switch: {{#expr:{{{1|}}} mod 10}} |1= {{{2|}}} |2|3|4= {{{3|}}} |#default= {{{4|}}} }} }} | |be|be-tarask|bs|hr|pl|ru|sh|sr|sr-ec|sr-el|uk={{#ifexpr: ({{{1|}}} > 10) and trunc(({{{1|}}} mod 100) / 10) = 1 | {{{4|{{{3|}}}}}} | {{#switch: {{#expr:{{{1|}}} mod 10}} |1= {{{2|}}} |2|3|4= {{{3|}}} |#default= {{{4|{{{3|}}}}}} }} }} | ||
|ro={{#ifeq: {{{1|}}} | 1 | {{{2|}}} | {{#ifexpr: {{{1|}}} mod 100 < 20 | {{{3|}}} | {{{4|}}} }} }} | |||
|#default={{#ifeq: {{{1|}}} | 1 | {{{2|}}} | {{{3|}}} }} | |#default={{#ifeq: {{{1|}}} | 1 | {{{2|}}} | {{{3|}}} }} | ||
}}<noinclude>{{documentation}}</noinclude> | }}<!--end #switch: {{{lang|}}}--><noinclude>{{documentation}} | ||
</noinclude> | |||