Template:Schedule/Splatfest: Difference between revisions

From Inkipedia, the Splatoon wiki
(Added support to charlie who bit my finger)
m (back to png)
Line 15: Line 15:
--><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}}} vs {{{4}}}.jpg
|Splatoon 3=S3 Splatfest {{{2}}} vs {{{3}}} vs {{{4}}}.png
|#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}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{1}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{4}}}}}</span>|{{Trim|{{{4}}}}}}}|}}]]</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}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{1}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{4}}}}}</span>|{{Trim|{{{4}}}}}}}|}}]]</span>
Line 69: Line 69:


; With S3 system
; With S3 system
  <nowiki>{{Schedule/Splatfest|Aug 27 16:00|Rock|Paper|Scissors|game=Splatoon 3|link left=Rock vs. Paper vs. Scissors}}</nowiki>
  <nowiki>{{Schedule/Splatfest|Sep 24 0:00|Gear|Grub|Fun|game=Splatoon 3|link left=Gear vs. Grub vs. Fun}}</nowiki>


=== Output ===
=== Output ===
{{Schedule/Splatfest|Dec 31 2:00|Sweater|Sock|alpha|Film|Book|bravo|Vampire|Werewolf}}
{{Schedule/Splatfest|Dec 31 2:00|Sweater|Sock|alpha|Film|Book|bravo|Vampire|Werewolf}}
{{Schedule/Splatfest|Jun 30 2:00|Callie|Marie|game=Splatoon}}
{{Schedule/Splatfest|Jun 30 2:00|Callie|Marie|game=Splatoon}}
{{Schedule/Splatfest|Aug 27 16:00|Rock|Paper|Scissors|game=Splatoon 3|link left=Rock vs. Paper vs. Scissors}}
{{Schedule/Splatfest|Sep 24 0:00|Gear|Grub|Fun|game=Splatoon 3|link left=Gear vs. Grub vs. Fun}}
 
</noinclude>
</noinclude>

Revision as of 20:20, 26 September 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 first team won
  • bravo if the second team won
  • charlie if the third 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, logo, and file format 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}}
With S3 system
{{Schedule/Splatfest|Sep 24 0:00|Gear|Grub|Fun|game=Splatoon 3|link left=Gear vs. Grub vs. Fun}}

Output

Splatfest Schedule
Global