Template:Schedule/Splatfest: Difference between revisions

From Inkipedia, the Splatoon wiki
m (oops, wrong template)
(Removed the second and third region boxes, due to Splatfests being global. Revert this edit if they go regional again.)
Line 3: Line 3:
<div style="display: flex; flex-wrap: wrap; justify-content: center;">
<div style="display: flex; flex-wrap: wrap; justify-content: center;">
<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 50%; margin: 1px; flex: 1 30%;">
<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; 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="salmonFirst">[[File:FlagUSA.svg|24px|link=]] NA/Oceania</div>
<div style="background-color: rgba(255, 255, 255, 0.65); text-align: center; font-weight: bold;" id="salmonFirst">[[File:FlagUSA.svg|24px|link=]] Global</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}}}}}
<div style="background-color: rgba(255, 255, 255, 0.4); padding: 2px 4px 0px 4px; 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>
Line 11: Line 11:
--><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><!--
--><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}}}}}}}]]
-->[[{{{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: 210px; 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>
|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>
}}<br><!--
--><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: 210px; 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>
|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>
}}<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><!--
-->[[{{{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></div>
</div></div>
</div>
</div>

Revision as of 21:54, 21 July 2020

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
Global
Dec 31 2:00

Sweater vs. Sock