Difference between revisions of "Template:Bar chart/bar/doc"
< Template:Bar chart | bar
Jump to navigation
Jump to search
imported>Kozuch m (moved Template:Bar graph/bar/doc to Template:Bar chart/bar/doc) |
imported>Plastikspork (resolve redirects) |
||
| Line 2: | Line 2: | ||
<!-- Categories and interwikis go at the bottom of this page. --> | <!-- Categories and interwikis go at the bottom of this page. --> | ||
| − | This template can be used to create bars for a horizontal bar | + | This template can be used to create bars for a horizontal bar chart. |
== Usage == | == Usage == | ||
| − | :<code><nowiki>{{</nowiki>Bar | + | :<code><nowiki>{{</nowiki>Bar chart/bar| ''data'' | ''total'' | width = ''width'' | width_units = ''width_units'' | color = ''color'' <nowiki>}}</nowiki></code> |
* <code>''width''</code> is a number which determines the maximum width of the bar | * <code>''width''</code> is a number which determines the maximum width of the bar | ||
* <code>''width_units''</code> are the units associated with the width (em, px, or %). The default is em. | * <code>''width_units''</code> are the units associated with the width (em, px, or %). The default is em. | ||
| Line 12: | Line 12: | ||
== See also == | == See also == | ||
| − | * {{tl|Bar | + | * {{tl|Bar chart}} – uses this template to generate bar charts. |
* {{tl|Infobox political party/seats}} – used for displaying the number of seats held by a political party. | * {{tl|Infobox political party/seats}} – used for displaying the number of seats held by a political party. | ||
Revision as of 20:48, 16 October 2011
| This is a documentation subpage for Template:Bar chart/bar. It contains usage information, categories and other content that is not part of the original template page. |
This template can be used to create bars for a horizontal bar chart.
Usage
{{Bar chart/bar| data | total | width = width | width_units = width_units | color = color }}
widthis a number which determines the maximum width of the barwidth_unitsare the units associated with the width (em, px, or %). The default is em.dataandtotalare used to determine the width of the bar usingdata/totalto compute a percentage ofwidth.datais also used for the label on each bar.coloris used to override the default bar color.
See also
- {{Bar chart}} – uses this template to generate bar charts.
- {{Infobox political party/seats}} – used for displaying the number of seats held by a political party.