Template:Schedule/Splatfest: Difference between revisions

From Inkipedia, the Splatoon wiki
(image fix)
m (I guess we are returning to jpgs)
Line 13: Line 13:
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image left|{{#switch:{{{game|}}}
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image left|{{#switch:{{{game|}}}
|Splatoon=Splatfest {{{2}}} vs {{{3}}}.jpg
|Splatoon=Splatfest {{{2}}} vs {{{3}}}.jpg
|Splatoon 3=S3 Splatfest {{{2}}} vs {{{3}}}.png
|Splatoon 3=S3 Splatfest {{{2}}} vs {{{3}}}.jpg
|#default=S2 Splatfest {{{2}}} vs {{{3}}}.png}}}}}|200px|link={{{link left|{{{2}}} vs. {{{3}}}}}}]]</div><br><!--
|#default=S2 Splatfest {{{2}}} vs {{{3}}}.png}}}}}|200px|link={{{link left|{{{2}}} vs. {{{3}}}}}}]]</div><br><!--
--><span style="font-size: large;">[[{{{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}}}}}}}]]</span>
--><span style="font-size: large;">[[{{{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}}}}}}}]]</span>

Revision as of 10:16, 20 August 2022

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 yyyy
  • 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
  • yyyy is the year

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.
game= Splatoon 2 The site color of the widget border and logo shown.

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

Without game parameter
{{Schedule/Splatfest
|Dec 31 2:00|Sweater|Sock<!--
-->|alpha|Film|Book<!--
-->|bravo|Vampire|Werewolf<!--
-->}}
With game parameter
{{Schedule/Splatfest
|Jun 30 2:00|Callie|Marie|game=Splatoon}}

Output

Splatfest Schedule
Global
Dec 31 2:00

Sweater vs. Sock