Anonymous user
Template:Composition bar: Difference between revisions
m
Undid revision 675735305 by Alakzi (talk) - rv good faith edit - very bold, but should first be discussed
(Place text above bar; and rm several styling options prone to abuse) |
|||
Line 1:
<div style="
▲ | rgb({{#expr:255*{{{3|255}}}}}, {{#expr:255*{{{4|0}}}}}, {{#expr:255*{{{5|0}}}}})
}}; width: {{#expr:floor({{{width|100}}}*{{{1|{{#expr:{{{width|100}}}/2}}}}}/{{{2|{{{width|100}}}}}})}}px; height: 1.5em;"></div><div style="position: absolute; font-weight: bold; width: {{{width|100}}}px; line-height: 1.5em; text-align: center; z-index: 5; color: {{{color|#000}}};">{{formatnum:{{{1|50}}}}} / {{formatnum:{{{2|100}}}}}{{#if:{{{per|}}}| <span style="{{{perstyle|}}}">({{#expr:(({{{1|50}}}/{{{2|100}}})*100)round 0}}%)</span>}}</div></div><noinclude>
▲ | {{{hex|{{{3|#CCCCCC}}}}}}
{{Documentation}}
|