Template:ParlSeats: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
<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:{{{ | |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}}}}} / {{formatnum:{{{2|100}}}}}}}</div></div></div> | ||
{{#if:{{{line|}}}|{{Image label end}}|}} | {{#if:{{{line|}}}|{{Image label end}}|}} | ||
<noinclude> | <noinclude> | ||
Revision as of 18:23, 1 December 2020
50 / 100
[edit] []
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}}
{{ParlSeats|80|180|line=y|hidenumber=y}}
| The above documentation is transcluded from Template:ParlSeats/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |