Jump to content

Template:Bar chart/bar/testcases

From Wikipedia, the free encyclopedia
defaults
{{bar chart/bar|250|300}}
250
250
Expanded code
<div class="bar-chart-bar" ><div class="bar-chart-bar-line" style="width:33.3em;"></div><span class="bar-chart-bar-numbers" ><span class="nowrap">250</span></span></div>
<div style="height: 1.25em; width: 40em;"><div class="bar-chart-bar-line" style="width:33.3em; "></div><span class="bar-chart-bar-numbers" style="width: 40em;"><span class="nowrap">250</span></span></div>
no params
{{bar chart/bar}}
300,000
300,000
Expanded code
<div class="bar-chart-bar" ><div class="bar-chart-bar-line" style="width:20em;"></div><span class="bar-chart-bar-numbers" ><span class="nowrap">300,000</span></span></div>
<div style="height: 1.25em; width: 40em;"><div class="bar-chart-bar-line" style="width:20em; "></div><span class="bar-chart-bar-numbers" style="width: 40em;"><span class="nowrap">300,000</span></span></div>
dash instead of number
{{bar chart/bar|–|–}}
Expanded code
<div class="bar-chart-bar" ><div class="bar-chart-bar-line" style="width:0em;"></div><span class="bar-chart-bar-numbers" ><span class="nowrap"></span></span></div>
<div style="height: 1.25em; width: 40em;"><div class="bar-chart-bar-line" style="width:0em; "></div><span class="bar-chart-bar-numbers" style="width: 40em;"><span class="nowrap"></span></span></div>