Templat:Composition bar advanced: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Nyilvoskt (bicara | kontrib)
Membalikkan revisi 24818042 oleh Nyilvoskt (bicara)
Tag: Pembatalan Suntingan perangkat seluler Suntingan peramban seluler Suntingan seluler lanjutan
Nyilvoskt (bicara | kontrib)
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="justify-content: center;><div style="position:relative; width:{{{boxwidth|500}}}px;height:20px;border:1px solid #cccccc; line-heightbackground:normallightgray">
<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></divcenter></includeonly><noinclude>
{{Documentation}}</noinclude>