Template:ParlSeats: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 4: Line 4:
     |{{{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}}|}}
{{#if:{{{line|}}}|{{Image label end}}|}}<noinclude>
<noinclude>
[[Category: Politics templates]]
[[Category: Politics templates]]
{{documentation}}
{{documentation}}</noinclude>
</noinclude>

Latest revision as of 22:09, 6 February 2021

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}}
|