Template:Schedule/Splatfest: Difference between revisions
From Inkipedia, the Splatoon wiki
GuyPerfect (talk | contribs) mNo edit summary |
(note option added) |
||
(47 intermediate revisions by 15 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{BubbleBox|background= | <includeonly>{{BubbleBox|background=splatfest|border={{SiteColor|{{{game|Splatoon 2}}}}}|style=flex: 9999 0 auto; overflow-y: auto; display: flex; flex-flow: column;|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;">{{#switch:{{{game|}}} | |||
|Splatoon=[[File:Splatfest Logo.png|24px|link=Splatfest]] | |||
|Splatoon 3=[[File:S3 Splatfest Logo.svg|24px|link=Splatfest]] | |||
|#default=[[File:S2_Splatfest_Logo.svg|24px|link=Splatfest]]}} [[Splatfest]]</div> | |||
<div style="display: flex; flex-wrap: wrap; justify-content: center; flex: 1 1 auto;"> | |||
<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 100%; margin: 1px; flex: 1 30%; display: flex; flex-flow: column;"> | |||
<div class="bubbleboxbg-lighter" style="text-align: center; font-weight: bold; flex: 0 1 auto;">{{{region|Global}}}</div> | |||
<div class="bubbleboxbg-darker" style="padding: 2px 4px 0px 4px; text-align: center; flex: 1 1 auto; display: flex; justify-content: center"> | |||
<div style="align-self: center">{{#switch:{{Trim|{{{start}}}}} | |||
| | |||
| | |||
|alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | |alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | ||
|bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | |bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | ||
|#default = | |charlie = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | ||
}} | |#default = <span class="splatfestTimer">{{Trim|{{{start}}}}}</span> | ||
|style=" | }}<br><!-- | ||
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image|{{{image1|{{#switch:{{{game|}}} | |||
|Splatoon=S Splatfest {{{alpha}}} vs {{{bravo}}}.jpg | |||
|Splatoon 3=S3 Splatfest {{{alpha}}} vs {{{bravo}}} vs {{{charlie}}}.png | |||
|#default=S2 Splatfest {{{alpha}}} vs {{{bravo}}}.png}}}}}}}}|x115px|link={{{link|{{{link1|{{{alpha}}} vs. {{{bravo}}}}}}}}}]]</div><br><!-- | |||
--><span style="font-size: large;">[[{{{link|{{{link1|{{Trim|{{{alpha}}}}} vs. {{Trim|{{{bravo}}}}}}}}}}}|{{#ifeq:{{Trim|{{{start}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{alpha}}}}}</span>|{{Trim|{{{alpha}}}}}}} vs. {{#ifeq:{{Trim|{{{start}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{bravo}}}}}</span>|{{Trim|{{{bravo}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{start}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{charlie}}}}}</span>|{{Trim|{{{charlie}}}}}}}|}}]]</span></div> | |||
</div><div class="bubbleboxbg-lighter" style="text-align: center"><small>{{{note|}}}</small></div></div> | |||
{{#if:{{{region2|}}}|<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 100%; margin: 1px; flex: 1 30%; display: flex; flex-flow: column;"> | |||
<div class="bubbleboxbg-lighter" style="text-align: center; font-weight: bold; flex: 0 1 auto;">{{{region2}}}</div> | |||
<div class="bubbleboxbg-darker" style="padding: 2px 4px 0px 4px; text-align: center; flex: 1 1 auto; display: flex; justify-content: center"> | |||
<div style="align-self: center">{{#switch:{{Trim|{{{start2}}}}} | |||
|alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | |||
|bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | |||
|charlie = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | |||
|#default = <span class="splatfestTimer">{{Trim|{{{start2}}}}}</span> | |||
}}<br><!-- | |||
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image2|{{#switch:{{{game|}}} | |||
|Splatoon=S Splatfest {{{alpha2}}} vs {{{bravo2}}}.jpg | |||
|Splatoon 3=S3 Splatfest {{{alpha2}}} vs {{{bravo2}}} vs {{{charlie2}}}.png | |||
|#default=S2 Splatfest {{{alpha2}}} vs {{{bravo2}}}.png}}}}}|x115px|link={{{link2|{{{alpha2}}} vs. {{{bravo2}}}}}}]]</div><br><!-- | |||
--><span style="font-size: large;">[[{{{link2|{{Trim|{{{alpha2}}}}} vs. {{Trim|{{{bravo2}}}}}}}}|{{#ifeq:{{Trim|{{{start2}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{alpha2}}}}}</span>|{{Trim|{{{alpha2}}}}}}} vs. {{#ifeq:{{Trim|{{{start2}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{bravo2}}}}}</span>|{{Trim|{{{bravo2}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{start2}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{charlie2}}}}}</span>|{{Trim|{{{charlie2}}}}}}}|}}]]</span></div> | |||
</div><div class="bubbleboxbg-lighter" style="text-align: center"><small>{{{note2|}}}</small></div></div>}} | |||
{{#if:{{{region3|}}}|<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 100%; margin: 1px; flex: 1 30%; display: flex; flex-flow: column;"> | |||
<div class="bubbleboxbg-lighter" style="text-align: center; font-weight: bold; flex: 0 1 auto;">{{{region3}}}</div> | |||
<div class="bubbleboxbg-darker" style="padding: 2px 4px 0px 4px; text-align: center; flex: 1 1 auto; display: flex; justify-content: center"> | |||
<div style="align-self: center">{{#switch:{{Trim|{{{start3}}}}} | |||
|alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | |alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | ||
|bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | |bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | ||
|#default = | |charlie = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | ||
}} | |#default = <span class="splatfestTimer">{{Trim|{{{start3}}}}}</span> | ||
|style=" | }}<br><!-- | ||
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image3|{{#switch:{{{game|}}} | |||
|Splatoon=S Splatfest {{{alpha3}}} vs {{{alpha3}}}.jpg | |||
|Splatoon 3=S3 Splatfest {{{alpha3}}} vs {{{bravo3}}} vs {{{charlie3}}}.png | |||
|#default=S2 Splatfest {{{alpha3}}} vs {{{bravo3}}}.png}}}}}|x115px|link={{{link3|{{{alpha3}}} vs. {{{bravo3}}}}}}]]</div><br><!-- | |||
--><span style="font-size: large;">[[{{{link3|{{Trim|{{{alpha3}}}}} vs. {{Trim|{{{bravo3}}}}}}}}|{{#ifeq:{{Trim|{{{start3}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{alpha3}}}}}</span>|{{Trim|{{{alpha3}}}}}}} vs. {{#ifeq:{{Trim|{{{start3}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{bravo3}}}}}</span>|{{Trim|{{{bravo3}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{start3}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{charlie3}}}}}</span>|{{Trim|{{{charlie3}}}}}}}|}}]]</span></div> | |||
</div><div class="bubbleboxbg-lighter" style="text-align: center"><small>{{{note3|}}}</small></div></div>}} | |||
{{#if:{{{region4|}}}|<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 100%; margin: 1px; flex: 1 30%; display: flex; flex-flow: column;"> | |||
<div class="bubbleboxbg-lighter" style="text-align: center; font-weight: bold; flex: 0 1 auto;">{{{region4}}}</div> | |||
<div class="bubbleboxbg-darker" style="padding: 2px 4px 0px 4px; text-align: center; flex: 1 1 auto; display: flex; justify-content: center"> | |||
<div style="align-self: center">{{#switch:{{Trim|{{{start4}}}}} | |||
|alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | |alpha = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | ||
|bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | |bravo = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | ||
|# | |charlie = Previous <span style="font-size: 10px;">(Winner in <span style="font-weight: bold; color: #000080;">bold blue</span>)</span> | ||
}} | |#default = <span class="splatfestTimer">{{Trim|{{{start4}}}}}</span> | ||
}}<br><!-- | |||
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image4|{{#switch:{{{game|}}} | |||
| | |Splatoon=S Splatfest {{{alpha4}}} vs {{{bravo4}}}.jpg | ||
|Splatoon 3=S3 Splatfest {{{alpha4}}} vs {{{bravo4}}} vs {{{charlie4}}}.png | |||
|#default=S2 Splatfest {{{alpha4}}} vs {{{bravo4}}}.png}}}}}|x115px|link={{{link3|{{{alpha4}}} vs. {{{bravo4}}}}}}]]</div><br><!-- | |||
--><span style="font-size: large;">[[{{{link4|{{Trim|{{{alpha4}}}}} vs. {{Trim|{{{bravo4}}}}}}}}|{{#ifeq:{{Trim|{{{start4}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{alpha4}}}}}</span>|{{Trim|{{{alpha4}}}}}}} vs. {{#ifeq:{{Trim|{{{start4}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{bravo4}}}}}</span>|{{Trim|{{{bravo4}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{start4}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{charlie4}}}}}</span>|{{Trim|{{{charlie4}}}}}}}|}}]]</span></div> | |||
</div><div class="bubbleboxbg-lighter" style="text-align: center"><small>{{{note4|}}}</small></div></div>}} | |||
|style=" | </div></div></includeonly><noinclude>__NOTOC__ | ||
Displays the current [[Splatfest]] schedule on the [[Main Page]]. | |||
== Syntax == | |||
{| class="wikitable" | |||
|- style="vertical-align: top;" | |||
|<code>region</code>||The region of the Splatfest. In case of more Splatfests, options for <code>region2=</code>, <code>region3=</code> and <code>region4=</code> are available (see '''Example'''). | |||
|- style="vertical-align: top;" | |||
|<code>start</code>||The date and time, expressed as UTC, of the start of a Splatfest. Must be expressed in the following format: <code style="white-space: nowrap;">Mmm dd HH:nn yyyy</code> | |||
*<code>Mmm</code> is the first three letters of the month | |||
*<code>dd</code> is the day of the month (one or two digits) | |||
*<code>HH</code> is the hour in 24-hour time (one or two digits) | |||
*<code>nn</code> is the minute (two digits), usually zero | |||
*<code>yyyy</code> is the year | |||
In case of more Splatfests, options for <code>start2=</code>, <code>start3=</code> and <code>start4=</code> are available (see '''Example'''). | |||
Alternately, if the Splatfest has concluded, the winner can be specified with one of the following instead of a time: | |||
*<code>alpha</code> if the first team won | |||
*<code>bravo</code> if the second team won | |||
*<code>charlie</code> if the third team won | |||
|- style="vertical-align: top;" | |||
|<code>alpha</code>|||The name of the first team. In case of more Splatfests, options for <code>alpha2=</code>, <code>alpha3=</code> and <code>alpha4=</code> are available (see '''Example'''). | |||
|- style="vertical-align: top;" | |||
|<code>bravo</code>||The name of the second team. In case of more Splatfests, options for <code>bravo2=</code>, <code>bravo3=</code> and <code>bravo4=</code> are available (see '''Example'''). | |||
|- style="vertical-align: top;" | |||
|<code>charlie</code>||The name of the third team. In case of more Splatfests, options for <code>charlie2=</code>, <code>charlie3=</code> and <code>charlie4=</code> are available (see '''Example'''). | |||
|- style="vertical-align: top;" | |||
|<code>game=</code>||The [[Template:SiteColor|site color]] of the widget border, logo, and file format shown. | |||
|- style="vertical-align: top;" | |||
|<code>link1=</code>||The link to the Splatfest's page. In case of more Splatfests, options for <code>link2=</code>, <code>link3=</code> and <code>link4=</code> are available (see '''Example'''). | |||
|- style="vertical-align: top;" | |||
|<code>image1=</code>||The link to the Splatfest's page. In case of more Splatfests, options for <code>image2=</code>, <code>image3=</code> and <code>image4=</code> are available (see '''Example'''). | |||
|- style="vertical-align: top;" | |||
|<code>note=</code>|| Optional. Adds a note at the bottom if used. In case of more Splatfests, options for <code>note2=</code>, <code>note3=</code> and <code>note4=</code> are available. | |||
|} | |} | ||
== 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 === | === Markup === | ||
; Without game parameter | |||
<nowiki>{{Schedule/Splatfest|North America and Oceania|Dec 31 2:00|Sweater|Sock}}</nowiki> | |||
; With game parameter and two Splatfest | |||
<nowiki>{{Schedule/Splatfest | <nowiki>{{Schedule/Splatfest | ||
|alpha| | |game=Splatoon | ||
| | |region=Global | ||
| | |start=Jun 30 2:00 | ||
|alpha=Callie | |||
|bravo=Marie | |||
|link=Callie vs. Marie | |||
}}</nowiki> | |||
; With S3 system and one Splatfest | |||
<nowiki>{{Schedule/Splatfest | |||
|game=Splatoon 3 | |||
|region=Global | |||
|Sep 24 0:00 | |||
|alpha=Gear | |||
|bravo=Grub | |||
|charlie=Fun | |||
|link=Gear vs. Grub vs. Fun | |||
}}</nowiki> | |||
; With S3 system and one Splatfest | |||
<nowiki>{{Schedule/Splatfest | |||
|Japan | |||
|Feb 17 0:00 2024 | |||
|Red Bean Paste | |||
|Custard | |||
|Whipped Cream | |||
|game=Splatoon 3 | |||
|link1=Red Bean Paste vs. Custard vs. Whipped Cream | |||
|image1=S3 Splatfest Red Bean Paste vs. Custard vs. Whipped Cream Text.jpg | |||
|The Americas, Australia and New Zealand<br>Europe<br>Hong Kong and South Korea | |||
|Feb 17 0:00 2024 | |||
|Friday | |||
|Saturday | |||
|Sunday | |||
|link2=Friday vs. Saturday vs. Sunday | |||
|image2=S3 Splatfest Friday vs. Saturday vs. Sunday UK Text.jpg | |||
}}</nowiki> | }}</nowiki> | ||
=== Output === | === Output === | ||
{{ | {{Schedule/Splatfest | ||
|alpha| | |game=Splatoon | ||
| | |region=Global | ||
| | |start=Jun 30 2:00 | ||
|alpha=Callie | |||
|bravo=Marie | |||
|link=Callie vs. Marie | |||
}} | |||
{{Schedule/Splatfest | |||
|game=Splatoon 3 | |||
|region=Global | |||
|Sep 24 0:00 | |||
|alpha=Gear | |||
|bravo=Grub | |||
|charlie=Fun | |||
|link=Gear vs. Grub vs. Fun | |||
}} | |||
{{Schedule/Splatfest | |||
|game=Splatoon 3 | |||
|region=Japan | |||
|start=Feb 17 0:00 2024 | |||
|alpha=Red Bean Paste | |||
|bravo=Custard | |||
|charlie=Whipped Cream | |||
|link1=Red Bean Paste vs. Custard vs. Whipped Cream | |||
|image1=S3 Splatfest Red Bean Paste vs. Custard vs. Whipped Cream Text.jpg | |||
|region2=The Americas, Australia and New Zealand<br>Europe<br>Hong Kong and South Korea | |||
|start2=Feb 17 0:00 2024 | |||
|alpha2=Friday | |||
|bravo2=Saturday | |||
|charlie2=Sunday | |||
|link2=Friday vs. Saturday vs. Sunday | |||
|image2=S3 Splatfest Friday vs. Saturday vs. Sunday UK Text.jpg | |||
}} | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 12:13, 22 June 2024
Displays the current Splatfest schedule on the Main Page.
Syntax
region |
The region of the Splatfest. In case of more Splatfests, options for region2= , region3= and region4= are available (see Example).
|
start |
The date and time, expressed as UTC, of the start of a Splatfest. Must be expressed in the following format: Mmm dd HH:nn yyyy
In case of more Splatfests, options for Alternately, if the Splatfest has concluded, the winner can be specified with one of the following instead of a time:
|
alpha |
The name of the first team. In case of more Splatfests, options for alpha2= , alpha3= and alpha4= are available (see Example).
|
bravo |
The name of the second team. In case of more Splatfests, options for bravo2= , bravo3= and bravo4= are available (see Example).
|
charlie |
The name of the third team. In case of more Splatfests, options for charlie2= , charlie3= and charlie4= are available (see Example).
|
game= |
The site color of the widget border, logo, and file format shown. |
link1= |
The link to the Splatfest's page. In case of more Splatfests, options for link2= , link3= and link4= are available (see Example).
|
image1= |
The link to the Splatfest's page. In case of more Splatfests, options for image2= , image3= and image4= are available (see Example).
|
note= |
Optional. Adds a note at the bottom if used. In case of more Splatfests, options for note2= , note3= and note4= are available.
|
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|North America and Oceania|Dec 31 2:00|Sweater|Sock}}
- With game parameter and two Splatfest
{{Schedule/Splatfest |game=Splatoon |region=Global |start=Jun 30 2:00 |alpha=Callie |bravo=Marie |link=Callie vs. Marie }}
- With S3 system and one Splatfest
{{Schedule/Splatfest |game=Splatoon 3 |region=Global |Sep 24 0:00 |alpha=Gear |bravo=Grub |charlie=Fun |link=Gear vs. Grub vs. Fun }}
- With S3 system and one Splatfest
{{Schedule/Splatfest |Japan |Feb 17 0:00 2024 |Red Bean Paste |Custard |Whipped Cream |game=Splatoon 3 |link1=Red Bean Paste vs. Custard vs. Whipped Cream |image1=S3 Splatfest Red Bean Paste vs. Custard vs. Whipped Cream Text.jpg |The Americas, Australia and New Zealand<br>Europe<br>Hong Kong and South Korea |Feb 17 0:00 2024 |Friday |Saturday |Sunday |link2=Friday vs. Saturday vs. Sunday |image2=S3 Splatfest Friday vs. Saturday vs. Sunday UK Text.jpg }}
Output
Global
Global
Japan
The Americas, Australia and New Zealand
Europe
Hong Kong and South Korea
Europe
Hong Kong and South Korea