Template:Percentage/testcases
From Wikipedia, the free encyclopedia
Jump to navigationJump to search
![]() | This is the template test cases page for the sandbox of Template:Percentage. 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: |
Default
[edit]Blank
33
1/3
1/4
10000/3
10000/4
10000/3 %= percent
10000/4 %= percent
Expressions
[edit]Blank
33+5
1/(3+3)
1/(4+4)
Commas
[edit]Blank
1,000/5,000
1,000/3,000,000
5,000/2,000
3,000,000/1,100
1,234/4,567
Precision
[edit]1/3 round 5
1/4 round 5
1/3 round 5 %= percent
1/4 round 5 %= percent
1/3 round -1
1/4 round -1
1/3 round 1.9
1/4 round 1.9
Pad
[edit]Blank pad=5
33 pad=5
33/100 pad=2
1/3 pad=y
1/4 pad=y
1/3 round 5 pad=y
1/4 round 5 pad=y
1/3 round 5 pad=y %= percent
1/4 round 5 pad=y %= percent
1/3 round -1 pad=y
1/4 round -1 pad=y
1/3 round 1.9 pad=y
1/4 round 1.9 pad=y
Sigfig
[edit]33 sigfig=5
1/3 sigfig=5
1/4 sigfig=5
1/4 sigfig=5 %= percent
1/3000 sigfig=5
1/4000 sigfig=5
1/30000000 sigfig=5
1/40000000 sigfig=5