User:Heddy/Test/3: Difference between revisions

From Inkipedia, the Splatoon wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{Infobox|open|color={{SiteColor|{{{game|Splatoon}}}}}|title=<span style="font-size: 14px;">{{{alpha name|}}} vs. {{{bravo name|}}}</span>|image={{{image|{{#switch: {{{game|}}} | Splatoon = S | Splatoon 2 = S2}} Splatfest {{{alpha name|}}} vs {{{bravo name|}}}.png }}}}}
{{Infobox|open|color={{SiteColor|{{{game}}}}}|title=<span style="font-size: 14px;">{{{alpha name}}} vs. {{{bravo name}}}</span>|image={{{image}}}
{| style="width: 350px; border-spacing: 4px;"
{| style="width: 350px; border-spacing: 4px;"
|-
|-
| Team
| Team
| style="text-align: center;" | <span style="width: 1rem; height: 1rem; display: inline-block; vertical-align: middle; border: 1px solid black; border-radius: 0.4rem; background-color: {{{alpha ink|}}};">&nbsp;</span> {{{alpha name|}}}
| style="text-align: center;" | <span style="width: 1rem; height: 1rem; display: inline-block; vertical-align: middle; border: 1px solid black; border-radius: 0.4rem; background-color: {{{alpha ink}}};">&nbsp;</span> {{{alpha name}}}
| style="text-align: center;" | <span style="width: 1rem; height: 1rem; display: inline-block; vertical-align: middle; border: 1px solid black; border-radius: 0.4rem; background-color: {{{bravo ink|}}};">&nbsp;</span> {{{bravo name|}}}
| style="text-align: center;" | <span style="width: 1rem; height: 1rem; display: inline-block; vertical-align: middle; border: 1px solid black; border-radius: 0.4rem; background-color: {{{bravo ink}}};">&nbsp;</span> {{{bravo name}}}
|- {{#if: {{{region 1|}}} || style="display: none;" }}
|- {{#if: {{{region 1|}}} || style="display: none;" }}
| Region
| Region
! colspan="2" | {{{region 1|}}}
! colspan="2" | {{{region 1}}}
|- {{#if: {{{region 1 start|}}} || style="display: none;" }}
|- {{#if: {{{region 1 start|}}} || style="display: none;" }}
| Start
| Start
Line 14: Line 14:
|- {{#if: {{{region 1 start|}}} || style="display: none;" }}
|- {{#if: {{{region 1 start|}}} || style="display: none;" }}
| End
| End
| style="text-align: center;" colspan="2" | {{date| {{#time: Y-m-d | {{{region 1 start|}}}+{{{duration|24 hours}}} }} }}, {{#time: H:i e | {{{region 1 start|}}}+{{{duration|24 hours}}} }}
| style="text-align: center;" colspan="2" | {{date| {{#time: Y-m-d | {{{region 1 start|}}}+{{{duration|}}} }} }}, {{#time: H:i e | {{{region 1 start|}}}+{{{duration|}}} }}
|- {{#if: {{{region 1 start|}}} || style="display: none;" }}
|- {{#if: {{{region 1 start|}}} || style="display: none;" }}
| Score method
| Score method
| style="text-align: center;" colspan="2" | {{#switch:
| style="text-align: center;" colspan="2" | {{#switch: {{{score method|}}}
{{#expr: {{#time: U | {{{region 1 start|}}} }} < {{#time: U | 2015-08-05 }}
| 1 = votes + (wins {{color|×2|red}})
}}{{#expr: {{#time: U | {{{region 1 start|}}} }} > {{#time: U | 2015-08-05 }} and {{#time: U | {{{region 1 start|}}} }} < {{#time: U | 2015-10-20 }}
| 2 = votes + (wins {{color|×4|red}})
}}{{#expr: {{#time: U | {{{region 1 start|}}} }} > {{#time: U | 2015-10-20 }} and {{#time: U | {{{region 1 start|}}} }} < {{#time: U | 2017-07-15 }}
| 3 = votes + (wins {{color|×6|red}})
}}{{#expr: {{#time: U | {{{region 1 start|}}} }} > {{#time: U | 2017-07-15 }} }}
| 4 | 5 = category tally
| 1000 = votes + (wins {{color|×2|red}})
| 0100 = votes + (wins {{color|×4|red}})
| 0010 = votes + (wins {{color|×6|red}})
| 0001 = category tally
| #default = score method not found }}
| #default = score method not found }}
|- {{#ifeq: {{{shared results|}}} | true || style="display: none;" }}
|- {{#ifeq: {{{shared results|}}} | true || style="display: none;" }}
Line 32: Line 28:
|- {{#if: {{{region 1 alpha popularity|}}} || style="display: none;" }}
|- {{#if: {{{region 1 alpha popularity|}}} || style="display: none;" }}
| Popularity
| Popularity
| style="text-align: center; {{#ifexpr: {{{region 1 alpha popularity}}} >= 50 | font-weight: bold;}}" | {{{region 1 alpha popularity}}}%
| style="text-align: center; {{#ifexpr: {{{region 1 alpha popularity|}}} >= 50 | font-weight: bold;}}" | {{{region 1 alpha popularity|}}}%
| style="text-align: center; {{#ifexpr: {{{region 1 alpha popularity}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 1 alpha popularity}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 1 bravo popularity|}}} >= 50 | font-weight: bold;}}" | {{{region 1 bravo popularity|}}}%
|- {{#if: {{{region 1 alpha wins|}}} || style="display: none;" }}
|- {{#if: {{{region 1 alpha wins|}}} || style="display: none;" }}
| Wins
| Wins
| style="text-align: center; {{#ifexpr: {{{region 1 alpha wins}}} >= 50 | font-weight: bold;}}" | {{{region 1 alpha wins}}}%
| style="text-align: center; {{#ifexpr: {{{region 1 alpha wins|}}} >= 50 | font-weight: bold;}}" | {{{region 1 alpha wins|}}}%
| style="text-align: center; {{#ifexpr: {{{region 1 alpha wins}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 1 alpha wins}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 1 bravo wins|}}} >= 50 | font-weight: bold;}}" | {{{region 1 bravo wins|}}}%
|- {{#if: {{{region 1 alpha solo wins|}}} || style="display: none;" }}
|- {{#if: {{{region 1 alpha solo wins|}}} || style="display: none;" }}
| Solo wins
| Solo wins
| style="text-align: center; {{#ifexpr: {{{region 1 alpha solo wins}}} >= 50 | font-weight: bold;}}" | {{{region 1 alpha solo wins}}}%
| style="text-align: center; {{#ifexpr: {{{region 1 alpha solo wins|}}} >= 50 | font-weight: bold;}}" | {{{region 1 alpha solo wins|}}}%
| style="text-align: center; {{#ifexpr: {{{region 1 alpha solo wins}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 1 alpha solo wins}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 1 bravo solo wins|}}} >= 50 | font-weight: bold;}}" | {{{region 1 bravo solo wins|}}}%
|- {{#if: {{{region 1 alpha team wins|}}} || style="display: none;" }}
|- {{#if: {{{region 1 alpha team wins|}}} || style="display: none;" }}
| Team wins
| Team wins
| style="text-align: center; {{#ifexpr: {{{region 1 alpha team wins}}} >= 50 | font-weight: bold;}}" | {{{region 1 alpha team wins}}}%
| style="text-align: center; {{#ifexpr: {{{region 1 alpha team wins|}}} >= 50 | font-weight: bold;}}" | {{{region 1 alpha team wins|}}}%
| style="text-align: center; {{#ifexpr: {{{region 1 alpha team wins}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 1 alpha team wins}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 1 bravo team wins|}}} >= 50 | font-weight: bold;}}" | {{{region 1 bravo team wins|}}}%
|- {{#if: {{{region 1 alpha normal clout|}}} || style="display: none;" }}
|- {{#if: {{{region 1 alpha normal clout|}}} || style="display: none;" }}
| Normal clout
| Normal clout
| style="text-align: center; {{#ifexpr: {{{region 1 alpha normal clout}}} >= 50 | font-weight: bold;}}" | {{{region 1 alpha normal clout}}}%
| style="text-align: center; {{#ifexpr: {{{region 1 alpha normal clout|}}} >= 50 | font-weight: bold;}}" | {{{region 1 alpha normal clout|}}}%
| style="text-align: center; {{#ifexpr: {{{region 1 alpha normal clout}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 1 alpha normal clout}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 1 bravo normal clout|}}} >= 50 | font-weight: bold;}}" | {{{region 1 bravo normal clout|}}}%
|- {{#if: {{{region 1 alpha pro clout|}}} || style="display: none;" }}
|- {{#if: {{{region 1 alpha pro clout|}}} || style="display: none;" }}
| Pro clout
| Pro clout
| style="text-align: center; {{#ifexpr: {{{region 1 alpha pro clout}}} >= 50 | font-weight: bold;}}" | {{{region 1 alpha pro clout}}}%
| style="text-align: center; {{#ifexpr: {{{region 1 alpha pro clout|}}} >= 50 | font-weight: bold;}}" | {{{region 1 alpha pro clout|}}}%
| style="text-align: center; {{#ifexpr: {{{region 1 alpha pro clout}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 1 alpha pro clout}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 1 bravo pro clout|}}} >= 50 | font-weight: bold;}}" | {{{region 1 bravo pro clout|}}}%
|- {{#if: {{{region 1 alpha popularity|}}} || style="display: none;" }}
|- {{#if: {{{region 1 alpha popularity|}}} || style="display: none;" }}
| Score
| Score
| style="text-align: center;" | {{#switch:
| style="text-align: center;" | {{#switch: {{{score method|}}}
{{#expr: {{#time: U | {{{region 1 start|}}} }} < {{#time: U | 2015-08-05 }}
| 1 = {{#expr: {{{region 1 alpha popularity|}}} + 2 * {{{region 1 alpha wins|}}} }}
}}{{#expr: {{#time: U | {{{region 1 start|}}} }} > {{#time: U | 2015-08-05 }} and {{#time: U | {{{region 1 start|}}} }} < {{#time: U | 2015-10-20 }}
| 2 = {{#expr: {{{region 1 alpha popularity|}}} + 4 * {{{region 1 alpha wins|}}} }}
}}{{#expr: {{#time: U | {{{region 1 start|}}} }} > {{#time: U | 2015-10-20 }} and {{#time: U | {{{region 1 start|}}} }} < {{#time: U | 2017-07-15 }}
| 3 = {{#expr: {{{region 1 alpha popularity|}}} + 6 * {{{region 1 alpha wins|}}} }}
}}{{#expr: {{#time: U | {{{region 1 start|}}} }} > {{#time: U | 2017-07-15 }} and {{#time: U | {{{region 1 start|}}} }} < {{#time: U | 2018-09-14 }}
| 4 = {{#expr: {{#ifexpr: {{{region 1 alpha popularity|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 1 alpha solo wins|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 1 alpha team wins|}}} >= 50 | 1 | 0 }} }}
}}{{#expr: {{#time: U | {{{region 1 start|}}} }} > {{#time: U | 2018-09-14 }} }}
| 5 = {{#expr: {{#ifexpr: {{{region 1 alpha popularity|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 1 alpha normal clout|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 1 alpha pro clout|}}} >= 50 | 1 | 0 }} }}
| 10000 = {{#expr: {{{region 1 alpha popularity}}} + 2 * {{{region 1 alpha wins}}} }}
| 01000 = {{#expr: {{{region 1 alpha popularity}}} + 4 * {{{region 1 alpha wins}}} }}
| 00100 = {{#expr: {{{region 1 alpha popularity}}} + 6 * {{{region 1 alpha wins}}} }}
| 00010 = {{#expr: {{#ifexpr: {{{region 1 alpha popularity}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 1 alpha solo wins}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 1 alpha team wins}}} >= 50 | 1 | 0 }} }}
| 00001 = {{#expr: {{#ifexpr: {{{region 1 alpha popularity}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 1 alpha normal clout}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 1 alpha pro clout}}} >= 50 | 1 | 0 }} }}
| #default = 0 }}
| #default = 0 }}
| style="text-align: center;" | {{#switch:
| style="text-align: center;" | {{#switch: {{{score method|}}}
{{#expr: {{#time: U | {{{region 1 start|}}} }} < {{#time: U | 2015-08-05 }}
| 1 = {{#expr: {{{region 1 bravo popularity|}}} + 2 * {{{region 1 bravo wins|}}} }}
}}{{#expr: {{#time: U | {{{region 1 start|}}} }} > {{#time: U | 2015-08-05 }} and {{#time: U | {{{region 1 start|}}} }} < {{#time: U | 2015-10-20 }}
| 2 = {{#expr: {{{region 1 bravo popularity|}}} + 4 * {{{region 1 bravo wins|}}} }}
}}{{#expr: {{#time: U | {{{region 1 start|}}} }} > {{#time: U | 2015-10-20 }} and {{#time: U | {{{region 1 start|}}} }} < {{#time: U | 2017-07-15 }}
| 3 = {{#expr: {{{region 1 bravo popularity|}}} + 6 * {{{region 1 bravo wins|}}} }}
}}{{#expr: {{#time: U | {{{region 1 start|}}} }} > {{#time: U | 2017-07-15 }} and {{#time: U | {{{region 1 start|}}} }} < {{#time: U | 2018-09-14 }}
| 4 = {{#expr: {{#ifexpr: {{{region 1 bravo popularity|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 1 bravo solo wins|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 1 alpha bravo wins|}}} >= 50 | 1 | 0 }} }}
}}{{#expr: {{#time: U | {{{region 1 start|}}} }} > {{#time: U | 2018-09-14 }} }}
| 5 = {{#expr: {{#ifexpr: {{{region 1 bravo popularity|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 1 bravo normal clout|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 1 bravo pro clout|}}} >= 50 | 1 | 0 }} }}
| 10000 = {{#expr: {{#expr: 100 - {{{region 1 alpha popularity}}} }} + 2 * {{#expr: 100 - {{{region 1 alpha wins}}} }} }}
| 01000 = {{#expr: {{#expr: 100 - {{{region 1 alpha popularity}}} }} + 4 * {{#expr: 100 - {{{region 1 alpha wins}}} }} }}
| 00100 = {{#expr: {{#expr: 100 - {{{region 1 alpha popularity}}} }} + 6 * {{#expr: 100 - {{{region 1 alpha wins}}} }} }}
| 00010 = {{#expr: {{#ifexpr: {{#expr: 100 - {{{region 1 alpha popularity}}} }} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: 100 - {{{region 1 alpha solo wins}}} }} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: 100 - {{{region 1 alpha team wins}}} }} >= 50 | 1 | 0 }} }}
| 00001 = {{#expr: {{#ifexpr: {{#expr: 100 - {{{region 1 alpha popularity}}} }} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: 100 - {{{region 1 alpha normal clout}}} }} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: 100 - {{{region 1 alpha pro clout}}} }} >= 50 | 1 | 0 }} }}
| #default = 0 }}
| #default = 0 }}
|- {{#if: {{{region 1 winner|}}} || style="display: none;" }}
|- {{#if: {{{region 1 winner|}}} || style="display: none;" }}
Line 91: Line 77:
|- {{#if: {{{region 2 start|}}} || style="display: none;" }}
|- {{#if: {{{region 2 start|}}} || style="display: none;" }}
| End
| End
| style="text-align: center;" colspan="2" | {{date| {{#time: Y-m-d | {{{region 2 start|}}}+{{{duration|24 hours}}} }} }}, {{#time: H:i e | {{{region 2 start|}}}+{{{duration|24 hours}}} }}
| style="text-align: center;" colspan="2" | {{date| {{#time: Y-m-d | {{{region 2 start|}}}+{{{duration|}}} }} }}, {{#time: H:i e | {{{region 2 start|}}}+{{{duration|}}} }}
|- {{#if: {{{region 2 alpha popularity|}}} || style="display: none;" }}
|- {{#if: {{{region 2 alpha popularity|}}} || style="display: none;" }}
| Popularity
| Popularity
| style="text-align: center; {{#ifexpr: {{{region 2 alpha popularity}}} >= 50 | font-weight: bold;}}" | {{{region 2 alpha popularity}}}%
| style="text-align: center; {{#ifexpr: {{{region 2 alpha popularity|}}} >= 50 | font-weight: bold;}}" | {{{region 2 alpha popularity|}}}%
| style="text-align: center; {{#ifexpr: {{{region 2 alpha popularity}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 2 alpha popularity}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 2 bravo popularity|}}} >= 50 | font-weight: bold;}}" | {{{region 2 bravo popularity|}}}%
|- {{#if: {{{region 2 alpha wins|}}} || style="display: none;" }}
|- {{#if: {{{region 2 alpha wins|}}} || style="display: none;" }}
| Wins
| Wins
| style="text-align: center; {{#ifexpr: {{{region 2 alpha wins}}} >= 50 | font-weight: bold;}}" | {{{region 2 alpha wins}}}%
| style="text-align: center; {{#ifexpr: {{{region 2 alpha wins|}}} >= 50 | font-weight: bold;}}" | {{{region 2 alpha wins|}}}%
| style="text-align: center; {{#ifexpr: {{{region 2 alpha wins}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 2 alpha wins}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 2 bravo wins|}}} >= 50 | font-weight: bold;}}" | {{{region 2 bravo wins|}}}%
|- {{#if: {{{region 2 alpha solo wins|}}} || style="display: none;" }}
|- {{#if: {{{region 2 alpha solo wins|}}} || style="display: none;" }}
| Solo wins
| Solo wins
| style="text-align: center; {{#ifexpr: {{{region 2 alpha solo wins}}} >= 50 | font-weight: bold;}}" | {{{region 2 alpha solo wins}}}%
| style="text-align: center; {{#ifexpr: {{{region 2 alpha solo wins|}}} >= 50 | font-weight: bold;}}" | {{{region 2 alpha solo wins|}}}%
| style="text-align: center; {{#ifexpr: {{{region 2 alpha solo wins}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 2 alpha solo wins}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 2 bravo solo wins|}}} >= 50 | font-weight: bold;}}" | {{{region 2 bravo solo wins|}}}%
|- {{#if: {{{region 2 alpha team wins|}}} || style="display: none;" }}
|- {{#if: {{{region 2 alpha team wins|}}} || style="display: none;" }}
| Team wins
| Team wins
| style="text-align: center; {{#ifexpr: {{{region 2 alpha team wins}}} >= 50 | font-weight: bold;}}" | {{{region 2 alpha team wins}}}%
| style="text-align: center; {{#ifexpr: {{{region 2 alpha team wins|}}} >= 50 | font-weight: bold;}}" | {{{region 2 alpha team wins|}}}%
| style="text-align: center; {{#ifexpr: {{{region 2 alpha team wins}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 2 alpha team wins}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 2 bravo team wins|}}} >= 50 | font-weight: bold;}}" | {{{region 2 bravo team wins|}}}%
|- {{#if: {{{region 2 alpha normal clout|}}} || style="display: none;" }}
|- {{#if: {{{region 2 alpha normal clout|}}} || style="display: none;" }}
| Normal clout
| Normal clout
| style="text-align: center; {{#ifexpr: {{{region 2 alpha normal clout}}} >= 50 | font-weight: bold;}}" | {{{region 2 alpha normal clout}}}%
| style="text-align: center; {{#ifexpr: {{{region 2 alpha normal clout|}}} >= 50 | font-weight: bold;}}" | {{{region 2 alpha normal clout|}}}%
| style="text-align: center; {{#ifexpr: {{{region 2 alpha normal clout}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 2 alpha normal clout}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 2 bravo normal clout|}}} >= 50 | font-weight: bold;}}" | {{{region 2 bravo normal clout|}}}%
|- {{#if: {{{region 2 alpha pro clout|}}} || style="display: none;" }}
|- {{#if: {{{region 2 alpha pro clout|}}} || style="display: none;" }}
| Pro clout
| Pro clout
| style="text-align: center; {{#ifexpr: {{{region 2 alpha pro clout}}} >= 50 | font-weight: bold;}}" | {{{region 2 alpha pro clout}}}%
| style="text-align: center; {{#ifexpr: {{{region 2 alpha pro clout|}}} >= 50 | font-weight: bold;}}" | {{{region 2 alpha pro clout|}}}%
| style="text-align: center; {{#ifexpr: {{{region 2 alpha pro clout}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 2 alpha pro clout}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 2 bravo pro clout|}}} >= 50 | font-weight: bold;}}" | {{{region 2 bravo pro clout|}}}%
|- {{#if: {{{region 2 alpha popularity|}}} || style="display: none;" }}
|- {{#if: {{{region 2 alpha popularity|}}} || style="display: none;" }}
| Score
| Score
| style="text-align: center;" | {{#switch:
| style="text-align: center;" | {{#switch: {{{score method|}}}
{{#expr: {{#time: U | {{{region 2 start|}}} }} < {{#time: U | 2015-08-05 }}
| 1 = {{#expr: {{{region 2 alpha popularity|}}} + 2 * {{{region 2 alpha wins|}}} }}
}}{{#expr: {{#time: U | {{{region 2 start|}}} }} > {{#time: U | 2015-08-05 }} and {{#time: U | {{{region 2 start|}}} }} < {{#time: U | 2015-10-20 }}
| 2 = {{#expr: {{{region 2 alpha popularity|}}} + 4 * {{{region 2 alpha wins|}}} }}
}}{{#expr: {{#time: U | {{{region 2 start|}}} }} > {{#time: U | 2015-10-20 }} and {{#time: U | {{{region 2 start|}}} }} < {{#time: U | 2017-07-15 }}
| 3 = {{#expr: {{{region 2 alpha popularity|}}} + 6 * {{{region 2 alpha wins|}}} }}
}}{{#expr: {{#time: U | {{{region 2 start|}}} }} > {{#time: U | 2017-07-15 }} and {{#time: U | {{{region 2 start|}}} }} < {{#time: U | 2018-09-14 }}
| 4 = {{#expr: {{#ifexpr: {{{region 2 alpha popularity|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 2 alpha solo wins|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 2 alpha team wins|}}} >= 50 | 1 | 0 }} }}
}}{{#expr: {{#time: U | {{{region 2 start|}}} }} > {{#time: U | 2018-09-14 }} }}
| 5 = {{#expr: {{#ifexpr: {{{region 2 alpha popularity|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 2 alpha normal clout|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 2 alpha pro clout|}}} >= 50 | 1 | 0 }} }}
| 10000 = {{#expr: {{{region 2 alpha popularity}}} + 2 * {{{region 2 alpha wins}}} }}
| 01000 = {{#expr: {{{region 2 alpha popularity}}} + 4 * {{{region 2 alpha wins}}} }}
| 00100 = {{#expr: {{{region 2 alpha popularity}}} + 6 * {{{region 2 alpha wins}}} }}
| 00010 = {{#expr: {{#ifexpr: {{{region 2 alpha popularity}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 2 alpha solo wins}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 2 alpha team wins}}} >= 50 | 1 | 0 }} }}
| 00001 = {{#expr: {{#ifexpr: {{{region 2 alpha popularity}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 2 alpha normal clout}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 2 alpha pro clout}}} >= 50 | 1 | 0 }} }}
| #default = 0 }}
| #default = 0 }}
| style="text-align: center;" | {{#switch:
| style="text-align: center;" | {{#switch: {{{score method|}}}
{{#expr: {{#time: U | {{{region 2 start|}}} }} < {{#time: U | 2015-08-05 }}
| 1 = {{#expr: {{{region 2 bravo popularity|}}} + 2 * {{{region 2 bravo wins|}}} }}
}}{{#expr: {{#time: U | {{{region 2 start|}}} }} > {{#time: U | 2015-08-05 }} and {{#time: U | {{{region 2 start|}}} }} < {{#time: U | 2015-10-20 }}
| 2 = {{#expr: {{{region 2 bravo popularity|}}} + 4 * {{{region 2 bravo wins|}}} }}
}}{{#expr: {{#time: U | {{{region 2 start|}}} }} > {{#time: U | 2015-10-20 }} and {{#time: U | {{{region 2 start|}}} }} < {{#time: U | 2017-07-15 }}
| 3 = {{#expr: {{{region 2 bravo popularity|}}} + 6 * {{{region 2 bravo wins|}}} }}
}}{{#expr: {{#time: U | {{{region 2 start|}}} }} > {{#time: U | 2017-07-15 }} and {{#time: U | {{{region 2 start|}}} }} < {{#time: U | 2018-09-14 }}
| 4 = {{#expr: {{#ifexpr: {{#expr: {{{region 2 bravo popularity|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 2 bravo solo wins|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: {{{region 2 bravo team wins|}}} >= 50 | 1 | 0 }} }}
}}{{#expr: {{#time: U | {{{region 2 start|}}} }} > {{#time: U | 2018-09-14 }} }}
| 5 = {{#expr: {{#ifexpr: {{{region 2 bravo popularity|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 2 bravo normal clout|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 2 bravo pro clout|}}} >= 50 | 1 | 0 }} }}
| 10000 = {{#expr: {{#expr: 100 - {{{region 2 alpha popularity}}} }} + 2 * {{#expr: 100 - {{{region 2 alpha wins}}} }} }}
| 01000 = {{#expr: {{#expr: 100 - {{{region 2 alpha popularity}}} }} + 4 * {{#expr: 100 - {{{region 2 alpha wins}}} }} }}
| 00100 = {{#expr: {{#expr: 100 - {{{region 2 alpha popularity}}} }} + 6 * {{#expr: 100 - {{{region 2 alpha wins}}} }} }}
| 00010 = {{#expr: {{#ifexpr: {{#expr: 100 - {{{region 2 alpha popularity}}} }} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: 100 - {{{region 2 alpha solo wins}}} }} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: 100 - {{{region 2 alpha team wins}}} }} >= 50 | 1 | 0 }} }}
| 00001 = {{#expr: {{#ifexpr: {{#expr: 100 - {{{region 2 alpha popularity}}} }} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: 100 - {{{region 2 alpha normal clout}}} }} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: 100 - {{{region 2 alpha pro clout}}} }} >= 50 | 1 | 0 }} }}
| #default = 0 }}
| #default = 0 }}
|- {{#if: {{{region 2 winner|}}} || style="display: none;" }}
|- {{#if: {{{region 2 winner|}}} || style="display: none;" }}
Line 153: Line 129:
|- {{#if: {{{region 3 start|}}} || style="display: none;" }}
|- {{#if: {{{region 3 start|}}} || style="display: none;" }}
| End
| End
| style="text-align: center;" colspan="2" | {{date| {{#time: Y-m-d | {{{region 3 start|}}}+{{{duration|24 hours}}} }} }}, {{#time: H:i e | {{{region 3 start|}}}+{{{duration|24 hours}}} }}
| style="text-align: center;" colspan="2" | {{date| {{#time: Y-m-d | {{{region 3 start|}}}+{{{duration|}}} }} }}, {{#time: H:i e | {{{region 3 start|}}}+{{{duration|}}} }}
|- {{#if: {{{region 3 alpha popularity|}}} || style="display: none;" }}
|- {{#if: {{{region 3 alpha popularity|}}} || style="display: none;" }}
| Popularity
| Popularity
| style="text-align: center; {{#ifexpr: {{{region 3 alpha popularity}}} >= 50 | font-weight: bold;}}" | {{{region 3 alpha popularity}}}%
| style="text-align: center; {{#ifexpr: {{{region 3 alpha popularity|}}} >= 50 | font-weight: bold;}}" | {{{region 3 alpha popularity|}}}%
| style="text-align: center; {{#ifexpr: {{{region 3 alpha popularity}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 3 alpha popularity}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 3 bravo popularity|}}} >= 50 | font-weight: bold;}}" | {{{region 3 bravo popularity|}}}%
|- {{#if: {{{region 3 alpha wins|}}} || style="display: none;" }}
|- {{#if: {{{region 3 alpha wins|}}} || style="display: none;" }}
| Wins
| Wins
| style="text-align: center; {{#ifexpr: {{{region 3 alpha wins}}} >= 50 | font-weight: bold;}}" | {{{region 3 alpha wins}}}%
| style="text-align: center; {{#ifexpr: {{{region 3 alpha wins|}}} >= 50 | font-weight: bold;}}" | {{{region 3 alpha wins|}}}%
| style="text-align: center; {{#ifexpr: {{{region 3 alpha wins}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 3 alpha wins}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 3 bravo wins|}}} >= 50 | font-weight: bold;}}" | {{{region 3 bravo wins|}}}%
|- {{#if: {{{region 3 alpha solo wins|}}} || style="display: none;" }}
|- {{#if: {{{region 3 alpha solo wins|}}} || style="display: none;" }}
| Solo wins
| Solo wins
| style="text-align: center; {{#ifexpr: {{{region 3 alpha solo wins}}} >= 50 | font-weight: bold;}}" | {{{region 3 alpha solo wins}}}%
| style="text-align: center; {{#ifexpr: {{{region 3 alpha solo wins|}}} >= 50 | font-weight: bold;}}" | {{{region 3 alpha solo wins|}}}%
| style="text-align: center; {{#ifexpr: {{{region 3 alpha solo wins}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 3 alpha solo wins}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 3 bravo solo wins|}}} >= 50 | font-weight: bold;}}" | {{{region 3 bravo solo wins|}}}%
|- {{#if: {{{region 3 alpha team wins|}}} || style="display: none;" }}
|- {{#if: {{{region 3 alpha team wins|}}} || style="display: none;" }}
| Team wins
| Team wins
| style="text-align: center; {{#ifexpr: {{{region 3 alpha team wins}}} >= 50 | font-weight: bold;}}" | {{{region 3 alpha team wins}}}%
| style="text-align: center; {{#ifexpr: {{{region 3 alpha team wins|}}} >= 50 | font-weight: bold;}}" | {{{region 3 alpha team wins|}}}%
| style="text-align: center; {{#ifexpr: {{{region 3 alpha team wins}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 3 alpha team wins}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 3 bravo team wins|}}} >= 50 | font-weight: bold;}}" | {{{region 3 bravo team wins|}}}%
|- {{#if: {{{region 3 alpha normal clout|}}} || style="display: none;" }}
|- {{#if: {{{region 3 alpha normal clout|}}} || style="display: none;" }}
| Normal clout
| Normal clout
| style="text-align: center; {{#ifexpr: {{{region 3 alpha normal clout}}} >= 50 | font-weight: bold;}}" | {{{region 3 alpha normal clout}}}%
| style="text-align: center; {{#ifexpr: {{{region 3 alpha normal clout|}}} >= 50 | font-weight: bold;}}" | {{{region 3 alpha normal clout|}}}%
| style="text-align: center; {{#ifexpr: {{{region 3 alpha normal clout}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 3 alpha normal clout}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 3 bravo normal clout|}}} >= 50 | font-weight: bold;}}" | {{{region 3 bravo normal clout|}}}%
|- {{#if: {{{region 3 alpha pro clout|}}} || style="display: none;" }}
|- {{#if: {{{region 3 alpha pro clout|}}} || style="display: none;" }}
| Pro clout
| Pro clout
| style="text-align: center; {{#ifexpr: {{{region 3 alpha pro clout}}} >= 50 | font-weight: bold;}}" | {{{region 3 alpha pro clout}}}%
| style="text-align: center; {{#ifexpr: {{{region 3 alpha pro clout|}}} >= 50 | font-weight: bold;}}" | {{{region 3 alpha pro clout|}}}%
| style="text-align: center; {{#ifexpr: {{{region 3 alpha pro clout}}} < 50 | font-weight: bold;}}" | {{#expr: 100 - {{{region 3 alpha pro clout}}} }}%
| style="text-align: center; {{#ifexpr: {{{region 3 bravo pro clout|}}} >= 50 | font-weight: bold;}}" | {{{region 3 bravo pro clout|}}}%
|- {{#if: {{{region 3 alpha popularity|}}} || style="display: none;" }}
|- {{#if: {{{region 3 alpha popularity|}}} || style="display: none;" }}
| Score
| Score
| style="text-align: center;" | {{#switch:
| style="text-align: center;" | {{#switch: {{{score method|}}}
{{#expr: {{#time: U | {{{region 3 start|}}} }} < {{#time: U | 2015-08-05 }}
| 1 = {{#expr: {{{region 3 alpha popularity|}}} + 2 * {{{region 3 alpha wins|}}} }}
}}{{#expr: {{#time: U | {{{region 3 start|}}} }} > {{#time: U | 2015-08-05 }} and {{#time: U | {{{region 3 start|}}} }} < {{#time: U | 2015-10-20 }}
| 2 = {{#expr: {{{region 3 alpha popularity|}}} + 4 * {{{region 3 alpha wins|}}} }}
}}{{#expr: {{#time: U | {{{region 3 start|}}} }} > {{#time: U | 2015-10-20 }} and {{#time: U | {{{region 3 start|}}} }} < {{#time: U | 2017-07-15 }}
| 3 = {{#expr: {{{region 3 alpha popularity|}}} + 6 * {{{region 3 alpha wins|}}} }}
}}{{#expr: {{#time: U | {{{region 3 start|}}} }} > {{#time: U | 2017-07-15 }} and {{#time: U | {{{region 3 start|}}} }} < {{#time: U | 2018-09-14 }}
| 4 = {{#expr: {{#ifexpr: {{{region 3 alpha popularity|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 3 alpha solo wins|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 3 alpha team wins|}}} >= 50 | 1 | 0 }} }}
}}{{#expr: {{#time: U | {{{region 3 start|}}} }} > {{#time: U | 2018-09-14 }} }}
| 5 = {{#expr: {{#ifexpr: {{{region 3 alpha popularity|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 3 alpha normal clout|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 3 alpha pro clout|}}} >= 50 | 1 | 0 }} }}
| 10000 = {{#expr: {{{region 3 alpha popularity}}} + 2 * {{{region 3 alpha wins}}} }}
| 01000 = {{#expr: {{{region 3 alpha popularity}}} + 4 * {{{region 3 alpha wins}}} }}
| 00100 = {{#expr: {{{region 3 alpha popularity}}} + 6 * {{{region 3 alpha wins}}} }}
| 00010 = {{#expr: {{#ifexpr: {{{region 3 alpha popularity}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 3 alpha solo wins}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 3 alpha team wins}}} >= 50 | 1 | 0 }} }}
| 00001 = {{#expr: {{#ifexpr: {{{region 3 alpha popularity}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 3 alpha normal clout}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 3 alpha pro clout}}} >= 50 | 1 | 0 }} }}
| #default = 0 }}
| #default = 0 }}
| style="text-align: center;" | {{#switch:
| style="text-align: center;" | {{#switch: {{{score method|}}}
{{#expr: {{#time: U | {{{region 3 start|}}} }} < {{#time: U | 2015-08-05 }}
| 1 = {{#expr: {{{region 3 bravo popularity|}}} + 2 * {{{region 3 bravo wins|}}} }}
}}{{#expr: {{#time: U | {{{region 3 start|}}} }} > {{#time: U | 2015-08-05 }} and {{#time: U | {{{region 3 start|}}} }} < {{#time: U | 2015-10-20 }}
| 2 = {{#expr: {{{region 3 bravo popularity|}}} + 4 * {{{region 3 bravo wins|}}} }}
}}{{#expr: {{#time: U | {{{region 3 start|}}} }} > {{#time: U | 2015-10-20 }} and {{#time: U | {{{region 3 start|}}} }} < {{#time: U | 2017-07-15 }}
| 3 = {{#expr: {{{region 3 bravo popularity|}}} + 6 * {{{region 3 bravo wins|}}} }}
}}{{#expr: {{#time: U | {{{region 3 start|}}} }} > {{#time: U | 2017-07-15 }} and {{#time: U | {{{region 3 start|}}} }} < {{#time: U | 2018-09-14 }}
| 4 = {{#expr: {{#ifexpr: {{#expr: {{{region 3 bravo popularity|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 3 bravo solo wins|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: {{{region 3 bravo team wins|}}} >= 50 | 1 | 0 }} }}
}}{{#expr: {{#time: U | {{{region 3 start|}}} }} > {{#time: U | 2018-09-14 }} }}
| 5 = {{#expr: {{#ifexpr: {{{region 3 bravo popularity|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 3 bravo normal clout|}}} >= 50 | 1 | 0 }} + {{#ifexpr: {{{region 3 bravo pro clout|}}} >= 50 | 1 | 0 }} }}
| 10000 = {{#expr: {{#expr: 100 - {{{region 3 alpha popularity}}} }} + 2 * {{#expr: 100 - {{{region 3 alpha wins}}} }} }}
| 01000 = {{#expr: {{#expr: 100 - {{{region 3 alpha popularity}}} }} + 4 * {{#expr: 100 - {{{region 3 alpha wins}}} }} }}
| 00100 = {{#expr: {{#expr: 100 - {{{region 3 alpha popularity}}} }} + 6 * {{#expr: 100 - {{{region 3 alpha wins}}} }} }}
| 00010 = {{#expr: {{#ifexpr: {{#expr: 100 - {{{region 3 alpha popularity}}} }} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: 100 - {{{region 3 alpha solo wins}}} }} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: 100 - {{{region 3 alpha team wins}}} }} >= 50 | 1 | 0 }} }}
| 00001 = {{#expr: {{#ifexpr: {{#expr: 100 - {{{region 3 alpha popularity}}} }} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: 100 - {{{region 3 alpha normal clout}}} }} >= 50 | 1 | 0 }} + {{#ifexpr: {{#expr: 100 - {{{region 3 alpha pro clout}}} }} >= 50 | 1 | 0 }} }}
| #default = 0 }}
| #default = 0 }}
|- {{#if: {{{region 3 winner|}}} || style="display: none;" }}
|- {{#if: {{{region 3 winner|}}} || style="display: none;" }}
Line 214: Line 180:
This template is used to create result boxes on Splatfest event articles.
This template is used to create result boxes on Splatfest event articles.


== Usage ==
For documentation, see [[User:Heddy/Test/2]].
* Game and region should have their names fully spelled out, not abbreviated.
* The template attempts to find an image, but you may need to specify the filename with the image parameter.
* Ink should be a hex value for the ink color, extracted from the game or from SplatNet.
* Winner should be <code>alpha</code> or <code>bravo</code>.
* Start times should be in the format YYYY-MM-DD HH:MM timezone. Duration is optional and defaults to "24 hours".
* For popularity and win percentages, only enter them for alpha team.
** Bravo team's percentages will be automatically calculated.
** ''Splatoon'' uses wins. ''Splatoon 2'' uses solo wins and team wins pre-4.0.0, and going forward uses normal clout and pro clout.
 
=== Parameter list ===
<pre><nowiki>
{{Splatfest result box
| game =
| image =
| alpha name =
| alpha ink =
| bravo name =
| bravo ink =
| duration =
| region 1 =
| region 2 =
| region 3 =
| region 1 start =
| region 1 winner =
| region 1 alpha popularity =
| region 1 alpha wins =
| region 1 alpha solo wins =
| region 1 alpha team wins =
| region 1 alpha normal clout =
| region 1 alpha pro clout =
| region 2 start =
| region 2 winner =
| region 2 alpha popularity =
| region 2 alpha wins =
| region 2 alpha solo wins =
| region 2 alpha team wins =
| region 2 alpha normal clout =
| region 2 alpha pro clout =
| region 3 start =
| region 3 winner =
| region 3 alpha popularity =
| region 3 alpha wins =
| region 3 alpha solo wins =
| region 3 alpha team wins =
| region 3 alpha normal clout =
| region 3 alpha pro clout =
| suppress category =
}}
</nowiki></pre>

Revision as of 18:43, 8 January 2021

This template is used to create result boxes on Splatfest event articles.

For documentation, see User:Heddy/Test/2.