Template:Rating table

{{Being deleted|2025 April 25|Template:Rating table}}{{(!}} class=" wikitable sortable mw-collapsible {{#ifeq:{{{隐藏|{{{隱藏|{{{hide|}}}}}}}}}|yes|mw-collapsed}} ratingstable {{{bodyclass|}}}" width="{{{table_width|100%}}}" style="font-size:{{{font_size|}}}"

|- class="ratingstable-header {{{titleclass|}}}" style="background:{{{title_background_color|}}}; color:{{{title_font_color|}}}"

| colspan="{{{num_column|}}}" | {{{area|}}} }}} {{#if:{{{channel_1|}}}|/ }}}|}} {{#if:{{{channel_2|}}}|/ }}}|}} {{#if:{{{channel_3|}}}|/ }}}|}} {{#ifeq:{{{premiere|}}}|yes| premiere| rebroadcast}} ratings {{#ifeq:{{{multi_data_sources|}}}|yes| |({{{data_source|}}})}}

|- class="ratingstable-header {{{titleclass|}}}" style="background:{{{title_background_color|}}}; color:{{{title_font_color|}}}"

{{#ifeq: {{{num_row|}}}|2| {{!}} rowspan="2" {{!}} Episode {{!}}{{!}} rowspan="2" {{!}} Date {{#if:{{{multi_channels|}}}| {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{channel|}}} {{#if:{{{channel_1|}}}| {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{channel_1|}}}}} {{#if:{{{channel_2|}}}| {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{channel_2|}}}}} {{#if:{{{channel_3|}}}| {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{channel_3|}}}}}}} {{#ifeq:{{{multi_data_sources|}}}|yes| {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{data_source|}}} {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{data_source_1|}}} {{#if:{{{data_source_2|}}}| {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{data_source_2|}}}}}}} {{#ifeq:{{{remarks|}}}|no| | {{!}}{{!}} rowspan="2" width="{{{remarks_width|}}}" {{!}} Remarks}}

{{!}}- class="ratingstable-header {{{titleclass|}}}" style="background:{{{title_background_color|}}}; color:{{{title_font_color|}}}"

{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} {{#ifeq:{{{multi_data_sources|}}}|yes| {{!}}{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} {{#if:{{{data_source_2|}}}| {{!}}{{!}} Rating{{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} }}}} {{#if:{{{channel_1|}}}| {{!}}{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} }} {{#if:{{{channel_2|}}}| {{!}}{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} }} {{#if:{{{channel_3|}}}| {{!}}{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} }}

{{!}}-

}}

{{#ifeq:{{{num_row|}}}|3| {{!}} rowspan="3" width="5%" {{!}} Episode {{!}}{{!}} rowspan="3" width="10%" {{!}} Date {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=4|2=2|#default=6}}" {{!}} {{{channel|}}} {{#if:{{{channel_1|}}}| {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=4|2=2|#default=6}}" {{!}} {{{channel_1|}}}}} {{#if:{{{channel_2|}}}| {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=4|2=2|#default=6}}" {{!}} {{{channel_2|}}}}} {{#if:{{{channel_3|}}}| {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=4|2=2|#default=6}}" {{!}} {{{channel_3|}}}}} {{#ifeq:{{{remarks|}}}|no| | {{!}}{{!}} width="{{{remarks_width|}}}" {{!}} Remarks}}

{{!}}- class="ratingstable-header {{{titleclass|}}}" style="background:{{{title_background_color|}}}; color:{{{title_font_color|}}}"

{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{data_source|}}} {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{data_source_1|}}} {{#if:{{{channel_1|}}}| {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{data_source|}}} {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{data_source_1|}}}}} {{#if:{{{channel_2|}}}| {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{data_source|}}} {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{data_source_1|}}}}} {{#if:{{{channel_3|}}}| {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{data_source|}}} {{!}}{{!}} colspan="{{#switch:{{#expr:{{#ifeq:{{{share|}}}|no|1|0}}+{{#ifeq:{{{ranking|}}}|no|1|0}}}}|1=2|2=1|#default=3}}" {{!}} {{{data_source_1|}}}}} {{#ifeq:{{{remarks|}}}|no| | {{!}}{{!}} rowspan="2" style="font-weight:normal; {{!}} {{{total_remark|}}}}}

{{!}}- class="ratingstable-header {{{titleclass|}}}" style="background:{{{title_background_color|}}}; color:{{{title_font_color|}}}"

{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} {{!}}{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} {{#if:{{{channel_1|}}}| {{!}}{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} {{!}}{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} }} {{#if:{{{channel_2|}}}| {{!}}{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} {{!}}{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }}}} {{#if:{{{channel_3|}}}| {{!}}{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} {{!}}{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} }}

{{!}}- }}

{{#ifeq:{{{num_row|}}}|1| {{!}} Episode {{!}}{{!}} {{#ifeq: {{{weekly_rating|}}}|yes| Week {{!}}{{!}} |}} Date {{!}}{{!}} Rating {{#ifeq: {{{share|}}} | no | | {{!}}{{!}} Share }} {{#ifeq: {{{ranking|}}} | no | | {{!}}{{!}} Ranking }} {{#ifeq:{{{remarks|}}}|no| | {{!}}{{!}} width="{{{remarks_width|}}}" {{!}} Remarks}}}}

|-

|}

{{documentation}}