Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
Template:Composition bar/doc
(section)
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!
== Usage == :<code><nowiki>{{</nowiki>Composition bar|''amount''|''total''|''bar-color''|color=''color''|background-color=''background-color''|per=0/1<nowiki>}}</nowiki></code> * ''amount'' is the number of sub-units * ''total'' is the total number of sub-units possible * ''bar-color'' (default is light grey) is the background color of the left part of the bar - a valid βββweb colorβββ, which can be specified by name, as a hex triplet (#rrbbgg), or rgb triplet (rgb(0β255,0β255,0β255)).<br />In the case of political parties, most will have their logo color available in political party templates. * ''color'' (default is black) is the text colour - a valid web color. * ''background-color'' (default is very light grey) is the background color of the right part of the bar - a valid web βββweb colorβββ. * ''width'' is the width of the bar in px. * ''per'' (default is false), when set to 1 (true), adds a percentage to the bar as well. If the bar-colour is dark, then the text may have insufficient contrast to show clearly for some readers. The text colour may be changed to white by specifying the color parameter. The background colour for the right part of the bar may then be too light to give sufficient contrast with white text, in which case the background-color parameter may be used to provide a dark background for that part of the bar. See the first three examples below. [http://snook.ca/technical/colour_contrast/colour.html Snook's Colour Contrast Check] may be used to check compliance with WCAG guidelines for contrast.
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