Template:Bar chart/testcases
Jump to navigation
Jump to search
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 with these links: |
Live template sans params
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
- 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
- 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
- Sandbox bar_width params set to 15em
Single data column
{{Bar chart}} | ||||||||||||||||
| ||||||||||||||||
{{Bar chart/sandbox}} | ||||||||||||||||
Error: expandTemplate: template "Bar chart/sandbox" does not exist |
Two data columns
{{Bar chart}} | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
{{Bar chart/sandbox}} | ||||||||||||||||||||||||||||||
Error: expandTemplate: template "Bar chart/sandbox" does not exist |
Two data columns with total
{{Bar chart}} | |||||||||||||||
| |||||||||||||||
{{Bar chart/sandbox}} | |||||||||||||||
Error: expandTemplate: template "Bar chart/sandbox" does not exist |
Two data columns with data missing from the end of the first column (use a dash instead; see below)
{{Bar chart}} | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
{{Bar chart/sandbox}} | ||||||||||||||||||||||||||
Error: expandTemplate: template "Bar chart/sandbox" does not exist |
Two data columns with data missing from the end of the first column, using – for empty cells
{{Bar chart}} | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
{{Bar chart/sandbox}} | ||||||||||||||||||||||||||||||
Error: expandTemplate: template "Bar chart/sandbox" does not exist |
Many data columns with total
{{Bar chart}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{Bar chart/sandbox}} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Error: expandTemplate: template "Bar chart/sandbox" does not exist |
Individual bar color (future feature)
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)
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
|