Template:Composition bar: Difference between revisions

Undid revision 675737803 by Alakzi (talk) - return this template to status quo until consensus is garnered - see the talk page
(Reverted 1 edit by Paine Ellsworth (talk): There's nothing "bold" about addressing accessibility. WP:BIKESHEDDING can take place at a leisurely pace. (TW))
(Undid revision 675737803 by Alakzi (talk) - return this template to status quo until consensus is garnered - see the talk page)
Line 1:
<div style="widthborder: {{{border-width|1001px}}}px;"><span class="nowrap">solid {{formatnum{border-color|#c0c0c0}}}; background-color: {{{1background-color|50}}#f0f0f0}}}; /width: {{formatnum:{{{2width|100}}}}}{{#ifpx; height: 1.5em; position:relative; top: -{{{perborder-width|1px}}}|&emsp"><div style="position: absolute;( background-color:{{#exprif:(({{both|{1{{4|50}}}/|{{{25|100}}})*100) round 0}}%)}}</span>
| |rgb({{#expr:255*{{{3|255}}}}}, {{#expr:255*{{{4|0}}}}}, {{#expr:255*{{{5|0}}}}})
<div style="border: 1px solid #aaa; {{#if:{{{background-color|}}}|background-color: {{{background-color}}};}} height: 1em; position: relative;"><div style="background-color: {{#if:{{Both|{{{4|}}}|{{{5|}}}}}
| |{{{hex|{{{3|#CCCCCC}}}}}}
| 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}}}}}&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>
| {{{hex|{{{3|#CCCCCC}}}}}}
{{Documentation}}
}}; width: {{#expr:(({{{1|50}}}/{{{2|100}}})*100) round 0}}%; height: 1em;"></div></div></div><noinclude>
{{Documentation}}</noinclude>