This is the template test cases page for the sandbox of Template:Plural. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Two parameters
edit{{Plural|0|page}}
{{Plural}} | → |
0 pages0 pages |
---|---|---|
{{Plural/sandbox}} | → |
0 pages0 pages |
{{Plural|1|page}}
{{Plural}} | → |
1 page1 page |
---|---|---|
{{Plural/sandbox}} | → |
1 page1 page |
{{Plural|2|page}}
{{Plural}} | → |
2 pages2 pages |
---|---|---|
{{Plural/sandbox}} | → |
2 pages2 pages |
{{Plural|-1|page}}
{{Plural}} | → |
-1 page-1 page |
---|---|---|
{{Plural/sandbox}} | → |
-1 page-1 page |
{{Plural|-2|page}}
{{Plural}} | → |
-2 pages-2 pages |
---|---|---|
{{Plural/sandbox}} | → |
-2 pages-2 pages |
{{Plural|0.5|page}}
{{Plural}} | → |
0.5 pages0.5 pages |
---|---|---|
{{Plural/sandbox}} | → |
0.5 pages0.5 pages |
{{Plural|1.5|page}}
{{Plural}} | → |
1.5 pages1.5 pages |
---|---|---|
{{Plural/sandbox}} | → |
1.5 pages1.5 pages |
{{Plural|-0.5|page}}
{{Plural}} | → |
-0.5 pages-0.5 pages |
---|---|---|
{{Plural/sandbox}} | → |
-0.5 pages-0.5 pages |
{{Plural|-1.5|page}}
{{Plural}} | → |
-1.5 pages-1.5 pages |
---|---|---|
{{Plural/sandbox}} | → |
-1.5 pages-1.5 pages |
Three parameters
edit{{Plural|0|ox|oxen}}
{{Plural}} | → |
0 oxen0 oxen |
---|---|---|
{{Plural/sandbox}} | → |
0 oxen0 oxen |
{{Plural|1|ox|oxen}}
{{Plural}} | → |
1 ox1 ox |
---|---|---|
{{Plural/sandbox}} | → |
1 ox1 ox |
{{Plural|2|ox|oxen}}
{{Plural}} | → |
2 oxen2 oxen |
---|---|---|
{{Plural/sandbox}} | → |
2 oxen2 oxen |
{{Plural|-1|ox|oxen}}
{{Plural}} | → |
-1 ox-1 ox |
---|---|---|
{{Plural/sandbox}} | → |
-1 ox-1 ox |
{{Plural|-2|ox|oxen}}
{{Plural}} | → |
-2 oxen-2 oxen |
---|---|---|
{{Plural/sandbox}} | → |
-2 oxen-2 oxen |
{{Plural|0.5|ox|oxen}}
{{Plural}} | → |
0.5 oxen0.5 oxen |
---|---|---|
{{Plural/sandbox}} | → |
0.5 oxen0.5 oxen |
{{Plural|1.5|ox|oxen}}
{{Plural}} | → |
1.5 oxen1.5 oxen |
---|---|---|
{{Plural/sandbox}} | → |
1.5 oxen1.5 oxen |
{{Plural|-0.5|ox|oxen}}
{{Plural}} | → |
-0.5 oxen-0.5 oxen |
---|---|---|
{{Plural/sandbox}} | → |
-0.5 oxen-0.5 oxen |
{{Plural|-1.5|ox|oxen}}
{{Plural}} | → |
-1.5 oxen-1.5 oxen |
---|---|---|
{{Plural/sandbox}} | → |
-1.5 oxen-1.5 oxen |
with "nb" parameter
edit<div style="width:1em">{{Plural|20|year}}</div>
{{Plural}} | → |
20 years <div style="width:1em">20 years</div> |
---|---|---|
{{Plural/sandbox}} | → |
20 years <div style="width:1em">20 years</div> |
<div style="width:1em">{{Plural|20|year|nb=}}</div>
{{Plural}} | → |
20 years <div style="width:1em">20 years</div> |
---|---|---|
{{Plural/sandbox}} | → |
20 years <div style="width:1em">20 years</div> |
<div style="width:1em">{{Plural|20|year|nb=no}}</div>
{{Plural}} | → |
20 years <div style="width:1em">20 years</div> |
---|---|---|
{{Plural/sandbox}} | → |
20 years <div style="width:1em">20 years</div> |
<div style="width:1em">{{Plural|20|year|nb=y}}</div>
{{Plural}} | → |
20 years <div style="width:1em">20 years</div> |
---|---|---|
{{Plural/sandbox}} | → |
20 years <div style="width:1em">20 years</div> |
<div style="width:1em">{{Plural|20|year|nb=1}}</div>
{{Plural}} | → |
20 years <div style="width:1em">20 years</div> |
---|---|---|
{{Plural/sandbox}} | → |
20 years <div style="width:1em">20 years</div> |
with "uc" parameter
edit"{{Plural|27|picture|uc=no}}"
{{Plural}} | → |
"27 pictures""27 pictures" |
---|---|---|
{{Plural/sandbox}} | → |
"27 pictures""27 pictures" |
"{{Plural|27|picture|uc=yes}}"
{{Plural}} | → |
"27 pictures""27 pictures" |
---|---|---|
{{Plural/sandbox}} | → |
"27 pictures""27 pictures" |
"{{Plural|1|picture|uc=no}}"
{{Plural}} | → |
"1 picture""1 picture" |
---|---|---|
{{Plural/sandbox}} | → |
"1 picture""1 picture" |
"{{Plural|1|picture|uc=yes}}"
{{Plural}} | → |
"1 picture""1 picture" |
---|---|---|
{{Plural/sandbox}} | → |
"1 picture""1 picture" |
"{{Plural||picture|uc=no}}"
{{Plural}} | → |
" pictures"" pictures" |
---|---|---|
{{Plural/sandbox}} | → |
" pictures"" pictures" |
"{{Plural||picture|uc=yes}}"
{{Plural}} | → |
" pictures"" pictures" |
---|---|---|
{{Plural/sandbox}} | → |
"Pictures""Pictures" |
known issues
editmissing parameters 1/2/3
"{{Plural}}"
{{Plural}} | → |
"{{{1}}} {{{2}}}s""{{{1}}} {{{2}}}s" |
---|---|---|
{{Plural/sandbox}} | → |
"{{{1}}} {{{2}}}s""{{{1}}} {{{2}}}s" |
empty parameters 1 and 2 (unnamed)
"{{Plural||}}"
{{Plural}} | → |
" s"" s" |
---|---|---|
{{Plural/sandbox}} | → |
" s"" s" |
empty parameters 1 and 2 (named)
"{{Plural|1=|2=}}"
{{Plural}} | → |
" s"" s" |
---|---|---|
{{Plural/sandbox}} | → |
" s"" s" |
empty parameters 1 and 2 (unnamed) with spaces
"{{Plural| | }}"
{{Plural}} | → |
" s""  s" |
---|---|---|
{{Plural/sandbox}} | → |
" s"" s" |
empty parameters 1 and 2 (named) with spaces
"{{Plural|1= |2= }}"
{{Plural}} | → |
" s"" s" |
---|---|---|
{{Plural/sandbox}} | → |
" s"" s" |
empty parameters 1/2/3 (unnamed)
"{{Plural|||}}"
{{Plural}} | → |
" "" " |
---|---|---|
{{Plural/sandbox}} | → |
" "" " |
empty parameters 1/2/3 (named)
"{{Plural|1=|2=|3=}}"
{{Plural}} | → |
" "" " |
---|---|---|
{{Plural/sandbox}} | → |
" "" " |
empty parameters 1/2/3 (unnamed) with spaces
"{{Plural| | | }}"
{{Plural}} | → |
" ""  " |
---|---|---|
{{Plural/sandbox}} | → |
" "" " |
empty parameters 1/2/3 (named) with spaces
"{{Plural|1= |2= |3= }}"
{{Plural}} | → |
" "" " |
---|---|---|
{{Plural/sandbox}} | → |
" "" " |
"{{Plural| 2 | page }}"
{{Plural}} | → |
" 2 page s"" 2  page s" |
---|---|---|
{{Plural/sandbox}} | → |
"2 page s""2  page s" |
"{{Plural|1= 2 |2= page }}"
{{Plural}} | → |
"2 pages""2 pages" |
---|---|---|
{{Plural/sandbox}} | → |
"2 pages""2 pages" |
"{{Plural| 1 | ox | oxen }}"
{{Plural}} | → |
" 1 ox"" 1  ox" |
---|---|---|
{{Plural/sandbox}} | → |
"1 ox""1  ox" |
"{{Plural|1= 1 |2= ox |3= oxen }}"
{{Plural}} | → |
"1 ox""1 ox" |
---|---|---|
{{Plural/sandbox}} | → |
"1 ox""1 ox" |
"{{Plural| 2 | ox | oxen }}"
{{Plural}} | → |
" 2 oxen"" 2  oxen" |
---|---|---|
{{Plural/sandbox}} | → |
"2 oxen""2  oxen" |
"{{Plural|1= 2 |2= ox |3= oxen }}"
{{Plural}} | → |
"2 oxen""2 oxen" |
---|---|---|
{{Plural/sandbox}} | → |
"2 oxen""2 oxen" |