ထႅမ်းပလဵတ်ႉ:Number and percent
This template may be used to generate a number and a percentage of total. For the reverse, see {{percent and number}}.
လွင်ႈၸႂ်ႉတိုဝ်း
[မႄးထတ်းငဝ်ႈငႃႇ]{{number and percent|number|total}}
{{number and percent|number|total|decimals to round to (zero or greater)}}
Optional parameters
[မႄးထတ်းငဝ်ႈငႃႇ]For two-column table output, use |disp=table
To show the total with the table option, use |total=yes
To insert a line break before the parenthetical expression, use |disp=br()
To add a prefix to the numbers, use |prefix=
; for example, prefix=$
To add a suffix to the number, use |suffix=
; for example, suffix= units
To pad the result with zeros to achieve the desired precision, use |pad=yes
.
To specify a number n of significant figures for the percentage, use |sigfig=n
.
To specify a percentage suffix (e.g. per cent) other than %, use |%=suffix
, e.g. |%=per cent
.
To override the scientific notation default for very large and very small numbers, use |nonscinote=yes
.
To override the default right alignment in table mode, use |align=left
or |align=center
.
The percent font size may be specified with |size=
, e.g. |size=small
, |size=90%
.
တူဝ်ယၢင်ႇပိုၼ်ႉထၢၼ်
[မႄးထတ်းငဝ်ႈငႃႇ]{{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,333
(17%)
ၼႄလွၵ်းသဵၼ်ႈ
[မႄးထတ်းငဝ်ႈငႃႇ]{| class="wikitable sortable"
|-
! Location !! Population !! Percentage
|-
| City A || {{number and percent|5000|12000|disp=table}}
|-
| City B || {{number and percent|6500|12000|disp=table}}
|-
| City C || {{number and percent|500|12000|disp=table}}
|}
Location | Population | Percentage |
---|---|---|
City A | 5,000 | 42% |
City B | 6,500 | 54% |
City C | 500 | 4% |
တူၺ်းပႃး
[မႄးထတ်းငဝ်ႈငႃႇ]- {{percentage}}
- {{percent and number}}
ၽိုၼ်ၵႅမ်မိုဝ်းလၢႆးၸႂ်ႉတိုဝ်း (documentation)တီႈၽၢႆႇၼိူဝ်ၼႆႉ လုၵ်ႉတီႈ ထႅမ်းပလဵတ်ႉ:Number and percent/doc သေ ၶၢႆႉသႂ်ႇၶဝ်ႈ (ႁဵတ်း transclude ဝႆႉၶႃႈဢေႃႈ။ (မႄးထတ်း | ပိုၼ်း) ၽူႈၸိူဝ်းမႄးထတ်းၶဝ် ၸၢင်ႈၸၢမ်းတူၺ်းလႆႈ ၸိူဝ်းပဵၼ်ၼႃႈလိၵ်ႈ sandbox (သၢင်ႈ | ငဝ်းမိူၼ်) လႄႈ testcases (သၢင်ႈ) ႁင်း ထႅမ်းပလဵတ်ႉဢၼ်ၼႆႉ လႆႈယူႇၶႃႈ။ သႂ်ႇပိူင်ထၢၼ်ႈ ၵႃႈတီႈ ၼႃႈလိၵ်ႈၽႄ /doc လႄႈ။ ၼႃႈလိၵ်ႈၽႄ ႁင်း ထႅမ်းပလဵတ်ႉ ဢၼ်ၼႆႉ။. |