Template:Progress %
From Guild Wars Wiki
Jump to navigationJump to search
0
Usage[edit]
- {{progress %|min|current|max}}
- Computes the percentage (current-min)/(max-min), limited to 0-100. Ideally, min <= current <= max.
- The percentage is 100 for current >= max.
- The percentage is 0 for current < min, if min < max.
- The result is a whole number from 0 to 100; no % sign is returned.
Technical note: There is no test for division by zero, because min <= current < max implies min < max.