Templat:Composition bar advanced: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Tag: Pembatalan Suntingan perangkat seluler Suntingan peramban seluler Suntingan seluler lanjutan |
Tidak ada ringkasan suntingan Tag: Suntingan perangkat seluler Suntingan peramban seluler Suntingan seluler lanjutan |
||
(1 revisi perantara oleh pengguna yang sama tidak ditampilkan) | |||
Baris 1:
<includeonly><
<div style="position: absolute; font-weight:bold;width:{{{boxwidth|500}}}px;height:20px;text-align:center;z-index: 10;">{{{divisionname}}}</div>
<div style="position: absolute; left: {{#expr:floor({{{boxwidth|500}}}*(0)/{{{total|500}}})}}px; width:{{#expr:floor({{{boxwidth|500}}}*{{{party1|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}/{{{total|{{{boxwidth|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{partycolor1|#CCCCCC}}}}}}"></div>
Baris 10:
{{#if:{{{party8|}}}|<div style="position: absolute; left: {{#expr:floor({{{boxwidth|500}}}*({{{party1|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party2|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party3|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party4|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party5|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party6|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party7|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}})/{{{total|{{{boxwidth|500}}}}}})}}px; width:{{#expr:floor({{{boxwidth|500}}}*{{{party8|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}/{{{total|{{{boxwidth|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{partycolor8|#EEEEEE}}}}}}"></div>}}
{{#if:{{{party9|}}}|<div style="position: absolute; left: {{#expr:floor({{{boxwidth|500}}}*({{{party1|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party2|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party3|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party4|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party5|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party6|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party7|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party8|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}})/{{{total|{{{boxwidth|500}}}}}})}}px; width:{{#expr:floor({{{boxwidth|500}}}*{{{party9|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}/{{{total|{{{boxwidth|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{partycolor9|#CCCCCC}}}}}}"></div>}}
{{#if:{{{party10|}}}|<div style="position: absolute; left: {{#expr:floor({{{boxwidth|500}}}*({{{party1|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party2|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party3|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party4|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party5|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party6|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party7|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party8|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}+{{{party9|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}})/{{{total|{{{boxwidth|500}}}}}})}}px; width:{{#expr:floor({{{boxwidth|500}}}*{{{party10|{{if:{{{boxwidth}}}|{{#expr:floor({{{boxwidth}}}/2)}}|250}}}}}/{{{total|{{{boxwidth|500}}}}}})}}px;height:20px; background-color: {{{hex|{{{partycolor10|#EEEEEE}}}}}}"></div>}}</div></
{{Documentation}}</noinclude>
|