Template:Schedule/Splatfest: Difference between revisions
From Inkipedia, the Splatoon wiki
SuperHamster (talk | contribs) (Removing ID, doesn't appear to be used for anything) |
(new region parameter) |
||
Line 6: | Line 6: | ||
<div style="display: flex; flex-flow: column; flex-wrap: wrap; justify-content: center; flex: 1 1 auto;"> | <div style="display: flex; flex-flow: column; 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 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;"> | <div class="bubbleboxbg-lighter" style="text-align: center; font-weight: bold; flex: 0 1 auto;">{{{1}}}</div> | ||
<div class="bubbleboxbg-darker" style="padding: 2px 4px 0px 4px; text-align: center; flex: 1 1 auto; display: flex; justify-content: center"> | <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|{{{ | <div style="align-self: center">{{#switch:{{Trim|{{{2}}}}} | ||
|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> | |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|{{{ | |#default = <span class="splatfestTimer">{{Trim|{{{2}}}}}</span> | ||
}}<br><!-- | }}<br><!-- | ||
--><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 {{{ | |Splatoon=Splatfest {{{3}}} vs {{{4}}}.jpg | ||
|Splatoon 3=S3 Splatfest {{{ | |Splatoon 3=S3 Splatfest {{{3}}} vs {{{4}}} vs {{{5}}}.png | ||
|#default=S2 Splatfest {{{ | |#default=S2 Splatfest {{{3}}} vs {{{4}}}.png}}}}}|x115px|link={{{link left|{{{3}}} vs. {{{4}}}}}}]]</div><br><!-- | ||
--><span style="font-size: large;">[[{{{link left|{{Trim|{{{ | --><span style="font-size: large;">[[{{{link left|{{Trim|{{{3}}}}} vs. {{Trim|{{{4}}}}}}}}|{{#ifeq:{{Trim|{{{2}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{3}}}}}</span>|{{Trim|{{{3}}}}}}} vs. {{#ifeq:{{Trim|{{{2}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{4}}}}}</span>|{{Trim|{{{4}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{2}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{5}}}}}</span>|{{Trim|{{{5}}}}}}}|}}]]</span></div> | ||
</div></div> | </div></div> | ||
</div> | </div> | ||
Line 64: | Line 64: | ||
=== Markup === | === Markup === | ||
; Without game parameter | ; Without game parameter | ||
<nowiki>{{Schedule/Splatfest|Dec 31 2:00|Sweater|Sock|alpha|Film|Book|bravo|Vampire|Werewolf}}</nowiki> | <nowiki>{{Schedule/Splatfest|North America and Oceania|Dec 31 2:00|Sweater|Sock|alpha|Film|Book|bravo|Vampire|Werewolf}}</nowiki> | ||
; With game parameter | ; With game parameter | ||
<nowiki>{{Schedule/Splatfest|Jun 30 2:00|Callie|Marie|game=Splatoon}}</nowiki> | <nowiki>{{Schedule/Splatfest|Global|Jun 30 2:00|Callie|Marie|game=Splatoon}}</nowiki> | ||
; With S3 system | ; With S3 system | ||
<nowiki>{{Schedule/Splatfest|Sep 24 0:00|Gear|Grub|Fun|game=Splatoon 3|link left=Gear vs. Grub vs. Fun}}</nowiki> | <nowiki>{{Schedule/Splatfest|Global|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|North America and Oceania|Dec 31 2:00|Sweater|Sock|alpha|Film|Book|bravo|Vampire|Werewolf}} | ||
{{Schedule/Splatfest|Jun 30 2:00|Callie|Marie|game=Splatoon}} | {{Schedule/Splatfest|Global|Jun 30 2:00|Callie|Marie|game=Splatoon}} | ||
{{Schedule/Splatfest|Sep 24 0:00|Gear|Grub|Fun|game=Splatoon 3|link left=Gear vs. Grub vs. Fun}} | {{Schedule/Splatfest|Global|Sep 24 0:00|Gear|Grub|Fun|game=Splatoon 3|link left=Gear vs. Grub vs. Fun}} | ||
</noinclude> | </noinclude> |
Revision as of 22:30, 8 November 2023
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
Alternately, if the Splatfest has concluded, the winner can be specified with one of the following instead of a time:
|
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|North America and Oceania|Dec 31 2:00|Sweater|Sock|alpha|Film|Book|bravo|Vampire|Werewolf}}
- With game parameter
{{Schedule/Splatfest|Global|Jun 30 2:00|Callie|Marie|game=Splatoon}}
- With S3 system
{{Schedule/Splatfest|Global|Sep 24 0:00|Gear|Grub|Fun|game=Splatoon 3|link left=Gear vs. Grub vs. Fun}}
Output
North America and Oceania
![](http://cdn.wikimg.net/en/splatoonwiki/images/thumb/3/3e/Splatfest_Logo.png/24px-Splatfest_Logo.png)
Global
Global