Difference between revisions of "Template:Brick chart/doc"
Jump to navigation
Jump to search
imported>WOSlinker (→Examples: update links) |
imported>Neutrality |
||
| Line 35: | Line 35: | ||
{{Brick chart | {{Brick chart | ||
|caption = religion in the Czech republic | |caption = religion in the Czech republic | ||
| − | |label1 = [[ | + | |label1 = [[Atheism|Atheists]] and [[Agnosticism|agnostics]] |
|value1 = 59 | |value1 = 59 | ||
|color1 = silver | |color1 = silver | ||
| − | |label2 = [[Catholic]] | + | |label2 = [[Catholic Church|Catholics]] |
|value2 = 26.8 | |value2 = 26.8 | ||
|color2 = #008 | |color2 = #008 | ||
| − | |label3 = [[ | + | |label3 = [[Protestantism|Protestants]] |
|value3 = 2.5 | |value3 = 2.5 | ||
|color3 = #08f | |color3 = #08f | ||
Revision as of 03:02, 14 May 2010
| 40px | This is a documentation subpage for Template:Brick chart. It contains usage information, categories and other content that is not part of the original template page. |
Draws "brick charts" (poor man's substitute for pie charts), useful for showing percentages, seats in a legislature, etc.
Parameters
- value1-value9 = values for each category
- label1-label9 = labels for each category, displayed in the legend
- color1-color9 = html colors to be used for each category, defaults to various colours
- caption = the caption for the legend
- total = the total number of bricks (defaults to 100)
- stride = the number of bricks in each row, defaults to 10
- unit = unit to display in the legend, default to %
- width = the width of the chart in pixels, the height is calculated automatically
- thumb = (left|right) where to thumb the chart, defaults to right
Examples
Expression error: Unrecognized punctuation character "[".<div style="
Expression error: Unrecognized punctuation character "[".<div style="
background:blue; float:left; clear:none; height:10%; overflow:hidden; width:Expression error: Unrecognized punctuation character "[".%;">
background:yellow; float:left; clear:none; height:10%; overflow:hidden; width:Expression error: Unrecognized punctuation character "[".%;">
Expression error: Unrecognized punctuation character "[".<div style="
background:magenta; float:left; clear:none; height:10%; overflow:hidden; width:Expression error: Unrecognized punctuation character "[".%;
"> Expression error: Unrecognized punctuation character "[".<div style="
background:cyan; float:left; clear:none; height:10%; overflow:hidden; width:Expression error: Unrecognized punctuation character "[".%;
"> Expression error: Unrecognized punctuation character "[".
one - 42 %
two - 32 %
three - 12 %
four - 3 %
five - 2 %
six - 1 %
other - 8 %
Expression error: Unrecognized punctuation character "[".<div style="
Expression error: Unrecognized punctuation character "[".
background:#08f; float:left; clear:none; height:10%; overflow:hidden; width:Expression error: Unrecognized punctuation character "[".%;">
religion in the Czech republic
Expression error: Unrecognized punctuation character "[".<div style="
Expression error: Unrecognized punctuation character "[".<div style="
background:red; float:left; clear:none; height:5%; overflow:hidden; width:Expression error: Unrecognized punctuation character "[".%;">
background:yellow; float:left; clear:none; height:5%; overflow:hidden; width:Expression error: Unrecognized punctuation character "[".%;">
Expression error: Unrecognized punctuation character "[".<div style="
background:#800; float:left; clear:none; height:5%; overflow:hidden; width:Expression error: Unrecognized punctuation character "[".%;
"> Expression error: Unrecognized punctuation character "[".<div style="
background:green; float:left; clear:none; height:5%; overflow:hidden; width:Expression error: Unrecognized punctuation character "[".%;
"> Expression error: Unrecognized punctuation character "[".
Seats in the German federal parliamet
Christian Democratic Union - 180 seats
Christian Social Union of Bavaria - 46 seats
Social Democratic Party of Germany - 222 seats
Free Democratic Party - 61 seats
The Left Party.PDS - 54 seats
Alliance '90/The Greens - 51 seats