Template:Composition bar: Difference between revisions

Per talk
(Undid revision 675737803 by Alakzi (talk) - return this template to status quo until consensus is garnered - see the talk page)
(Per talk)
Line 1:
<div style="borderwidth: {{{border-width|1px100}}}px;"><span solid class="nowrap">{{formatnum:{border-color{{1|#c0c0c050}}}}}; background-color:/ {{formatnum:{background-color{{2|100}}}}}{{#f0f0f0if:{{{per|}}}|&emsp; width({{#expr: (({{{width1|50}}}/{{{2|100}}}px;)*100) heightround 0}}%)}}</span><div style="border: 1.5em;1px solid position:relative#aaa; top{{#if: -{{{borderbackground-widthcolor|1px}}}|background-color: {{{background-color}}};}} height: 1em; position: relative;"><div style="position: absolute; background-color: {{#if:{{bothBoth|{{{4|}}}|{{{5|}}}}}
| |rgb({{#expr:255*{{{3|255}}}}}, {{#expr:255*{{{4|0}}}}}, {{#expr:255*{{{5|0}}}}})
| |{{{hex|{{{3|#CCCCCC}}}}}}
}}; width: {{#expr:(({{{1|50}}}/{{{2|100}}})*100) round 0}}%; height: 1em;"></div></div></div><noinclude>
}}; 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}}}}}&nbsp;/&nbsp;{{formatnum:{{{2|100}}}}}{{#if:{{{per|}}}|&nbsp;&nbsp;&nbsp;<span style="{{{perstyle|}}}">({{#expr:(({{{1|50}}}/{{{2|100}}})*100)round 0}}%)</span>}}</div></div><noinclude>
{{Documentation}}</noinclude>
</noinclude>
Anonymous user