Template:Bar chart/testcases
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: |
Live template sans params[edit]
Country | Population |
---|---|
Tunisia | 3,000
|
Saudi Arabia | 2,500
|
Russia | 1,700
|
Jordan | 1,500
|
Morocco | 1,500
|
France | 1,200
|
Turkey | 1,000
|
Lebanon | 900
|
Germany | 700
|
Libya | 600
|
United Kingdom | 600
|
Indonesia | 500
|
Uzbekistan | 500
|
Pakistan | 500
|
Live with bar_width param only[edit]
- bar_width = 15
Country | Population |
---|---|
Tunisia | 3,000
|
Saudi Arabia | 2,500
|
Russia | 1,700
|
Jordan | 1,500
|
Morocco | 1,500
|
France | 1,200
|
Turkey | 1,000
|
Lebanon | 900
|
Germany | 700
|
Libya | 600
|
United Kingdom | 600
|
Indonesia | 500
|
Uzbekistan | 500
|
Pakistan | 500
|
Live with two params[edit]
- table_width = 30
- bar_width = 15
Country | Population |
---|---|
Tunisia | 3,000
|
Saudi Arabia | 2,500
|
Russia | 1,700
|
Jordan | 1,500
|
Morocco | 1,500
|
France | 1,200
|
Turkey | 1,000
|
Lebanon | 900
|
Germany | 700
|
Libya | 600
|
United Kingdom | 600
|
Indonesia | 500
|
Uzbekistan | 500
|
Pakistan | 500
|
Sandbox[edit]
- Sandbox bar_width params set to 15em
Country | Population |
---|---|
Tunisia | 3,000
|
Saudi Arabia | 2,500
|
Russia | 1,700
|
Jordan | 1,500
|
Morocco | 1,500
|
France | 1,200
|
Turkey | 1,000
|
Lebanon | 900
|
Germany | 700
|
Libya | 600
|
United Kingdom | 600
|
Indonesia | 500
|
Uzbekistan | 500
|
Pakistan | 500
|
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)[edit]
Rule | Word counts |
---|---|
Data 1 test | 20
|
G2 | 0
|
G3 | 0
|
G4 | 9
|
G5 | 1
|
G6 | 4
|
G7 | 3
|
G8 | 3
|
G9 | 0
|
G10 | 3
|
G11 | 5
|
G12 | 3
|
G13 | 124
|
G14 | 17
|
Sortable (future feature)[edit]
Not implemented yet. |
Rule | Word counts |
---|---|
G1 | 0
|
G2 | 0
|
G3 | 0
|
G4 | 9
|
G5 | 1
|
G6 | 4
|
G7 | 3
|
G8 | 3
|
G9 | 0
|
G10 | 3
|
G11 | 5
|
G12 | 3
|
G13 | 124
|
G14 | 17
|