Template:ParlSeats: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#if:{{{line|}}}|{{Image label begin|width=0px|float=none|image=Pixel.png}}
{{#if:{{{line|}}}|{{Image label begin|width=0px|float=none|image=Pixel.png|font-size=100%}}
{{Image label|text=<span style="font-size: 30px; color:#999999; font-weight:light;">{{!}}</span>|x=0.5|y=0.235|scale=110}}|<div style="font-size:85%;">}}
{{Image label|text=<span style="font-size: 30px; color:#999999; font-weight:light;">{{!}}</span>|x=0.5|y=0.235|scale=110}}|}}
<div style="border-style:solid;border-width:1px;border-color:#c0c0c0;background-color:#f0f0f0;width:100px;height:20px;"><div style="background-color:{{#if:{{{hex|}}}
<div style="border-style:solid;border-width:1px;border-color:#c0c0c0;background-color:#f0f0f0;width:100px;height:20px;"><div style="background-color:{{#if:{{{hex|}}}
     |{{{hex|#AFD4F0}}}
     |{{{hex|#AFD4F0}}}
     |rgb({{#expr:255*{{{3|255}}}}},{{#expr:255*{{{4|0}}}}},{{#expr:255*{{{5|0}}}}})}};width:{{#expr:floor(100*{{{1|50}}}/{{{2|100}}})}}px;height:20px;"><div style="font-weight:bold;width:100px;height:22px;" align="center">{{#if:{{{hidenumber|}}}||{{formatnum:{{{1|50}}}}}&nbsp;/&nbsp;{{formatnum:{{{2|100}}}}}}}</div></div></div>
     |rgb({{#expr:255*{{{3|255}}}}},{{#expr:255*{{{4|0}}}}},{{#expr:255*{{{5|0}}}}})}};width:{{#expr:floor(100*{{{1|50}}}/{{{2|100}}})}}px;height:20px;"><div style="font-weight:bold;width:100px;height:22px;" align="center">{{#if:{{{hidenumber|}}}||{{formatnum:{{{1|50}}}}}&nbsp;/&nbsp;{{formatnum:{{{2|100}}}}}}}</div></div></div>
{{#if:{{{line|}}}|{{Image label end}}|</div>}}
{{#if:{{{line|}}}|{{Image label end}}|}}
<noinclude>
<noinclude>
[[Category: Politics templates]]
[[Category: Politics templates]]
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 18:30, 1 December 2020

50 / 100
[edit] [purge] Template documentation
{{ParlSeats|number of seats|maximum seats|hex=color|line=}}

e.g.

{{ParlSeats|75|100|hex=#df0001}}
75 / 100


{{ParlSeats|80|180|line=y}}
|
80 / 180
{{ParlSeats|80|180|line=y|hidenumber=y}}
|