User:Shahar/Test/8: Difference between revisions

From Inkipedia, the Splatoon wiki
(Solved problems and added a global Splatfest by default; to show regional stages you need add parammeter region)
(test)
Tag: Reverted
Line 8: Line 8:
<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 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-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}}}}}
<div class="bubbleboxbg-darker" style="padding: 2px 4px 0px 4px; text-align: center; flex: 1 1 auto; display: flex;  flex: 1 1 auto;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>
|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>

Revision as of 11:22, 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
  • Mmm is the first three letters of the month
  • dd is the day of the month (one or two digits)
  • HH is the hour in 24-hour time (one or two digits)
  • nn is the minute (two digits), usually zero
  • yyyy is the year

Alternately, if the Splatfest has concluded, the winner can be specified with one of the following instead of a time:

  • alpha if the first team won
  • bravo if the second team won
  • charlie if the third team won
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

S3 Splatfest Logo.svg Splatfest Schedule
Americas & Oceania
FlagEurope.svg Europe
FlagJapan.svg Japan
Previous (Winner in bold blue)
S3 Splatfest Gear vs Grub vs Fun.png

Gear vs. Grub vs. Fun
Hong Kong & South Korea