Шаблон:Inverse-percentage/doc
Зоҳир
This template is identical to {{percentage}} (in fact, it uses it for calculations) but allows specifying the number of missing items from a total, rather than the number of completed items. For instance:
{{Inverse-percentage|total=100|missing=90}}
yields 10%
The parameters can be passed anonymously, with the total as the first parameter and the missing items as the second parameter:
{{Inverse-percentage|100|90}}
→ 10%
There's an optional round=
parameter, which defaults to 0. It can be also be used as the 3rd unnamed parameter:
{{Inverse-percentage|total=3|missing=1|round=2}}
→ 66,67%{{Inverse-percentage|3|1|4}}
→ 66,6667%
Aliases
[вироиши манбаъ]- {{inv-pct}}