{{number and percent|number|total}}
{{number and percent|number|total|decimals to round to (zero or greater)}}
|disp=table
|total=yes
|disp=br()
|prefix=
; for example, prefix=$
|suffix=
; for example, suffix= units
|pad=yes
.|sigfig=n
.|%=suffix
(e.g. |%=per cent
).|nonscinote=yes
.|align=left
or |align=center
.{{number and percent|3333|20000}}
→ 3,333 (17%){{number and percent|3333|20000|3}}
→ 3,333 (16.665%){{number and percent|3,333|20,000}}
→ 3,333 (17%){{number and percent|3,333|20,000|3}}
→ 3,333 (16.665%){{number and percent|111|1000|4|pad=yes}}
→ 111 (11.1000%){{number and percent|3333|20000|disp=br()}}
→ 3,333Location | Population | Percentage |
---|---|---|
City A | 5,000 | 42% |
City B | 6,500 | 54% |
City C | 500 | 4% |
The above documentation is transcluded from Template:Number and percent/doc. (edit | history) Editors can experiment in this template's sandbox(edit | diff) and testcases(edit) pages. Please add categories to the /doc subpage. Subpages of this template. |