Template:Schedule/Splatfest: Difference between revisions

From Inkipedia, the Splatoon wiki
m (It's Team Sock, per SplatNet data)
(linked images to the splatfest articles)
Line 34: Line 34:
}}
}}
|-
|-
|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 {{Trim|{{{2}}}}} vs {{Trim|{{{3}}}}}.png}}}|x64px|link=]]</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 left|S2 Splatfest {{{2}}} vs {{{3}}}.png}}}|x64px|link={{{2}}} vs. {{{3}}}]]</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 middle|S2 Splatfest {{Trim|{{{5}}}}} vs {{Trim|{{{6}}}}}.png}}}|x64px|link=]]</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 middle|S2 Splatfest {{{5}}} vs {{{6}}}.png}}}|x64px|link={{{5}}} vs. {{{6}}}]]</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 {{Trim|{{{8}}}}} vs {{Trim|{{{9}}}}}.png}}}|x64px|link=]]</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={{{8}}} vs. {{{9}}}]]</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;"|{{#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;"|{{#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}}}}}}}

Revision as of 19:46, 15 September 2018

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 Europe Japan
Dec 31 2:00 Previous (Winner in bold blue) Previous (Winner in bold blue)
[[File:S2 Splatfest Sweater vs Sock

.png|x64px|link=Sweater vs. Sock

]]
[[File:S2 Splatfest Film vs Book

.png|x64px|link=Film vs. Book

]]
[[File:S2 Splatfest Vampire vs Werewolf

.png|x64px|link=Vampire vs. Werewolf

]]
Sweater vs. Sock Film vs. Book Vampire vs. Werewolf