Template:MultiPartyBar: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
(Created page with "{| style="width:{{{width|500}}}px; height:30px; text-align:center; border-collapse:collapse; border-style:solid; border-width:1px; border-color:#c0c0c0;" cellpadding=0px |+...")
 
No edit summary
Line 4: Line 4:
| style="background:{{{P1col|#ff3a3a}}}; width:{{#ifeq:{{{P1seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P1seats|35}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P1dark|}}}|white|black}};"|&nbsp;<big>'''{{{P1seats|35}}}'''</big>&nbsp;
| style="background:{{{P1col|#ff3a3a}}}; width:{{#ifeq:{{{P1seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P1seats|35}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P1dark|}}}|white|black}};"|&nbsp;<big>'''{{{P1seats|35}}}'''</big>&nbsp;
| style="background:{{{P2col|#0a6aa6}}}; width:{{#ifeq:{{{P2seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P2seats|30}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P2dark|}}}|white|black}};" | <big>&nbsp;'''{{{P2seats|30}}}'''</big>&nbsp;
| style="background:{{{P2col|#0a6aa6}}}; width:{{#ifeq:{{{P2seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P2seats|30}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P2dark|}}}|white|black}};" | <big>&nbsp;'''{{{P2seats|30}}}'''</big>&nbsp;
| style="background:{{{P3col|#FFD966}}}; width:{{#ifeq:{{{P3seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P3seats|25}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P3dark|}}}|white|black}};" | <big>&nbsp;'''{{{P3seats|25}}}'''</big>&nbsp;{{#if:{{{P4name|}}}|
| style="background:{{{P3col|#FFD966}}}; width:{{#ifeq:{{{P3seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P3seats|25}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P3dark|}}}|white|black}};" | <big>&nbsp;'''{{{P3seats|25}}}'''</big>&nbsp;{{#if:{{{P4name|}}}|<br>
{{!}} style="background:{{{P4col}}}; width:{{#ifeq:{{{P4seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P4seats}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P4dark|}}}|white|black}};" {{!}} <big>&nbsp;'''{{{P4seats}}}'''</big>&nbsp;|}}{{#if:{{{P5name|}}}|
{{!}} style="background:{{{P4col}}}; width:{{#ifeq:{{{P4seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P4seats}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P4dark|}}}|white|black}};" {{!}} <big>&nbsp;'''{{{P4seats}}}'''</big>&nbsp;|}}{{#if:{{{P5name|}}}|<br>
{{!}} style="background:{{{P5col}}}; width:{{#ifeq:{{{P5seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P5seats}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P5dark|}}}|white|black}};" {{!}} <big>&nbsp;'''{{{P5seats}}}'''</big>&nbsp;|}}
{{!}} style="background:{{{P5col}}}; width:{{#ifeq:{{{P5seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P5seats}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P5dark|}}}|white|black}};" {{!}} <big>&nbsp;'''{{{P5seats}}}'''</big>&nbsp;|}}
| style="width:{{#expr:{{{width|500}}}*({{{Totseats|100}}}-{{{P1seats|35}}}-{{{P2seats|30}}}-{{{P3seats|25}}}-{{#if:{{{P4seats|}}}|{{{P4seats}}}|}}-{{#if:{{{P5seats|}}}|{{{P5seats}}}|}}}}px;"|
| style="width:{{#expr:{{{width|500}}}*({{{Totseats|100}}}-{{{P1seats|35}}}-{{{P2seats|30}}}-{{{P3seats|25}}}-{{#if:{{{P4seats|}}}|{{{P4seats}}}|}}-{{#if:{{{P5seats|}}}|{{{P5seats}}}|}}}}px;"|

Revision as of 18:49, 8 November 2020

 35   30   25 
{{{P1name}}} {{{P2name}}} {{{P3name}}}