Template:Bar log: Difference between revisions
Template page
More actions
Created page with "<includeonly> {{bar pixel|{{{2|<noinclude>2</noinclude>}}}|{{{3|}}}|{{#expr:ln({{#if:{{{4|}}}|{{{4|}}}+1|100}})/ln({{#if:{{{1|}}}|{{{1|}}}|2}})*30}}||{{#if:{{{6|}}}|{{{6|}}}|{{{4|}}}{{{5|}}}}}}}</includeonly><noinclude> {{Documentation}} </noinclude>" |
(No difference)
|
Latest revision as of 02:13, 19 February 2025
For use with {{Bar box}}.
Usage
{{Bar log|log base|row label|colour|value|value suffix|optional value label}}
Identical to {{Bar pixel}}, except the width is calculated as logbase(value)× 30. Default base is 2, which makes a regular sidebar sized graph for values <100. Increase the base to handle larger numbers and make the bars shorter. As with {{Bar pixel}}, when value + value_suffix = optional_value_label
, they display the same:
Examples
{{Bar box
|float=right
|title=Quantity of stuff
|titlebar=#DDD
|left1=kinds of stuff
|right2=pcs.
|width=400px
|bars=
{{bar log|10|Foobar|red|33|,213}}
{{bar log|10|Barfoo|green|123|,123}}
{{bar log|10|Bazbar|blue|910|,121}}
{{bar log|10|Foobaz|orange|2||1,854}}
|caption=Some stuff displayed on a log scale.
}}