「模板:Infobox referendum/results」:修訂間差異

出自合眾百科 Unitedbook
imported>Ericchiueric
(建立內容為「<includeonly>{{#switch: {{{float|}}} | left |right=|#default=<table style="margin:{{#ifeq:{{{float|}}}|center|0 auto|0}}; border:none;"><tr><td style="border:none; padding:0;">}}<div class="barbox {{#switch: {{{float|}}} | left = tleft | right = tright|center|none=tnone}}" style="overflow-x: auto;{{{style|}}}"> <div style="border:{{{border_width|1}}}px solid silver; font-size:88%; padding:0.4em; width:{{{width|auto}}}; background: {{{background-color|white}}…」的新頁面)
 
imported>Ericchiueric
無編輯摘要
 
第1行: 第1行:
<includeonly>{{#switch: {{{float|}}} | left |right=|#default=<table style="margin:{{#ifeq:{{{float|}}}|center|0 auto|0}}; border:none;"><tr><td style="border:none; padding:0;">}}<div class="barbox {{#switch: {{{float|}}} | left = tleft | right = tright|center|none=tnone}}" style="overflow-x: auto;{{{style|}}}">
{| class="wikitable" style="text-align:right; width:25em; margin:0"
<div style="border:{{{border_width|1}}}px solid silver; font-size:88%; padding:0.4em; width:{{{width|auto}}}; background: {{{background-color|white}}};">
|+ style="background-color:#f2f2f2;margin-bottom:-1px;border:1px solid #aaa;padding:.2em .4em" | 結果
<table style="text-align:left; border-collapse:collapse; width:100%;">
|- style="background-color:#EEEEEE"
{{#if:{{{title|}}}|
{{#if: {{{yes|}}} |
<tr style="background:{{{titlebar|none}}}"><th style="text-align:center;" colspan="5">{{{title}}}</th></tr>
{{!}} style="width: 17em; background-color:#f2f2f2" {{!}}
! scope="col" style="width: 5em"                    {{!}} 票數
! scope="col" style="width: 7em"                    {{!}} %
{{!}}-
{{#ifexpr: {{formatnum:{{{yes}}}|R}} > {{formatnum:{{{no}}}|R}} |
{{!}} style="text-align: left;"             {{!}} {{#if:{{{yes_text|}}}|'''{{{yes_text}}}'''|[[Image:Yes_check.svg|14px|link=|alt=]] '''同意'''}}
{{!}} style="text-align: right;margin-right: 0.5em"           {{!}} '''{{formatnum: {{formatnum:{{{yes}}}|R}} }}'''
{{!}} style="text-align: right;margin-right: 0.5em"            {{!}} '''{{percentage| {{formatnum:{{{yes}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }}'''
{{!}}-
{{!}} style="text-align: left;"              {{!}} {{#if:{{{no_text|}}}|'''{{{no_text}}}'''|[[Image:X_mark.svg|14px|link=|alt=]] '''不同意'''}}
{{!}} style="text-align: right;"            {{!}} {{formatnum: {{formatnum:{{{no}}}|R}} }}
{{!}} style="text-align: right;"            {{!}} {{percentage| {{formatnum:{{{no}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }}
{{!}}-
{{#if:{{{blank|}}}|
{{!}} style="text-align: left;"             {{!}} {{#if:{{{blanktype|}}}|{{{blanktype}}}|空白票}}
{{!}} style="text-align: right;"            {{!}} {{formatnum: {{formatnum:{{{blank}}}|R}} }}
{{!}} style="text-align: right;"             {{!}} {{percentage| {{formatnum:{{{blank}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }}
}}
}}
<tr style="font-size:88%; height:4px;">
{{!}}-
<td {{#if:{{{left2|}}}||colspan="2"}} style="padding:0 4px; text-align:left;">{{{left1|}}}</td>
{{#if:{{{other|}}}|
{{#if:{{{left2|}}}|
{{!}} style="text-align: left;"             {{!}} {{#if:{{{othertype|}}}|{{{othertype}}}|其他}}
<td style="padding:0 4px; text-align:right;">{{{left2}}}</td>
{{!}} style="text-align: right;"             {{!}} {{formatnum: {{formatnum:{{{other}}}|R}} }}
{{!}} style="text-align: right;"             {{!}} {{percentage| {{formatnum:{{{other}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }}
}}
}}
<td style="width:{{{barwidth|100px}}}; text-align:left;"></td>
|
<td {{#if:{{{right2|}}}||colspan="2"}} style="padding:0 4px; width:1em; text-align:right;">{{{right1|}}}</td>
{{!}} style="text-align: left;"              {{!}} {{#if:{{{yes_text|}}}|{{{yes_text}}}|[[Image:Yes_check.svg|14px|link=|alt=]] 同意}}
{{#if:{{{right2|}}}|
{{!}} style="text-align: right;margin-right: 0.5em"            {{!}} {{formatnum: {{formatnum:{{{yes}}}|R}} }}
<td style="padding:0 4px; text-align:right;">{{{right2}}}</td>
{{!}} style="text-align: right;margin-right: 0.5em"           {{!}} {{percentage| {{formatnum:{{{yes}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }}
{{!}}-
{{!}} style="text-align: left;"             {{!}} {{#if:{{{no_text|}}}|{{{no_text}}}|[[Image:X_mark.svg|14px|link=|alt=]] 不同意}}
{{!}} style="text-align: right;margin-right: 0.5em"            {{!}} '''{{formatnum: {{formatnum:{{{no}}}|R}} }}'''
{{!}} style="text-align: right;margin-right: 0.5em"           {{!}} '''{{percentage| {{formatnum:{{{no}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }}'''
{{!}}-
{{#if:{{{blank|}}}|
{{!}} style="text-align: left;"              {{!}} {{#if:{{{blanktype|}}}|{{{blanktype}}}|空白票}}
{{!}} style="text-align: right;"            {{!}} {{formatnum: {{formatnum:{{{blank}}}|R}} }}
{{!}} style="text-align: right;"             {{!}} {{percentage| {{formatnum:{{{blank}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }}
}}
}}
</tr>
{{!}}-
{{{bars|}}}
{{#if:{{{other|}}}|
{{#if:{{{caption|}}}|
{{!}} style="text-align: left;"              {{!}} {{#if:{{{othertype|}}}|{{{othertype}}}|其他}}
<tr><td colspan="5" style="padding:5px; text-align:left;">{{{caption}}}</td></tr>
{{!}} style="text-align: right;"             {{!}} {{formatnum: {{formatnum:{{{other}}}|R}} }}
{{!}} style="text-align: right;"             {{!}} {{percentage| {{formatnum:{{{other}}}|R}} | {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | pad = {{{pct_prec|2}}} }}
}}
}}
</table>
}}
</div>
{{!}}- style="background-color:#EEEEEE"
</div>{{#switch: {{{float|}}} | left |right=|#default=</td></tr></table>}}{{#switch: {{{float|}}} | left = | right = | #default=[[Category:Pages using bar box without float left or float right|{{#switch:{{{width|auto}}}|auto|=Ω|#default=}}{{PAGENAME}}]]}}</includeonly><noinclude>
{{#if: {{{total|}}}{{{invalid|}}} |
{{#if:{{{invalid|Ø}}}|
{{!}} style="text-align: left"              {{!}} 有效票
{{!}} style="text-align: right;"            {{!}} {{formatnum: {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}
{{!}} style="text-align: right;"            {{!}} {{percentage| {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} | {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | pad = {{{pct_prec|2}}} }}
{{!}}- style="background-color:#EEEEEE"
{{!}} style="text-align: left"      {{!}} 無效{{#ifeq:{{{othertype|}}}|空白票| |{{#if:{{{blank|}}}| |或空白}} }}票
{{!}} style="text-align: right;"            {{!}} {{formatnum: {{formatnum: {{{invalid|{{#expr: {{formatnum:{{{total}}}|R}} - {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}}}} |R}} }}
{{!}} style="text-align: right;"            {{!}} {{percentage| {{formatnum:{{{invalid|{{#expr: {{formatnum:{{{total}}}|R}} - {{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}}|R}} }} }}}}}|R}} | {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | {{{pct_prec|2}}} | pad = {{{pct_prec|2}}} }}
}}
{{!}}- style="background-color:#EEEEEE"
{{!}} style="text-align: left"              {{!}} '''總票數'''{{{totalref|}}}
{{!}} style="text-align: right;"            {{!}} '''{{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}} }}'''
{{!}} style="text-align: right;"            {{!}} '''100.00%'''
}}|
{{!}}-
{{!}} colspan="3"                                  {{unk|結果不明}}
}}
|- style="background-color:#EEEEEE"
{{#if: {{both|{{{electorate|}}}|{{{total|}}}{{{invalid|}}}}}{{{turnoutpct|}}} |
{{!}} style="text-align: left"              {{!}} {{#ifeq:{{{voter_registration|}}}|no|投票資格|已登記選民}}/投票率
{{!}} style="text-align: right;"            {{!}} {{formatnum: {{formatnum:{{{electorate|}}}|R}} }}
{{!}} style="text-align: right;"            {{!}} {{#if:{{{turnoutpct|}}}|{{{turnoutpct}}}%|{{percentage| {{formatnum:{{#if:{{{total|}}}|{{formatnum:{{{total}}}|R}}|{{#expr: {{formatnum:{{{yes}}} + {{{no}}} + {{#if:{{{blank|}}}|{{{blank}}}|0}} + {{#if:{{{other|}}}|{{{other}}}|0}} + {{{invalid}}}|R}} }}}}|R}} | {{formatnum:{{{electorate}}}|R}} | 2 }}}}
}}
|}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

於 2022年11月15日 (二) 21:58 的最新修訂

結果
結果不明
資訊圖示 模板資訊[創建]