सामग्री पर जाएँ

साँचा:Percent and number

मुक्त ज्ञानकोश विकिपीडिया से
परिचय का प्रतीक साँचा परिचय[देखें] [संपादन] [इतिहास] [पर्ज]

This template may be used to generate a percentage of total followed by the number. For the reverse, see {{number and percent}}.

  • {{percent and number|number|total}}
  • {{percent and number|number|total|decimals to round to (zero or greater)}}

For two-column table output, use |disp=table

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 override the default right alignment in table mode, use |align=left or |align=center.

{{percent and number|3333|20000}} &&&&&&&&&&&&&017.&&&&&017% (3,333)

{{percent and number|3333|20000|3}} &&&&&&&&&&&&&016.66500016.665% (3,333)

{{percent and number|3,333|20,000}} 0एक्स्प्रेशन त्रुटि: अनपेक्षित < ऑपरेटर।.एक्स्प्रेशन त्रुटि: अनपेक्षित < ऑपरेटर।एक्स्प्रेशन त्रुटि: अनपेक्षित उद्गार चिन्ह ","% (3,333)

{{percent and number|3,333|20,000|3}} 0एक्स्प्रेशन त्रुटि: अनपेक्षित < ऑपरेटर।.एक्स्प्रेशन त्रुटि: अनपेक्षित < ऑपरेटर।एक्स्प्रेशन त्रुटि: अनपेक्षित उद्गार चिन्ह ","% (3,333)

{{percent and number|111|1000|4|pad=yes}} &&&&&&&&&&&&&011.10000011.1000% (111)

{{percent and number|3333|20000|disp=br()}} &&&&&&&&&&&&&017.&&&&&017%
(3,333)

{| class="wikitable sortable"
|-
! Location !! Percentage !! Population 
|-
| City A || {{percent and number|5000|12000|disp=table}}
|-
| City B || {{percent and number|6500|12000|disp=table}}
|-
| City C || {{percent and number|500|12000|disp=table}}
|}
LocationPercentagePopulation
City A&&&&&&&&&&&&&042.&&&&&042%5,000
City B&&&&&&&&&&&&&054.&&&&&054%6,500
City C&&&&&&&&&&&&&&04.&&&&&04%500