Template:Schedule/Splatfest: Difference between revisions

From Inkipedia, the Splatoon wiki
(Replaced style="background" with class)
(Added game parameter for changing Splatoon/Splatoon 2/Splatoon 3 context)
Line 1: Line 1:
<includeonly>{{BubbleBox|background=bubbles|border={{SiteColor|Splatoon 2}}|style=min-width: 250px;|open}}
<includeonly>{{BubbleBox|background=bubbles|border={{SiteColor|{{{game|Splatoon 3}}}}}|style=min-width: 250px;|open}}
<div class="bubbleboxbg-lighter" style="border: 2px solid #ffffff; border-radius: 8px; text-align: center; font-size: 20px; font-weight: bold; margin: 0 1px 1px;">[[File:S2_Splatfest_Logo.svg|24px|link=Splatfest]] [[Splatfest]] Schedule</div>
<div class="bubbleboxbg-lighter" style="border: 2px solid #ffffff; border-radius: 8px; text-align: center; font-size: 20px; font-weight: bold; margin: 0 1px 1px;">{{#switch:{{{game|}}}
|Splatoon=[[File:Splatfest Logo.png|24px|link=Splatfest]]
|#default=[[File:S2_Splatfest_Logo.svg|24px|link=Splatfest]]}} [[Splatfest]] Schedule</div>
<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: 100%; margin: 1px; flex: 1 30%;">
<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 100%; margin: 1px; flex: 1 30%;">
Line 44: Line 46:
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>bravo_jp</code>||Unnamed.||The name of the right team.
|<code>bravo_jp</code>||Unnamed.||The name of the right team.
|- style="vertical-align: top;"
|<code>game=</code>||Splatoon 2||The [[Template:SiteColor|site color]] of the widget border and logo shown.
|}
|}


Line 52: Line 56:
== Example ==
== Example ==
=== Markup ===
=== Markup ===
; Without game parameter
<nowiki>{{Schedule/Splatfest
|Dec 31 2:00|Sweater|Sock<!--
-->|alpha|Film|Book<!--
-->|bravo|Vampire|Werewolf<!--
-->}}</nowiki>
; With game parameter
  <nowiki>{{Schedule/Splatfest
  <nowiki>{{Schedule/Splatfest
|Dec 31 2:00|Sweater|Sock<!--
|Dec 31 2:00|Sweater|Sock<!--
-->|alpha|Film|Book<!--
-->|alpha|Film|Book<!--
-->|bravo|Vampire|Werewolf<!--
-->|bravo|Vampire|Werewolf<!--
-->|game=Splatoon<!--
-->}}</nowiki>
-->}}</nowiki>


Line 63: Line 76:
-->|alpha|Film|Book<!--
-->|alpha|Film|Book<!--
-->|bravo|Vampire|Werewolf<!--
-->|bravo|Vampire|Werewolf<!--
-->}}
{{Schedule/Splatfest
|Dec 31 2:00|Sweater|Sock<!--
-->|alpha|Film|Book<!--
-->|bravo|Vampire|Werewolf<!--
-->|game=Splatoon<!--
-->}}
-->}}
</noinclude>
</noinclude>

Revision as of 10:00, 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
|Dec 31 2:00|Sweater|Sock<!--
-->|alpha|Film|Book<!--
-->|bravo|Vampire|Werewolf<!--
-->|game=Splatoon<!--
-->}}

Output

Splatfest Schedule
Global
Dec 31 2:00

Sweater vs. Sock
Splatfest Schedule
Global
Dec 31 2:00

Sweater vs. Sock