模板:政黨資訊面板/席次:修訂間差異

出自眾神廳
跳至導覽 跳至搜尋
建立內容為「<includeonly>{{#if:{{{席次|}}}|{{#if:{{{總數|}}}|{{!}}- class="infobox-row" {{!}} colspan="2" class="pp-seats-cell" {{!}} <div class="pp-seats"><div class="pp-seats-head"><span class="pp-seats-name">{{#if:{{{議會|}}}|{{{議會}}}|議席}}</span><span class="pp-seats-count">'''{{{席次}}}'''/{{{總數}}}</span></div><div class="pp-seats-bar"><div class="pp-seats-fill" style="width:{{#expr: {{{席次}}} / {{{總數}}} * 100 round 2}}%;background-color…」的新頁面
 
無編輯摘要
 
第1行: 第1行:
<includeonly>{{#if:{{{席次|}}}|{{#if:{{{總數|}}}|{{!}}- class="infobox-row"
<includeonly>{{#if:{{{席次|}}}|{{#if:{{{總數|}}}|<tr class="infobox-row"><td colspan="2" class="pp-seats-cell"><div class="pp-seats"><div class="pp-seats-head"><span class="pp-seats-name">{{#if:{{{議會|}}}|{{{議會}}}|議席}}</span><span class="pp-seats-count">'''{{{席次}}}'''/{{{總數}}}</span></div><div class="pp-seats-bar"><div class="pp-seats-fill" style="width:{{#expr: {{{席次}}} / {{{總數}}} * 100 round 2}}%;background-color:#{{政黨色|{{{政黨|}}}}};background-color:{{{色碼|}}};"></div><div class="pp-seats-majority" style="left:{{#expr: (floor({{{總數}}} / 2) + 1) / {{{總數}}} * 100 round 2}}%;" title="過半數:{{#expr: floor({{{總數}}} / 2) + 1}}席"></div></div><div class="pp-seats-note">{{#expr: {{{席次}}} / {{{總數}}} * 100 round 1}}%{{#if:{{{年份|}}}| ・ {{{年份}}}}}{{#ifexpr: {{{席次}}} * 2 > {{{總數}}}| ・ <span class="pp-seats-majority-text">過半數</span>}}</div></div></td></tr>}}}}</includeonly><noinclude>
{{!}} colspan="2" class="pp-seats-cell" {{!}} <div class="pp-seats"><div class="pp-seats-head"><span class="pp-seats-name">{{#if:{{{議會|}}}|{{{議會}}}|議席}}</span><span class="pp-seats-count">'''{{{席次}}}'''/{{{總數}}}</span></div><div class="pp-seats-bar"><div class="pp-seats-fill" style="width:{{#expr: {{{席次}}} / {{{總數}}} * 100 round 2}}%;background-color:#{{政黨色|{{{政黨|}}}}};background-color:{{{色碼|}}};"></div><div class="pp-seats-majority" style="left:{{#expr: (floor({{{總數}}} / 2) + 1) / {{{總數}}} * 100 round 2}}%;" title="過半數:{{#expr: floor({{{總數}}} / 2) + 1}}席"></div></div><div class="pp-seats-note">{{#expr: {{{席次}}} / {{{總數}}} * 100 round 1}}%{{#if:{{{年份|}}}| ・ {{{年份}}}}}{{#ifexpr: {{{席次}}} * 2 > {{{總數}}}| ・ <span class="pp-seats-majority-text">過半數</span>}}</div></div>
}}}}</includeonly><noinclude>
由 [[Template:政黨資訊面板]] 自動呼叫,顯示單一議會的席次比例。
由 [[Template:政黨資訊面板]] 自動呼叫,顯示單一議會的席次比例。
* 長條中的虛線為過半數門檻,即總數的一半加一席
* 長條中的虛線為過半數門檻,即總數的一半加一席

2026年9月20日 (日) 09:22的最新修訂

Template:政黨資訊面板 自動呼叫,顯示單一議會的席次比例。

  • 長條中的虛線為過半數門檻,即總數的一半加一席
  • 席次超過總數一半時,下方會標示「過半數」