Template:Schedule/Splatfest: Difference between revisions
From Inkipedia, the Splatoon wiki
m (oops, wrong template) |
(Removed the second and third region boxes, due to Splatfests being global. Revert this edit if they go regional again.) |
||
Line 3: | Line 3: | ||
<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: 50%; margin: 1px; flex: 1 30%;"> | <div style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 50%; margin: 1px; flex: 1 30%;"> | ||
<div style="background-color: rgba(255, 255, 255, 0.65); text-align: center; font-weight: bold;" id="salmonFirst">[[File:FlagUSA.svg|24px|link=]] | <div style="background-color: rgba(255, 255, 255, 0.65); text-align: center; font-weight: bold;" id="salmonFirst">[[File:FlagUSA.svg|24px|link=]] Global</div> | ||
<div style="background-color: rgba(255, 255, 255, 0.4); padding: 2px 4px 0px 4px; text-align: center; font-size: 12px;">{{#switch:{{Trim|{{{1}}}}} | <div style="background-color: rgba(255, 255, 255, 0.4); padding: 2px 4px 0px 4px; text-align: center; font-size: 12px;">{{#switch:{{Trim|{{{1}}}}} | ||
|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> | ||
Line 11: | Line 11: | ||
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image left|S2 Splatfest {{{2}}} vs {{{3}}}.png}}}|x64px|link={{{link left|{{{2}}} vs. {{{3}}}}}}]]</div><br><!-- | --><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:{{{image left|S2 Splatfest {{{2}}} vs {{{3}}}.png}}}|x64px|link={{{link left|{{{2}}} vs. {{{3}}}}}}]]</div><br><!-- | ||
-->[[{{{link left|{{Trim|{{{2}}}}} vs. {{Trim|{{{3}}}}}}}}|{{#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}}}}}}}]] | -->[[{{{link left|{{Trim|{{{2}}}}} vs. {{Trim|{{{3}}}}}}}}|{{#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}}}}}}}]] | ||
</div></div> | </div></div> | ||
</div> | </div> |
Revision as of 21:54, 21 July 2020
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
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. |
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
{{Schedule/Splatfest |Dec 31 2:00|Sweater|Sock<!-- -->|alpha|Film|Book<!-- -->|bravo|Vampire|Werewolf<!-- -->}}