Template:Schedule/Splatfest: Difference between revisions

From Inkipedia, the Splatoon wiki
m (→‎Remarks: Adding note of what happens when JavaScript isn't available)
(added image override)
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: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 {{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: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 {{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: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 {{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 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 05:10, 3 July 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|Socks
|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)
Sweater vs. Socks Film vs. Book Vampire vs. Werewolf