Template:Schedule/Eggstra Work: Difference between revisions

From Inkipedia, the Splatoon wiki
mNo edit summary
m (removed golden question marks as they are used for random grizzco weapons)
Line 14: Line 14:
'''Prizes:'''<br><center>
'''Prizes:'''<br><center>
{|
{|
|{{#if:{{{prize|}}}|[[File:S3 Sticker gold {{{prize|Chum}}} sticker.png|32px|link=Eggstra Work#Rewards]]|[[File:S3 Weapon Main Random Rare 2D Current.png|32px|link=Eggstra Work#Rewards]]}} || Top 5% {{#if:{{{5%|}}}|{{!}}{{!}}{{Cost|{{{game|S3}}}|{{{5%}}}|ge}}<small> & up</small>|}}
|{{#if:{{{prize|}}}|[[File:S3 Sticker gold {{{prize|Chum}}} sticker.png|32px|link=Eggstra Work#Rewards]]|}} || Top 5% {{#if:{{{5%|}}}|{{!}}{{!}}{{Cost|{{{game|S3}}}|{{{5%}}}|ge}}<small> & up</small>|}}
|-
|-
|{{#if:{{{prize|}}}|[[File:S3 Sticker silver {{{prize|Chum}}} sticker.png|32px|link=Eggstra Work#Rewards]]|[[File:S3 Weapon Main Random Rare 2D Current.png|32px|link=Eggstra Work#Rewards]]}}  || Top 20% {{#if:{{{20%|}}}|{{!}}{{!}}{{Cost|{{{game|S3}}}|{{{20%}}}|ge}}<small> & up</small>|}}
|{{#if:{{{prize|}}}|[[File:S3 Sticker silver {{{prize|Chum}}} sticker.png|32px|link=Eggstra Work#Rewards]]|}}  || Top 20% {{#if:{{{20%|}}}|{{!}}{{!}}{{Cost|{{{game|S3}}}|{{{20%}}}|ge}}<small> & up</small>|}}
|-
|-
|{{#if:{{{prize|}}}|[[File:S3 Sticker bronze {{{prize|Chum}}} sticker.png|32px|link=Eggstra Work#Rewards]]|[[File:S3 Weapon Main Random Rare 2D Current.png|32px|link=Eggstra Work#Rewards]]}}  || Top 50% {{#if:{{{50%|}}}|{{!}}{{!}}{{Cost|{{{game|S3}}}|{{{50%}}}|ge}}<small> & up</small>|}}
|{{#if:{{{prize|}}}|[[File:S3 Sticker bronze {{{prize|Chum}}} sticker.png|32px|link=Eggstra Work#Rewards]]|}}  || Top 50% {{#if:{{{50%|}}}|{{!}}{{!}}{{Cost|{{{game|S3}}}|{{{50%}}}|ge}}<small> & up</small>|}}
|-
|-
|{{#if:{{{prize|}}}|[[File:S3 Sticker basic {{{prize|Chum}}} sticker.png|32px|link=Eggstra Work#Rewards]]|[[File:S3 Weapon Main Random Rare 2D Current.png|32px|link=Eggstra Work#Rewards]]}}  || Bottom 50% {{#if:{{{50%|}}}|{{!}}{{!}}{{Cost|{{{game|S3}}}|{{#expr:{{{50%}}}-1}}<small> or less</small>|ge}}|}}
|{{#if:{{{prize|}}}|[[File:S3 Sticker basic {{{prize|Chum}}} sticker.png|32px|link=Eggstra Work#Rewards]]|}}  || Bottom 50% {{#if:{{{50%|}}}|{{!}}{{!}}{{Cost|{{{game|S3}}}|{{#expr:{{{50%}}}-1}}<small> or less</small>|ge}}|}}
|}</center></div></div>
|}</center></div></div>
</div></div>
</div></div>

Revision as of 13:30, 13 October 2023

Displays the current Eggstra Work schedule on the Main Page.

Syntax

start_naoc Unnamed. The date and time, expressed as UTC, of the start of the North America/Oceanea Eggstra Work. 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
stage Unnamed. The name of the stage which the big run will happen on.
Weapon 1 Unnamed. First weapon in the rotation
Weapon 2 Unnamed. Second weapon in the rotation
Weapon 3 Unnamed. Third weapon in the rotation
Weapon 4 Unnamed. Fourth weapon in the rotation
Special 1 Unnamed. First special in the rotation
Special 2 Unnamed. Second special in the rotation
Special 3 Unnamed. Third special in the rotation
Special 4 Unnamed. Fourth special in the rotation
start_eu Unnamed. The date and time of the start of the Europe Eggstra Work. Follows the same format as start_naoc.
start_jp Unnamed. The date and time of the start of the Japan Eggstra Work. Follows the same format as start_naoc.
countdown= Required The date and time countdown, expressed as UTC, of the start of the North America/Oceanea Eggstra Work. Must be expressed in the following format: yyyy/MM/dd HH:nn
prize= Required. Name of the prize being awarded
(Image file must be named in the form File:S3_Sticker _(basic/bronze/silver/gold)_{{prize}}_sticker.png)
If not stated, defaults to 'Chum'
game= Required.
(default: Splatoon 3)
The site color of the widget border, logos, and file formats shown.
5%= Unnamed. Top 5% score for a concluded Big Run.
20%= Unnamed. Top 20% score for a concluded Big Run.
50%= Unnamed. Top 50% score for a concluded Big Run.

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 Eggstra Work has already started or finished.
    • Currently uses the 'splatfestTimer' thingy
  • If JavaScript is not available, the UTC time will be displayed with the "UTC" designation.

To-Do

  • When the Schedule/Eggstra Work element is being displayed with a width smaller than 300px and the prizes thresholds are given(?), might be worth hiding the 'top 5/20/50%/participation' text somehow, so this template looks less scuffed on smaller screens.
  • Probably make the timer display span use a different class than <span class="splatfestTimer"> ... </span>
    • Maybe a 'bigRunTimer'?
  • Might need to be updated to display additional stages if Eggstra Work uses more than one stage throughout the duration of the Eggstra Work/Eggstra Work has a stage rotation

Example

Markup

Without game and prize parameter
{{Schedule/Eggstra Work|eggstraworkTimer=Apr 1 0:00 2022|stagename=Spawning Grounds|weapon1=Splattershot Jr.|weapon2=Splat Dualies|weapon3=Splat Roller|weapon4=Splat Charger|countdown=2022/04/01 00:00}}
With game parameter and prize parameter
{{Schedule/Eggstra Work|eggstraworkTimer=Dec 10 0:00 2024|stagename=Sockeye Station|weapon1=Splattershot Jr.|weapon2=Splat Dualies|weapon3=Splat Roller|weapon4=Splat Charger|game=S3|countdown=2024/12/10 00:00|prize=Chum}}
With game parameter and prize parameter and results parameters
{{Schedule/Eggstra Work|eggstraworkTimer=May 1 0:00 2023|stagename=Gone Fission Hydroplant|weapon1=Splattershot Jr.|weapon2=Splat Dualies|weapon3=Splat Roller|weapon4=Splat Charger|game=S3|countdown=2023/05/01 00:00|prize=Steelhead|5%=200|20%=180|50%=150}}
With game parameter and prize parameter and results and specials parameters
{{Schedule/Eggstra Work|eggstraworkTimer=May 1 0:00 2023|stagename=Gone Fission Hydroplant|weapon1=Splattershot Jr.|weapon2=Splat Dualies|weapon3=Splat Roller|weapon4=Splat Charger|special1=Booyah Bomb|special2=Crab Tank|special3=Inkjet|special4=Killer Wail 5.1|game=S3|countdown=2023/05/01 00:00|prize=Steelhead|5%=200|20%=180|50%=150}}

Output

Global

It's time for some Eggstra Work!

Global

It's time for some Eggstra Work!

Global

It's time for some Eggstra Work!

May 1 0:00 2023
2023/05/01 00:00|Let's go get those eggs!|
Global

It's time for some Eggstra Work!

May 1 0:00 2023
2023/05/01 00:00|Let's go get those eggs!|

Other testing stuff

Really small screen testing (1st has width 275px, 2nd is 270px)
Global

It's time for some Eggstra Work!

May 1 0:00 2023
2023/05/01 00:00|Let's go get those eggs!|
Global

It's time for some Eggstra Work!

May 1 0:00 2023
2023/05/01 00:00|Let's go get those eggs!|