Template:MultiPartyBar: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| style="width:{{{width|500}}}px; height: | {{#if:{{{line|}}}|{{Image label begin|width=0px|float=none|image=Pixel.png|font-size=100%}} | ||
{{Image label|text=<span style="font-size: 40px; color:#999999; font-weight:100;">{{!}}</span>|x=0.5|y={{#expr:0.06/{{{width|500}}}*500}}|scale={{#expr:{{{width|500}}}+5}}}}|}} | |||
{| 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:{{{P1col|#ff3a3a}}}; width:{{#ifeq:{{{P1seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P1seats|35}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P1dark|}}}|white|black}};"| <big>'''{{{P1seats|35}}}'''</big> | | 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}};"| <big>'''{{{P1seats|35}}}'''</big> | ||
| 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> '''{{{P2seats|30}}}'''</big> | | 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> '''{{{P2seats|30}}}'''</big> | ||
Line 8: | Line 8: | ||
{{!}} style="background:{{{P5col}}}; width:{{#ifeq:{{{P5seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P5seats}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P5dark|}}}|white|black}};" {{!}} <big> '''{{{P5seats}}}'''</big> |}} | {{!}} style="background:{{{P5col}}}; width:{{#ifeq:{{{P5seats}}}|0|1|{{#expr:{{{width|500}}}*{{{P5seats}}}/{{{Totseats|100}}}}}}}px; text-align: center; color: {{#if:{{{P5dark|}}}|white|black}};" {{!}} <big> '''{{{P5seats}}}'''</big> |}} | ||
| 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|}}}|{{(!}} style="width:{{{width|500}}}px; height:10px; text-align:center; border-collapse:collapse; border-style:solid; border-width:1px; border-color:#c0c0c0;" cellpadding=0px | ||
{| style="width:{{{width|500}}}px;" | {{!}}- | ||
{{!}} style="background:darkgray; width:{{#if:{{{Govseats|}}}|{{{Govseats}}}|{{#expr:{{{P1seats}}}{{#if:{{{P2gov|}}}|+{{{P2seats}}}|}}{{#if:{{{P3gov|}}}|+{{{P3seats}}}|}}{{#if:{{{P4gov|}}}|+{{{P4seats}}}|}}}}}}px;"{{!}}<small>'''Government ({{#if:{{{Govseats|}}}|{{{Govseats}}} seats|{{#expr:{{{P1seats}}}{{#if:{{{P2gov|}}}|+{{{P2seats}}}|}}{{#if:{{{P3gov|}}}|+{{{P3seats}}}|}}{{#if:{{{P4gov|}}}|+{{{P4seats}}}|}}}}}} seats)'''</small> | |||
{{!}} style="background:lightgray; width:{{#if:{{{Govseats|}}}|{{#expr:{{{Totseats}}}-{{{Govseats}}}}}|{{#expr:{{{Totseats}}}-{{{P1seats}}}{{#if:{{{P2gov|}}}|-{{{P2seats}}}|}}{{#if:{{{P3gov|}}}|-{{{P3seats}}}|}}{{#if:{{{P4gov|}}}|-{{{P4seats}}}|}}}}}}px;"{{!}}<small>'''Opposition ({{#if:{{{Govseats|}}}|{{#expr:{{{Totseats}}}-{{{Govseats}}}}} seats|{{#expr:{{{Totseats}}}-{{{P1seats}}}{{#if:{{{P2gov|}}}|-{{{P2seats}}}|}}{{#if:{{{P3gov|}}}|-{{{P3seats}}}|}}{{#if:{{{P4gov|}}}|-{{{P4seats}}}|}}}} seats}})'''</small> | |||
{{!)}}|}}{{#if:{{{hidenames|}}}|| | |||
{{!}}bgcolor={{{P4col}}} width=5px{{!}} {{!!}}style="width:{{#ifeq:{{{P4seats}}}|0|1|{{#expr:({{{width|500}}}*{{{P4seats}}}/{{{Totseats|100}}})-5}}}}px;"{{!}}'''{{{P4name}}}'''|}}{{#if:{{{P5name|}}}|<br> | {{(!}} style="width:{{{width|500}}}px; border-collapse:collapse;" cellpadding=0 | ||
{{!}}bgcolor={{{P5col}}} width=5px{{!}} {{!!}}style="width:{{#ifeq:{{{P5seats}}}|0|1|{{#expr:({{{width|500}}}*{{{P5seats}}}/{{{Totseats|100}}})-5}}}}px;"{{!}}'''{{{P5name}}}'''|}} | {{!}} style="height: 2px;"{{!}} | ||
{{!}}- | |||
|}<noinclude> | {{!}}bgcolor={{{P1col|#ff3a3a}}} width=5px{{!}} {{!!}}style="width:{{#ifeq:{{{P1seats}}}|0|1|{{#expr:({{{width|500}}}*{{{P1seats|35}}}/{{{Totseats|100}}})-5}}}}px;"{{!}} '''{{{P1name}}}''' | ||
{{!}}bgcolor={{{P2col|#0a6aa6}}} width=5px{{!}} {{!!}}style="width:{{#ifeq:{{{P2seats}}}|0|1|{{#expr:({{{width|500}}}*{{{P2seats|30}}}/{{{Totseats|100}}})-5}}}}px;"{{!}} '''{{{P2name}}}''' | |||
{{!}}bgcolor={{{P3col|#ffd966}}} width=5px{{!}} {{!!}}style="width:{{#ifeq:{{{P3seats}}}|0|1|{{#expr:({{{width|500}}}*{{{P3seats|25}}}/{{{Totseats|100}}})-5}}}}px;"{{!}} '''{{{P3name}}}'''{{#if:{{{P4name|}}}|<br> | |||
{{!}}bgcolor={{{P4col}}} width=5px{{!}} {{!!}}style="width:{{#ifeq:{{{P4seats}}}|0|1|{{#expr:({{{width|500}}}*{{{P4seats}}}/{{{Totseats|100}}})-5}}}}px;"{{!}} '''{{{P4name}}}'''|}}{{#if:{{{P5name|}}}|<br> | |||
{{!}}bgcolor={{{P5col}}} width=5px{{!}} {{!!}}style="width:{{#ifeq:{{{P5seats}}}|0|1|{{#expr:({{{width|500}}}*{{{P5seats}}}/{{{Totseats|100}}})-5}}}}px;"{{!}} '''{{{P5name}}}'''|}} | |||
{{!}} style="width:{{#expr:{{{width|500}}}*({{{Totseats|100}}}-{{{P1seats|35}}}-{{{P2seats|30}}}-{{{P3seats|25}}}-{{#if:{{{P4seats|}}}|{{{P4seats}}}|}}-{{#if:{{{P5seats|}}}|{{{P5seats}}}|}}}}px;"{{!}} | |||
{{!)}} | |||
}}{{#if:{{{line|}}}|{{Image label end}}|}}<noinclude> | |||
[[Category: Politics templates]]</noinclude> | [[Category: Politics templates]]</noinclude> |
Latest revision as of 19:45, 1 December 2020
35 | 30 | 25 |
{{{P1name}}} | {{{P2name}}} | {{{P3name}}} |