Шаблон:Percentage CSS
Зоҳир
This template is a replacement of {{percentage}} for use in CSS expressions (such as layout widths) or similar contexts where a plain numeric value is desired. Use {{percentage}} in article text.
Usage
{{percentage CSS | numerator | denominator }}
Examples
- {{Percentage CSS | 1 | 3 }} yields 33.333333333333%
- {{Percentage CSS | 20 }} yields 20%
Because this template's values are not supposed to be read by humans but machines, this template ignores the rounding parameter (unlike {{percent}}) and instead always returns the full precision.
See also
{{Percent}}
– for use in article text