Template:MultiPartyBar: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 9: Line 9:
{{!}} 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;"|
|}
|}{{#if:{{{P1gov|}}}|<br>{{(!}} style="width:{{{width|500}}}px; height:32px; text-align:center; border-collapse:collapse; border-style:solid; border-width:1px; border-color:#c0c0c0;" cellpadding=0px
{{#if:{{{P1gov|}}}|<br>{{(!}} style="width:{{{width|500}}}px; height:32px; text-align:center; border-collapse:collapse; border-style:solid; border-width:1px; border-color:#c0c0c0;" cellpadding=0px
{{!}}-
{{!}}-
{{!}} style="background:darkgray; width:{{#expr:{{{P1seats}}}{{#if:{{{P2gov|}}}|+{{{P2seats}}}|}}{{#if:{{{P3gov|}}}|+{{{P3seats}}}|}}{{#if:{{{P4gov|}}}|+{{{P4seats}}}|}}}}px;"{{!}}
{{!}} style="background:darkgray; width:{{#expr:{{{P1seats}}}{{#if:{{{P2gov|}}}|+{{{P2seats}}}|}}{{#if:{{{P3gov|}}}|+{{{P3seats}}}|}}{{#if:{{{P4gov|}}}|+{{{P4seats}}}|}}}}px;"{{!}}

Revision as of 19:54, 8 November 2020

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