This is the template test cases page for the sandbox of Template:Bar chart. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Single data column
edit{{Bar chart}} | ||||||||||||||||
| ||||||||||||||||
{{Bar chart/sandbox}} | ||||||||||||||||
|
Two data columns
edit{{Bar chart}} | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
{{Bar chart/sandbox}} | ||||||||||||||||||||||||||||||
|
Two data columns with total
edit{{Bar chart}} | |||||||||||||||
| |||||||||||||||
{{Bar chart/sandbox}} | |||||||||||||||
|
Two data columns with data missing from the end of the first column (use a dash instead; see below)
edit{{Bar chart}} | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
{{Bar chart/sandbox}} | ||||||||||||||||||||||||||
|
Two data columns with data missing from the end of the first column, using – for empty cells
edit{{Bar chart}} | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
{{Bar chart/sandbox}} | ||||||||||||||||||||||||||||||
|
Many data columns with total
edit{{Bar chart}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Bar chart/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Individual bar color (future feature)
editRule | Word counts |
---|---|
Data 1 test | |
G2 | |
G3 | |
G4 | |
G5 | |
G6 | |
G7 | |
G8 | |
G9 | |
G10 | |
G11 | |
G12 | |
G13 | |
G14 |
Sortable (future feature)
editNot implemented yet. |
Rule | Word counts |
---|---|
G1 | |
G2 | |
G3 | |
G4 | |
G5 | |
G6 | |
G7 | |
G8 | |
G9 | |
G10 | |
G11 | |
G12 | |
G13 | |
G14 |
Live template sans params
editCountry | Population |
---|---|
Tunisia | |
Saudi Arabia | |
Russia | |
Jordan | |
Morocco | |
France | |
Turkey | |
Lebanon | |
Germany | |
Libya | |
United Kingdom | |
Indonesia | |
Uzbekistan | |
Pakistan |
Live with bar_width param only
edit- bar_width = 15
Country | Population |
---|---|
Tunisia | |
Saudi Arabia | |
Russia | |
Jordan | |
Morocco | |
France | |
Turkey | |
Lebanon | |
Germany | |
Libya | |
United Kingdom | |
Indonesia | |
Uzbekistan | |
Pakistan |
Live with two params
edit- table_width = 30
- bar_width = 15
Country | Population |
---|---|
Tunisia | |
Saudi Arabia | |
Russia | |
Jordan | |
Morocco | |
France | |
Turkey | |
Lebanon | |
Germany | |
Libya | |
United Kingdom | |
Indonesia | |
Uzbekistan | |
Pakistan |
Sandbox
edit- Sandbox bar_width params set to 15em
Country | Population |
---|---|
Tunisia | |
Saudi Arabia | |
Russia | |
Jordan | |
Morocco | |
France | |
Turkey | |
Lebanon | |
Germany | |
Libya | |
United Kingdom | |
Indonesia | |
Uzbekistan | |
Pakistan |