From Wikipedia, the free encyclopedia
Content deleted Content added
|
|
|||
| Line 2: | Line 2: | ||
|
</noinclude><tr> |
</noinclude><tr> |
||
|
<td colspan=”2″ style=”padding-left: 0.4em; padding-right: 0.4em; min-width: 8em;{{#if:{{{bg|}}}|background:{{{bg}}};color:inherit;}}”>{{{1}}}</td> |
<td colspan=”2″ style=”padding-left: 0.4em; padding-right: 0.4em; min-width: 8em;{{#if:{{{bg|}}}|background:{{{bg}}};color:inherit;}}”>{{{1}}}</td> |
||
|
<td style=”width: {{{barwidth|100px}}}; border-left: solid 1px silver; border-right: solid 1px silver;{{#if:{{{bg|}}}|background:{{{bg}}};color:inherit;}}”>{{#invoke:svg|create| width = {{{3|0}}}%| alt = | #width = {{{3|0}}}| #viewBox = 0 0 {{{3|0}}} 17| #xmlns:xlink = http://www.w3.org/1999/xlink| content =<g style=”fill:{{{2|gray}}}”><rect width=”{{{3|0}}}%” height=”19″ y=”0″></rect></g>}}</td> |
<td style=”width: {{{barwidth|100px}}}; border-left: solid 1px silver; border-right: solid 1px silver;{{#if:{{{bg|}}}|background:{{{bg}}};color:inherit;}}”>{{#invoke:svg|create| width = {{{3|0}}}%| alt = | #width = {{{3|0}}}| #viewBox = 0 0 {{{3|0}}} 17| #xmlns:xlink = http://www.w3.org/1999/xlink| content =<g style=”fill:{{{2|gray}}}”><rect width=”{{{3|0}}}%” height=”19″ y=”0″></rect></g>}}</td> |
||
|
<td colspan=”{{#if:{{{note|}}}|1|2}}” style=”padding-left: 1.2em; padding-right: 0.4em; text-align: right;{{#if:{{{bg|}}}|background:{{{bg}}};color:inherit;}}”>{{{4|{{{3|0}}}%}}}</td> |
<td colspan=”{{#if:{{{note|}}}|1|2}}” style=”padding-left: 1.2em; padding-right: 0.4em; text-align: right;{{#if:{{{bg|}}}|background:{{{bg}}};color:inherit;}}”>{{{4|{{{3|0}}}%}}}</td> |
||
|
{{#if:{{{note|}}}|<td style=”padding-left: 0.4em; padding-right: 0.4em; text-align:right;{{#if:{{{bg|}}}|background:{{{bg}}};color:inherit;}}”>{{{note}}}</td>}} |
{{#if:{{{note|}}}|<td style=”padding-left: 0.4em; padding-right: 0.4em; text-align:right;{{#if:{{{bg|}}}|background:{{{bg}}};color:inherit;}}”>{{{note}}}</td>}} |
||
Latest revision as of 14:46, 7 November 2025
| {{{1}}} | 0% | |||
For use with {{Bar box}}.
{{Bar percent|row label|colour|value (width in percents)|optional value label}}
If value label is not provided, it is constructed from the percentage and “%”. This bar type also has the {{Bar percent 2}} and {{Bar percent 3}} variations which display more bars for the same row label.
{{Bar box
|float=right
|caption=distribution of stuff
|barwidth=200px
|bars=
{{bar percent|foo|red|30}}
{{bar percent|bar|green|40}}
{{bar percent|baz|blue|20}}
{{bar gap|qux}}
{{bar percent|bla|orange|8}}
{{bar percent|bla1|teal|2|1/50}}
}}
