Template:percent

From Thesaurus Inscriptionum Raeticarum
Revision as of 07:52, 21 September 2014 by Martin Braun (talk | contribs)
Jump to navigationJump to search

This template serves to calculate and display percentages. It awaits two values: the fraction number and the sum. An optional third value can be given as number of positions after the comma (default is 2).

Examples

  • The code {{percent|5|20}} will display "25.{{#pad: |2|0|right }} %".
  • The code {{percent|5|20|3}} will display "25.{{#pad: |3|0|right }} %".