Template:Schedule/Splatfest: Difference between revisions
From Inkipedia, the Splatoon wiki
(new region parameter) |
(Template remodelated to support multiple regions in one single template) |
||
Line 4: | Line 4: | ||
|Splatoon 3=[[File:S3 Splatfest Logo.svg|24px|link=Splatfest]] | |Splatoon 3=[[File:S3 Splatfest Logo.svg|24px|link=Splatfest]] | ||
|#default=[[File:S2_Splatfest_Logo.svg|24px|link=Splatfest]]}} [[Splatfest]] Schedule</div> | |#default=[[File:S2_Splatfest_Logo.svg|24px|link=Splatfest]]}} [[Splatfest]] Schedule</div> | ||
<div style="display: flex | <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 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;">{{{1}}}</div> | <div class="bubbleboxbg-lighter" style="text-align: center; font-weight: bold; flex: 0 1 auto;">{{{1|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 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|{{{2}}}}} | <div style="align-self: center">{{#switch:{{Trim|{{{2}}}}} | ||
Line 14: | Line 15: | ||
|#default = <span class="splatfestTimer">{{Trim|{{{2}}}}}</span> | |#default = <span class="splatfestTimer">{{Trim|{{{2}}}}}</span> | ||
}}<br><!-- | }}<br><!-- | ||
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image | --><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image|{{{image1|{{#switch:{{{game|}}} | ||
|Splatoon=Splatfest {{{3}}} vs {{{4}}}.jpg | |Splatoon=Splatfest {{{3}}} vs {{{4}}}.jpg | ||
|Splatoon 3=S3 Splatfest {{{3}}} vs {{{4}}} vs {{{5}}}.png | |Splatoon 3=S3 Splatfest {{{3}}} vs {{{4}}} vs {{{5}}}.png | ||
|#default=S2 Splatfest {{{3}}} vs {{{4}}}.png}}}}}|x115px|link={{{link | |#default=S2 Splatfest {{{3}}} vs {{{4}}}.png}}}}}}}}|x115px|link={{{link|{{{link1|{{{3}}} vs. {{{4}}}}}}}}}]]</div><br><!-- | ||
--><span style="font-size: large;">[[{{{link | --><span style="font-size: large;">[[{{{link|{{{link1|{{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> | {{#if:{{{6|}}}|<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></includeonly><noinclude>__NOTOC__ | <div class="bubbleboxbg-lighter" style="text-align: center; font-weight: bold; flex: 0 1 auto;">{{{6}}}</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|{{{7}}}}} | |||
|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|{{{7}}}}}</span> | |||
}}<br><!-- | |||
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image2|{{#switch:{{{game|}}} | |||
|Splatoon=Splatfest {{{8}}} vs {{{9}}}.jpg | |||
|Splatoon 3=S3 Splatfest {{{8}}} vs {{{9}}} vs {{{10}}}.png | |||
|#default=S2 Splatfest {{{8}}} vs {{{9}}}.png}}}}}|x115px|link={{{link2|{{{8}}} vs. {{{9}}}}}}]]</div><br><!-- | |||
--><span style="font-size: large;">[[{{{link2|{{Trim|{{{8}}}}} vs. {{Trim|{{{9}}}}}}}}|{{#ifeq:{{Trim|{{{7}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{8}}}}}</span>|{{Trim|{{{8}}}}}}} vs. {{#ifeq:{{Trim|{{{7}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{9}}}}}</span>|{{Trim|{{{9}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{2}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{10}}}}}</span>|{{Trim|{{{10}}}}}}}|}}]]</span></div> | |||
</div></div>}} | |||
{{#if:{{{11|}}}|<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;">{{{11}}}</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|{{{12}}}}} | |||
|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|{{{12}}}}}</span> | |||
}}<br><!-- | |||
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image3|{{#switch:{{{game|}}} | |||
|Splatoon=Splatfest {{{13}}} vs {{{14}}}.jpg | |||
|Splatoon 3=S3 Splatfest {{{13}}} vs {{{14}}} vs {{{15}}}.png | |||
|#default=S2 Splatfest {{{13}}} vs {{{14}}}.png}}}}}|x115px|link={{{link3|{{{13}}} vs. {{{14}}}}}}]]</div><br><!-- | |||
--><span style="font-size: large;">[[{{{link3|{{Trim|{{{13}}}}} vs. {{Trim|{{{14}}}}}}}}|{{#ifeq:{{Trim|{{{12}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{13}}}}}</span>|{{Trim|{{{13}}}}}}} vs. {{#ifeq:{{Trim|{{{12}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{14}}}}}</span>|{{Trim|{{{14}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{12}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{15}}}}}</span>|{{Trim|{{{15}}}}}}}|}}]]</span></div> | |||
</div></div>}} | |||
{{#if:{{{16|}}}|<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;">{{{11}}}</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|{{{17}}}}} | |||
|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|{{{17}}}}}</span> | |||
}}<br><!-- | |||
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image4|{{#switch:{{{game|}}} | |||
|Splatoon=Splatfest {{{18}}} vs {{{19}}}.jpg | |||
|Splatoon 3=S3 Splatfest {{{18}}} vs {{{19}}} vs {{{20}}}.png | |||
|#default=S2 Splatfest {{{18}}} vs {{{19}}}.png}}}}}|x115px|link={{{link3|{{{18}}} vs. {{{19}}}}}}]]</div><br><!-- | |||
--><span style="font-size: large;">[[{{{link4|{{Trim|{{{18}}}}} vs. {{Trim|{{{19}}}}}}}}|{{#ifeq:{{Trim|{{{17}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{18}}}}}</span>|{{Trim|{{{18}}}}}}} vs. {{#ifeq:{{Trim|{{{17}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{19}}}}}</span>|{{Trim|{{{19}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{17}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{20}}}}}</span>|{{Trim|{{{20}}}}}}}|}}]]</span></div> | |||
</div></div>}} | |||
</div></div></includeonly><noinclude>__NOTOC__ | |||
Displays the current [[Splatfest]] schedule on the [[Main Page]]. | Displays the current [[Splatfest]] schedule on the [[Main Page]]. | ||
Line 64: | Line 109: | ||
=== Markup === | === Markup === | ||
; Without game parameter | ; Without game parameter | ||
<nowiki>{{Schedule/Splatfest|North America and Oceania|Dec 31 2:00|Sweater|Sock | <nowiki>{{Schedule/Splatfest|North America and Oceania|Dec 31 2:00|Sweater|Sock}}</nowiki> | ||
; With game parameter | ; With game parameter | ||
Line 73: | Line 118: | ||
=== Output === | === Output === | ||
{{Schedule/Splatfest|North America and Oceania|Dec 31 2:00|Sweater|Sock | {{Schedule/Splatfest|North America and Oceania|Dec 31 2:00|Sweater|Sock}} | ||
{{Schedule/Splatfest|Global|Jun 30 2:00|Callie|Marie|game=Splatoon}} | {{Schedule/Splatfest|Global|Jun 30 2:00|Callie|Marie|game=Splatoon}} | ||
{{Schedule/Splatfest|Global|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 20:39, 1 February 2024
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}}
- 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