Template:MultiPartyBar: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 13: Line 13:
{{!}} 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;"{{!}}
{{!}} style="background:lightgray; width:{{#expr:{{{Totseats}}}-{{{P1seats}}}{{#if:{{{P2gov|}}}|-{{{P2seats}}}|}}{{#if:{{{P3gov|}}}|-{{{P3seats}}}|}}{{#if:{{{P4gov|}}}|-{{{P4seats}}}|}}}}px;"{{!}}
{{!}} style="background:lightgray; width:{{#expr:{{{Totseats}}}-{{{P1seats}}}{{#if:{{{P2gov|}}}|-{{{P2seats}}}|}}{{#if:{{{P3gov|}}}|-{{{P3seats}}}|}}{{#if:{{{P4gov|}}}|-{{{P4seats}}}|}}}}px;"{{!}}
{{!}}-
{{!}}
{{!)}}|}}
{{!)}}|}}
{| style="width:{{{width|500}}}px; border-collapse:collapse;" cellpadding=0
{| style="width:{{{width|500}}}px; border-collapse:collapse;" cellpadding=0

Revision as of 19:54, 8 November 2020

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