User:Shahar/Test/8: Difference between revisions
From Inkipedia, the Splatoon wiki
(CD testing) |
(Undo revision 513652 by Perfectionist (talk)) Tag: Undo |
||
(12 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| | <includeonly>{{BubbleBox|background=bubbles|border={{SiteColor|{{{game|Splatoon 2}}}}}|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;">{{#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]] Schedule</div> | |||
<div style="display: flex; flex-wrap: wrap; justify-content: center;"> | |||
| | {{#if:{{{region|}}}| | ||
<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 100%; margin: 1px; flex: 1 20%; display: flex; flex-flow: column;"> | |||
<div class="bubbleboxbg-lighter" style="text-align: center; font-weight: bold; flex: 0 1 auto;">Americas & Oceania</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|{{{1}}}}} | |||
|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|{{{1}}}}}</span> | |||
| | }}<br><!-- | ||
{{ | --><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image left|{{#switch:{{{game|}}} | ||
| | |Splatoon=Splatfest {{{2}}} vs {{{3}}}.jpg | ||
|Splatoon 3=S3 Splatfest {{Trim|{{{2}}}}} vs {{Trim|{{{3}}}}} vs {{Trim|{{{4}}}}}.png | |||
|#default=S2 Splatfest {{{2}}} vs {{{3}}}.png}}}}}|200px|link={{{link left|{{{2}}} vs. {{{3}}} vs. {{{4}}}}}}]]</div><br><!-- | |||
--><span style="font-size: large;">[[{{{link left|{{Trim|{{{2}}}}} vs. {{Trim|{{{3}}}}} vs. {{Trim|{{{4}}}}}}}}|{{#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> | |||
|- | </div></div></div> | ||
{{ | <div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 100%; margin: 1px; flex: 1 20%; display: flex; flex-flow: column;"> | ||
|- | <div class="bubbleboxbg-lighter" style="text-align: center; font-weight: bold; flex: 0 1 auto;">[[File:FlagEurope.svg|24px|link=]] Europe</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|{{{5}}}}} | ||
| | |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|{{{5}}}}}</span> | |||
| | }}<br><!-- | ||
{{# | --><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image left2|{{#switch:{{{game|}}} | ||
|- | |Splatoon=Splatfest {{{6}}} vs {{{7}}}.jpg | ||
|Splatoon 3=S3 Splatfest {{Trim|{{{6}}}}} vs {{Trim|{{{7}}}}} vs {{Trim|{{{8}}}}}.png | |||
|- | |#default=S2 Splatfest {{{6}}} vs {{{7}}}.png}}}}}|200px|link={{{link left2|{{{6}}} vs. {{{7}}} vs. {{{8}}}}}}]]</div><br><!-- | ||
--><span style="font-size: large;">[[{{{link left2|{{Trim|{{{6}}}}} vs. {{Trim|{{{7}}}}} vs. {{Trim|{{{8}}}}}}}}|{{#ifeq:{{Trim|{{{5}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{6}}}}}</span>|{{Trim|{{{6}}}}}}} vs. {{#ifeq:{{Trim|{{{5}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{7}}}}}</span>|{{Trim|{{{7}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{5}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{8}}}}}</span>|{{Trim|{{{8}}}}}}}|}}]]</span> | |||
| | </div></div></div> | ||
{{ | <div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 100%; margin: 1px; flex: 1 20%; display: flex; flex-flow: column;"> | ||
| | <div class="bubbleboxbg-lighter" style="text-align: center; font-weight: bold; flex: 0 1 auto;">[[File:FlagJapan.svg|24px|link=]] Japan</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|{{{9}}}}} | |||
|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|{{{9}}}}}</span> | ||
| | }}<br><!-- | ||
{{ | --><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image left3|{{#switch:{{{game|}}} | ||
| | |Splatoon=Splatfest {{{10}}} vs {{{11}}}.jpg | ||
{{# | |Splatoon 3=S3 Splatfest {{Trim|{{{10}}}}} vs {{Trim|{{{11}}}}} vs {{Trim|{{{12}}}}}.png | ||
|#default=S2 Splatfest {{{10}}} vs {{{11}}}.png}}}}}|200px|link={{{link left3|{{{10}}} vs. {{{11}}} vs. {{{12}}}}}}]]</div><br><!-- | |||
--><span style="font-size: large;">[[{{{link left3|{{Trim|{{{10}}}}} vs. {{Trim|{{{11}}}}} vs. {{Trim|{{{12}}}}}}}}|{{#ifeq:{{Trim|{{{9}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{10}}}}}</span>|{{Trim|{{{10}}}}}}} vs. {{#ifeq:{{Trim|{{{9}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{11}}}}}</span>|{{Trim|{{{11}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{9}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{12}}}}}</span>|{{Trim|{{{12}}}}}}}|}}]]</span> | |||
</div></div></div> | |||
<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 100%; margin: 1px; flex: 1 20%; display: flex; flex-flow: column;"> | |||
| | <div class="bubbleboxbg-lighter" style="text-align: center; font-weight: bold; flex: 0 1 auto;">Hong Kong & South Korea</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|{{{13}}}}} | |||
|- | |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|{{{13}}}}}</span> | |||
< | }}<br><!-- | ||
| | --><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image left4|{{#switch:{{{game|}}} | ||
| | |Splatoon=Splatfest {{{14}}} vs {{{15}}}.jpg | ||
| | |Splatoon 3=S3 Splatfest {{Trim|{{{14}}}}} vs {{Trim|{{{15}}}}} vs {{Trim|{{{16}}}}}.png | ||
|#default=S2 Splatfest {{{14}}} vs {{{15}}}.png}}}}}|200px|link={{{link left4|{{{14}}} vs. {{{15}}} vs. {{{16}}}}}}]]</div><br><!-- | |||
}} | --><span style="font-size: large;">[[{{{link left4|{{Trim|{{{14}}}}} vs. {{Trim|{{{15}}}}} vs. {{Trim|{{{16}}}}}}}}|{{#ifeq:{{Trim|{{{13}}}}}|alpha|<span style="font-weight: bold; color: #000080;">{{Trim|{{{14}}}}}</span>|{{Trim|{{{14}}}}}}} vs. {{#ifeq:{{Trim|{{{13}}}}}|bravo|<span style="font-weight: bold; color: #000080;">{{Trim|{{{15}}}}}</span>|{{Trim|{{{15}}}}}}} {{#ifeq:{{{game|}}}|Splatoon 3|vs. {{#ifeq:{{Trim|{{{13}}}}}|charlie|<span style="font-weight: bold; color: #000080;">{{Trim|{{{16}}}}}</span>|{{Trim|{{{16}}}}}}}|}}]]</span> | ||
{{ | </div></div></div>|<div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 100%; margin: 1px; flex: 1 20%; display: flex; flex-flow: column;"> | ||
| | <div class="bubbleboxbg-lighter" style="text-align: center; font-weight: bold; flex: 0 1 auto;">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|{{{1}}}}} | |||
| | |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|{{{1}}}}}</span> | |||
}}<br><!-- | |||
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image left|{{#switch:{{{game|}}} | |||
|Splatoon=Splatfest {{{2}}} vs {{{3}}}.jpg | |||
|Splatoon 3=S3 Splatfest {{Trim|{{{2}}}}} vs {{Trim|{{{3}}}}} vs {{Trim|{{{4}}}}}.png | |||
|#default=S2 Splatfest {{{2}}} vs {{{3}}}.png}}}}}|200px|link={{{link left|{{{2}}} vs. {{{3}}} vs. {{{4}}}}}}]]</div><br><!-- | |||
--><span style="font-size: large;">[[{{{link left|{{Trim|{{{2}}}}} vs. {{Trim|{{{3}}}}} vs. {{Trim|{{{4}}}}}}}}|{{#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> | |||
</div></div></div>}} | |||
</div> | |||
</includeonly><noinclude>__NOTOC__ | |||
Displays the current [[Splatfest]] schedule on the [[Main Page]]. | |||
== Syntax == | |||
{| class="wikitable" | |||
|- style="vertical-align: top;" | |||
|<code>start_naoc</code>||Unnamed.||The date and time, expressed as UTC, of the start of the North America/Oceanea 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 | |||
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_naoc</code>||Unnamed.||The name of the left team. | |||
|- style="vertical-align: top;" | |||
|<code>bravo_naoc</code>||Unnamed.||The name of the right team. | |||
|- style="vertical-align: top;" | |||
|<code>start_eu</code>||Unnamed.||The date and time of the start of the Europe Splatfest. Follows the same format as <code>start_naoc</code>. | |||
|- style="vertical-align: top;" | |||
|<code>alpha_eu</code>||Unnamed.||The name of the left team. | |||
|- style="vertical-align: top;" | |||
|<code>bravo_eu</code>||Unnamed.||The name of the right team. | |||
|- style="vertical-align: top;" | |||
|<code>start_jp</code>||Unnamed.||The date and time of the start of the Japan Splatfest. Follows the same format as <code>start_naoc</code>. | |||
|- style="vertical-align: top;" | |||
|<code>alpha_jp</code>||Unnamed.||The name of the left team. | |||
|- style="vertical-align: top;" | |||
|<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, 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. | |||
*<s>If JavaScript is not available, the UTC time will be displayed with the "UTC" designation.</s> | |||
== Example == | |||
=== Markup === | |||
; With S3 system | |||
< | <nowiki>{{User:Shahar/Test/8|game=Splatoon 3|region=yes | ||
{{ | |Oct 31 0:00|Gear|Grub|Fun|link left=Gear vs. Grub vs. Fun | ||
|Oct 31 2:00|Gear|Grub|Fun | |||
|charlie|Gear|Grub|Fun | |||
|Oct 31 6:00|Rock|Paper|Scissors|link left4=Rock vs. Paper vs. Scissors|image left4=S3 Splatfest Rock vs Paper vs Scissors.jpg | |||
}} | |||
</nowiki> | |||
=== Output === | |||
{{User:Shahar/Test/8|game=Splatoon 3|region=yes | |||
|Oct 31 0:00|Gear|Grub|Fun|link left=Gear vs. Grub vs. Fun | |||
|Oct 31 2:00|Gear|Grub|Fun | |||
|charlie|Gear|Grub|Fun | |||
|Oct 31 6:00|Rock|Paper|Scissors|link left4=Rock vs. Paper vs. Scissors|image left4=S3 Splatfest Rock vs Paper vs Scissors.jpg | |||
}} | |||
</noinclude> | |||
</div>__NOTOC__ | |||
</ | |||
</div> |
Latest revision as of 11:23, 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
- With S3 system
{{User:Shahar/Test/8|game=Splatoon 3|region=yes |Oct 31 0:00|Gear|Grub|Fun|link left=Gear vs. Grub vs. Fun |Oct 31 2:00|Gear|Grub|Fun |charlie|Gear|Grub|Fun |Oct 31 6:00|Rock|Paper|Scissors|link left4=Rock vs. Paper vs. Scissors|image left4=S3 Splatfest Rock vs Paper vs Scissors.jpg }}
Output
Splatfest Schedule
Americas & Oceania
Europe
Japan
Hong Kong & South Korea