Template:Schedule/Splatfest: Difference between revisions

From Inkipedia, the Splatoon wiki
(Added "link left", "link middle" and "link right" overrides, that work similar to the "image left" etc. overrides.)
(made it flexible)
Line 1: Line 1:
<includeonly>{{BubbleBox|background=bubbles|border={{SiteColor|Splatoon 2}}|style=min-width: 500px; margin: 4px 0px 0px 4px;|open}}
<includeonly>{{BubbleBox|background=bubbles|border={{SiteColor|Splatoon 2}}|style=min-width: 340px;|open}}
{| style="width: 100%; border-spacing: 0px; overflow: hidden; table-layout: fixed;"
<div style="background-color: rgba(255, 255, 255, 0.65); border: 2px solid #ffffff; border-radius: 8px; text-align: center; font-size: 20px; font-weight: bold; margin: 0 1px 1px;">[[File:S2_Splatfest_Logo.svg|24px|link=Splatfest]] [[Splatfest]] Schedule</div>
|- style="height: 1px;"
<div style="display: flex; flex-wrap: wrap; justify-content: center;">
|
<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 300px; max-width: 50%; margin: 1px; flex: 1 30%;">
|style="width: 1px;"|
<div style="background-color: rgba(255, 255, 255, 0.65); text-align: center; font-weight: bold;" id="salmonFirst">[[File:FlagUSA.svg|24px|link=]] NA/Oceania</div>
|
<div style="background-color: rgba(255, 255, 255, 0.4); padding: 2px 4px 0px 4px; text-align: center; font-size: 12px;">{{#switch:{{Trim|{{{1}}}}}
|style="width: 1px;"|
|
|-
|colspan="5" style="text-align: center; font-size: 20px; font-weight: bold; background-color: rgba(255, 255, 255, 0.65); border: 2px solid #ffffff; border-radius: 8px;"|[[File:S2_Splatfest_Logo.svg|24px|link=Splatfest]] [[Splatfest]] Schedule
|- style="height: 1px;"
|colspan="5"|
|- style="vertical-align: middle;"
|style="background-color: rgba(255, 255, 255, 0.65); border: 2px solid #ffffff; border-bottom: none; border-radius: 8px 8px 0px 0px; text-align: center; font-weight: bold;" id="salmonFirst"|[[File:FlagUSA.svg|24px|link=]] NA/Oceania
|rowspan="4"|
|style="background-color: rgba(255, 255, 255, 0.65); border: 2px solid #ffffff; border-bottom: none; border-radius: 8px 8px 0px 0px; text-align: center; font-weight: bold;" id="salmonSecond"|[[File:FlagEurope.svg|24px|link=]] Europe
|rowspan="4"|
|style="background-color: rgba(255, 255, 255, 0.65); border: 2px solid #ffffff; border-bottom: none; border-radius: 8px 8px 0px 0px; text-align: center; font-weight: bold;" id="salmonSecond"|[[File:FlagJapan.svg|24px|link=]] Japan
|-
|style="background-color: rgba(255, 255, 255, 0.4); border: 2px solid #ffffff; border-width: 0px 2px 0px 2px; text-align: center; font-size: 12px;"|{{#switch:{{Trim|{{{1}}}}}
|alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span>
|alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span>
|bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span>
|bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span>
|#default = <span id="splatfest1">{{Trim|{{{1}}}}}</span>
|#default = <span id="splatfest1">{{Trim|{{{1}}}}}</span>
}}
}}<br><!--
|style="background-color: rgba(255, 255, 255, 0.4); border: 2px solid #ffffff; border-width: 0px 2px 0px 2px; text-align: center; font-size: 12px;"|{{#switch:{{Trim|{{{4}}}}}
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image left|S2 Splatfest {{{2}}} vs {{{3}}}.png}}}|x64px|link={{{link left|{{{2}}} vs. {{{3}}}}}}]]</div><br><!--
-->[[{{{link left|{{Trim|{{{2}}}}} vs. {{Trim|{{{3}}}}}}}}|{{#ifeq:{{Trim|{{{1}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{2}}}}}</span>|{{Trim|{{{2}}}}}}} vs. {{#ifeq:{{Trim|{{{1}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{3}}}}}</span>|{{Trim|{{{3}}}}}}}]]
</div></div>
<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 300px; max-width: 50%; margin: 1px; flex: 1 30%;">
<div style="background-color: rgba(255, 255, 255, 0.65); text-align: center; font-weight: bold;" id="salmonSecond">[[File:FlagEurope.svg|24px|link=]] Europe</div>
<div style="background-color: rgba(255, 255, 255, 0.4); padding: 2px 4px 0px 4px; text-align: center; font-size: 12px;">{{#switch:{{Trim|{{{4}}}}}
|alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span>
|alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span>
|bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span>
|bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span>
|#default = <span id="splatfest2">{{Trim|{{{4}}}}}</span>
|#default = <span id="splatfest2">{{Trim|{{{4}}}}}</span>
}}
}}<br><!--
|style="background-color: rgba(255, 255, 255, 0.4); border: 2px solid #ffffff; border-width: 0px 2px 0px 2px; text-align: center; font-size: 12px;"|{{#switch:{{Trim|{{{7}}}}}
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image middle|S2 Splatfest {{{5}}} vs {{{6}}}.png}}}|x64px|link={{{link middle|{{{5}}} vs. {{{6}}}}}}]]</div><br><!--
-->[[{{{link middle|{{Trim|{{{5}}}}} vs. {{Trim|{{{6}}}}}}}}|{{#ifeq:{{Trim|{{{4}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{5}}}}}</span>|{{Trim|{{{5}}}}}}} vs. {{#ifeq:{{Trim|{{{4}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{6}}}}}</span>|{{Trim|{{{6}}}}}}}]]
</div></div>
<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 300px; max-width: 50%; margin: 1px; flex: 1 30%;">
<div style="background-color: rgba(255, 255, 255, 0.65); text-align: center; font-weight: bold;" id="salmonThird">[[File:FlagJapan.svg|24px|link=]] Japan</div>
<div style="background-color: rgba(255, 255, 255, 0.4); padding: 2px 4px 0px 4px; text-align: center; font-size: 12px;">{{#switch:{{Trim|{{{7}}}}}
|alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span>
|alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span>
|bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span>
|bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span>
|#default = <span id="splatfest3">{{Trim|{{{7}}}}}</span>
|#default = <span id="splatfest3">{{Trim|{{{7}}}}}</span>
}}
}}<br><!--
|-
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image right|S2 Splatfest {{{8}}} vs {{{9}}}.png}}}|x64px|link={{{link right|{{{8}}} vs. {{{9}}}}}}]]</div><br><!--
|style="background-color: rgba(255, 255, 255, 0.4); border: 2px solid #ffffff; border-width: 0px 2px 0px 2px; text-align: center; padding: 2px 4px 0px 4px;"|<div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image left|S2 Splatfest {{{2}}} vs {{{3}}}.png}}}|x64px|link={{{link left|{{{2}}} vs. {{{3}}}}}}]]</div>
-->[[{{{link right|{{Trim|{{{8}}}}} vs. {{Trim|{{{9}}}}}}}}|{{#ifeq:{{Trim|{{{7}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{8}}}}}</span>|{{Trim|{{{8}}}}}}} vs. {{#ifeq:{{Trim|{{{7}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{9}}}}}</span>|{{Trim|{{{9}}}}}}}]]
|style="background-color: rgba(255, 255, 255, 0.4); border: 2px solid #ffffff; border-width: 0px 2px 0px 2px; text-align: center; padding: 2px 4px 0px 4px;"|<div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image middle|S2 Splatfest {{{5}}} vs {{{6}}}.png}}}|x64px|link={{{link middle|{{{5}}} vs. {{{6}}}}}}]]</div>
</div></div>
|style="background-color: rgba(255, 255, 255, 0.4); border: 2px solid #ffffff; border-width: 0px 2px 0px 2px; text-align: center; padding: 2px 4px 0px 4px;"|<div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image right|S2 Splatfest {{{8}}} vs {{{9}}}.png}}}|x64px|link={{{link right|{{{8}}} vs. {{{9}}}}}}]]</div>
</div>
|-
|style="background-color: rgba(255, 255, 255, 0.4); border: 2px solid #ffffff; border-width: 0px 2px 2px 2px; border-radius: 0px 0px 8px 8px; text-align: center; font-size: 12px;"|[[{{{link left|{{Trim|{{{2}}}}} vs. {{Trim|{{{3}}}}}}}}|{{#ifeq:{{Trim|{{{1}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{2}}}}}</span>|{{Trim|{{{2}}}}}}} vs. {{#ifeq:{{Trim|{{{1}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{3}}}}}</span>|{{Trim|{{{3}}}}}}}]]
|style="background-color: rgba(255, 255, 255, 0.4); border: 2px solid #ffffff; border-width: 0px 2px 2px 2px; border-radius: 0px 0px 8px 8px; text-align: center; font-size: 12px;"|[[{{{link middle|{{Trim|{{{5}}}}} vs. {{Trim|{{{6}}}}}}}}|{{#ifeq:{{Trim|{{{4}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{5}}}}}</span>|{{Trim|{{{5}}}}}}} vs. {{#ifeq:{{Trim|{{{4}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{6}}}}}</span>|{{Trim|{{{6}}}}}}}]]
|style="background-color: rgba(255, 255, 255, 0.4); border: 2px solid #ffffff; border-width: 0px 2px 2px 2px; border-radius: 0px 0px 8px 8px; text-align: center; font-size: 12px;"|[[{{{link right|{{Trim|{{{8}}}}} vs. {{Trim|{{{9}}}}}}}}|{{#ifeq:{{Trim|{{{7}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{8}}}}}</span>|{{Trim|{{{8}}}}}}} vs. {{#ifeq:{{Trim|{{{7}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{9}}}}}</span>|{{Trim|{{{9}}}}}}}]]
|}
</div></includeonly><noinclude>__NOTOC__
</div></includeonly><noinclude>__NOTOC__
Displays the current [[Splatfest]] schedule on the [[Main Page]].
Displays the current [[Splatfest]] schedule on the [[Main Page]].

Revision as of 13:06, 16 February 2019

Displays the current Splatfest schedule on the Main Page.

Syntax

start_naoc Unnamed. The date and time, expressed as UTC, of the start of the North America/Oceanea Splatfest. Must be expressed in the following format: Mmm dd HH:nn
  • Mmm is the first three letters of the month
  • dd is the day of the month (one or two digits)
  • HH is the hour in 24-hour time (one or two digits)
  • nn is the minute (two digits), usually zero

Alternately, if the Splatfest has concluded, the winner can be specified with one of the following instead of a time:

  • alpha if the left team won
  • bravo if the right team won
alpha_naoc Unnamed. The name of the left team.
bravo_naoc Unnamed. The name of the right team.
start_eu Unnamed. The date and time of the start of the Europe Splatfest. Follows the same format as start_naoc.
alpha_eu Unnamed. The name of the left team.
bravo_eu Unnamed. The name of the right team.
start_jp Unnamed. The date and time of the start of the Japan Splatfest. Follows the same format as start_naoc.
alpha_jp Unnamed. The name of the left team.
bravo_jp Unnamed. The name of the right team.

Remarks

  • There is a JavaScript program backing this template that translates UTC times into the user's local time and updates the display according to whether the Splatfest has already started or finished.
  • If JavaScript is not available, the UTC time will be displayed with the "UTC" designation.

Example

Markup

{{Schedule/Splatfest
|Dec 31 2:00|Sweater|Sock<!--
-->|alpha|Film|Book<!--
-->|bravo|Vampire|Werewolf<!--
-->}}

Output

Splatfest Schedule
NA/Oceania
Dec 31 2:00

Sweater vs. Sock
Europe
Previous (Winner in bold blue)

Film vs. Book
Japan
Previous (Winner in bold blue)

Vampire vs. Werewolf