Anonymous user
Template:Composition bar: Difference between revisions
Reverted to revision 636839438 by Technical 13 (talk): Not working as desired. (TW)
(Per talk page request, make height standard) |
(Reverted to revision 636839438 by Technical 13 (talk): Not working as desired. (TW)) |
||
Line 1:
<div style="display: {{{display|inherit}}}; border: {{{border-width|1px}}} solid {{{border-color|#c0c0c0}}}; background-color: {{{background-color|#f0f0f0}}}; width: {{{width|100}}}px; height: 1.
|rgb({{#expr:255*{{{3|255}}}}},{{#expr:255*{{{4|0}}}}},{{#expr:255*{{{5|0}}}}})
|{{{hex|{{{3|#CCCCCC}}}}}} }}; width: {{#expr:floor({{{width|100}}}*{{{1|{{#expr:{{{width|100}}}/2}}}}}/{{{2|{{{width|100}}}}}})}}px; height: 1.5em;"></div><div style="display: {{{display|inherit}}}; position: absolute; font-weight: bold; width: {{{width|100}}}px; height: 1.5em; text-align: center; z-index: 5; color: {{{color|#000}}};">{{formatnum:{{{1|50}}}}} / {{formatnum:{{{2|100}}}}}{{#if:{{{per|}}}| <span style="{{{perstyle|}}}">({{#ifeq:{{{per}}}|2|{{#expr:100-((({{{1|50}}}/{{{2|100}}})*100)round 0)}}|{{#expr:(({{{1|50}}}/{{{2|100}}})*100)round 0}}}}%)</span>}}</div></div><noinclude>
|