ਫਰਮਾ:Number and percentThis template may be used to generate a number and a percentage of total. For the reverse, see {{percent and number}}. Usage
Optional parametersFor two-column table output, use To show the total with the table option, use To insert a line break before the parenthetical expression, use To add a prefix to the numbers, use To add a suffix to the number, use To pad the result with zeros to achieve the desired precision, use To specify a number n of significant figures for the percentage, use To specify a percentage suffix (e.g. per cent) other than %, use To override the scientific notation default for very large and very small numbers, use To override the default right alignment in table mode, use The percent font size may be specified with Basic examples
Table display{| 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}} |}
See also
|
Portal di Ensiklopedia Dunia