「模板:Infobox election」:修訂間差異

出自合眾百科 Unitedbook
imported>DC
無編輯摘要
imported>DC
無編輯摘要
第16行: 第16行:


| subheaderstyle = line-height:130%;
| subheaderstyle = line-height:130%;
| subheader1 = <div style="float:left; max-width:10em; font-size:80%; text-align:left; display:inline-block; height: auto; ">◄{{{previous_election|}}}</div><div style="float:center; max-width:10em; font-size:80%; text-align:center; display:inline-block; height: auto;">{{{election_date|}}}</div><div style="float:right; max-width:12em; font-size:80%; text-align:right; display:inline-block; height: auto;">{{{next_election|}}}►</div>
| subheader1 = {{#if:{{{flag_image|}}}
 
  |{{#invoke:InfoboxImage|InfoboxImage|image={{{flag_image|}}}|size=50px|alt=|link=}}<hr />
  |{{#if:{{{country|}}}
    |{{flagdeco|{{{country}}}|variant={{{flag_year|}}}|size=50px|noredlink={{main other||yes}}}}<hr />
  }}
}}
| subheader2 =  {{#if:{{{previous_year|}}}{{{election_date|}}}{{{next_year|}}}|
{{succession links|leftstyle=width:15%;|centerstyle = width:70%;|rightstyle=width:15%;
  | left ={{#if:{{{previous_year|}}}|{{nowrap|{{#ifexist:{{{previous_election|}}}|[[{{{previous_election}}}|{{{previous_year}}}]]|{{{previous_year}}}}}}}}}
  | center = {{#if:{{{election_date|}}}|'''{{{election_date}}}'''}}
  | right = {{#if:{{{next_year|}}}|{{nowrap|{{#ifexist:{{{next_election|}}}|[[{{{next_election}}}|{{{next_year}}}]]|{{{next_year}}}}}}}}}
  }}
}}
| subheader3 =
{{#if:{{{outgoing_members|{{{previous_mps|}}}}}}{{{elected_members|{{{elected_mps|}}}}}}|
{{succession links|leftstyle=width:49%; text-align:center;|rightstyle=width:49%; text-align:center;
| left = {{#if:{{{outgoing_members|{{{previous_mps|}}}}}}|{{#ifexist:{{{outgoing_members|{{{previous_mps|}}}}}}|[[{{{outgoing_members|{{{previous_mps|}}}}}}|離任議員]]|{{{outgoing_members|{{{previous_mps|}}}}}}}}}}
| right = {{#if:{{{elected_members|{{{elected_mps|}}}}}}|{{#ifexist:{{{elected_members|{{{elected_mps|}}}}}}|[[{{{elected_members|{{{elected_mps|}}}}}}|當選議員]]|{{{elected_members|{{{elected_mps|}}}}}}}}|}}
}}
}}
| headerstyle = font-weight:normal;
| headerstyle = font-weight:normal;
| header1 =  
| header1 =  

於 2022年9月7日 (三) 22:34 的修訂

資訊圖示 模板資訊[創建]