Difference between revisions of "Template:Bar chart/bar/doc"
< Template:Bar chart | bar
Jump to navigation
Jump to search
imported>Dpleibovitz (Add missing category) |
imported>Sardanaphalus (sandbox non-categorization) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- Categories | + | <!-- Categories at the bottom of this page, please --> |
This template can be used to create bars for a horizontal bar chart. | This template can be used to create bars for a horizontal bar chart. | ||
| + | |||
== Usage == | == Usage == | ||
:<code><nowiki>{{</nowiki>Bar chart/bar| ''data'' | ''total'' | width = ''width'' | width_units = ''width_units'' | color = ''color'' <nowiki>}}</nowiki></code> | :<code><nowiki>{{</nowiki>Bar chart/bar| ''data'' | ''total'' | width = ''width'' | width_units = ''width_units'' | color = ''color'' <nowiki>}}</nowiki></code> | ||
| Line 15: | Line 16: | ||
* {{tl|Composition bar}} – used for displaying the number of seats held by a political party, or other single statistics. | * {{tl|Composition bar}} – used for displaying the number of seats held by a political party, or other single statistics. | ||
| − | <includeonly> | + | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
| − | <!-- Categories | + | | <!-- Categories below this line, please: --> |
[[Category:Bar chart templates]] | [[Category:Bar chart templates]] | ||
| + | |||
[[bs:Šablon:Trakasti grafikon/traka]] | [[bs:Šablon:Trakasti grafikon/traka]] | ||
[[mk:Шаблон:Столбен графикон/столб]] | [[mk:Шаблон:Столбен графикон/столб]] | ||
[[ur:سانچہ:Bar chart/bar]] | [[ur:سانچہ:Bar chart/bar]] | ||
| − | </includeonly> | + | }}</includeonly> |
Revision as of 22:23, 18 January 2015
| 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.
- {{Composition bar}} – used for displaying the number of seats held by a political party, or other single statistics.