Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template:Bar box
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Namespaces
Template
Discussion
More
More
Page actions
Read
Edit source
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<table cellspacing="0" cellpadding="0" style="clear:{{{float|none}}};float:{{{float|none}}};border:silver solid 1px; font-size:90% padding:0.4em;margin:0.4em;width:{{{width|none}}}"> <tr style="background:{{{titlebar|none}}}"><th align="center" colspan="5"><big>{{{title|}}}</big></th></tr> <tr style="font-size:90%;height:4px"> <td style="padding:0 4px">{{{left1|}}}</td> <td style="padding:0 4px;" align="right">{{{left2|}}}</td> <td style="width:{{{barwidth|100px}}}"> <td style="padding:0 4px;width:5em" align="right">{{{right1|}}}</td> <td style="padding:0 4px;" align="right">{{{right2|}}}</td> {{{bars|}}} <tr> <td colspan="5" style="padding:4px">{{{caption|}}}</td> </tr> </table><noinclude> == Usage == <nowiki>{{</nowiki>Bar box |width = ''width of the graph'' (optional) |barwidth= ''width of the bararea'' (optional, defaults to 100px) |float = (left|right|none) (optional, defaults to none) |title = ''title of the chart'' (optional) |titlebar= ''title bar colour'' (optional, defaults to none) |left1 = ''first left column header'' (optional) |left2 = ''second left column header'' (optional) |right1 = ''first right column header'' (optional) |right2 = ''second right column header'' (optional) |bars = ''chart contents''(see below) |caption = ''caption under the chart'' (optional)} <nowiki>}}</nowiki> === Chart contents === Bar box can contain any number of bars. There are two types of bars: *Percentage bar: <nowiki>{{</nowiki>[[Template:Bar percent|bar percent]]|row label|colour|value (width in percents)|optional value label}} If value label is not provided, it is constructed from the percentage and "%". *Pixel bar: <nowiki>{{</nowiki>[[Template:Bar pixel|bar pixel]]|row label|colour|value (width in pixels)|value suffix|optional value label}} If value label is provided, value suffix is ignored. Otherwise, the value label is constructed from the value and the value suffix. This is used as shorthand. Both following examples give identical results: <nowiki>{{</nowiki>bar pixel|foo|red|12||12,345}} <nowiki>{{</nowiki>bar pixel|foo|red|12|3,45}} [[Category:Miscellaneous templates|{{PAGENAME}}]] </noinclude>
Summary:
Please make sure your edits are consistent with
MEpedia's guidelines
.
By saving changes, you agree to the
Terms of use
, and you irrevocably agree to release your contribution under the
CC BY-SA 3.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Skip to content
Main page
Browse
Become an editor
Random page
Popular pages
Abbreviations
Glossary
About MEpedia
Links for editors
Contents
Guidelines
Recent changes
Pages in need
Search
Help
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs