Template:Schedule/Big Run: Difference between revisions

From Inkipedia, the Splatoon wiki
(Copying over the format changes made by 6-Frisk to Template:Schedule/Eggstra Work, and seeing what this template now looks like when it's on narrower screens)
(bit nicer on narrower screens now)
Line 14: Line 14:
'''Prizes:'''<br><center>
'''Prizes:'''<br><center>
{|
{|
|[[File:{{GameShortened|{{{game|S3}}}}} Decoration gold {{Trim|{{{prize|Cohozuna}}}}}.png|32px]] || Top 5% {{#if:{{{5%|}}}|{{!}}{{!}}{{Cost|{{GameShortened|{{{game|S3}}}}}|{{Trim|{{{5%}}}}}|ge}} & up|}}
|[[File:{{GameShortened|{{{game|S3}}}}} Decoration gold {{Trim|{{{prize|Cohozuna}}}}}.png|32px]] || Top 5% {{#if:{{{5%|}}}|{{!}}{{!}}{{Cost|{{GameShortened|{{{game|S3}}}}}|{{Trim|{{{5%}}}}}|ge}}<small> & up</small>|}}
|-
|-
|[[File:{{GameShortened|{{{game|S3}}}}} Decoration silver {{Trim|{{{prize|Cohozuna}}}}}.png|32px]] || Top 20% {{#if:{{{20%|}}}|{{!}}{{!}}{{Cost|{{GameShortened|{{{game|S3}}}}}|{{Trim|{{{20%}}}}}|ge}} & up|}}
|[[File:{{GameShortened|{{{game|S3}}}}} Decoration silver {{Trim|{{{prize|Cohozuna}}}}}.png|32px]] || Top 20% {{#if:{{{20%|}}}|{{!}}{{!}}{{Cost|{{GameShortened|{{{game|S3}}}}}|{{Trim|{{{20%}}}}}|ge}}<small> & up</small>|}}
|-
|-
|[[File:{{GameShortened|{{{game|S3}}}}} Decoration bronze {{Trim|{{{prize|Cohozuna}}}}}.png|32px]] || Top 50% {{#if:{{{50%|}}}|{{!}}{{!}}{{Cost|{{GameShortened|{{{game|S3}}}}}|{{Trim|{{{50%}}}}}|ge}} & up|}}
|[[File:{{GameShortened|{{{game|S3}}}}} Decoration bronze {{Trim|{{{prize|Cohozuna}}}}}.png|32px]] || Top 50% {{#if:{{{50%|}}}|{{!}}{{!}}{{Cost|{{GameShortened|{{{game|S3}}}}}|{{Trim|{{{50%}}}}}|ge}}<small> & up</small>|}}
|-
|-
|[[File:{{GameShortened|{{{game|S3}}}}} Decoration base {{Trim|{{{prize|Cohozuna}}}}}.png|32px]] || Bottom 50%{{#if:{{{50%|}}}|{{!}}{{!}}{{Cost|{{GameShortened|{{{game|S3}}}}}|{{#expr:{{Trim|{{{50%}}}}}-1}} or fewer|ge}}|}}
|[[File:{{GameShortened|{{{game|S3}}}}} Decoration base {{Trim|{{{prize|Cohozuna}}}}}.png|32px]] || Bottom 50%{{#if:{{{50%|}}}|{{!}}{{!}}{{Cost|{{GameShortened|{{{game|S3}}}}}|{{#expr:{{Trim|{{{50%}}}}}-1}}<small> or less</small>|ge}}|}}
|}</center></div></div>
|}</center></div></div>
</div></div>
</div></div>
Line 101: Line 101:
== Other testing stuff ==
== Other testing stuff ==


; Really small screen testing (1st has width 300px, 2nd has width 290px, 3rd is 275px, 4th is 270px)
; Really small screen testing (1st has width 275px, 2nd is 270px)
<div><div style="width: 300px; display:inline-block">{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|Grizzco Splatana|game=Splatoon 3|countdown=2022/04/01 00:00|prize=Cohozuna|5%=100|20%=80|50%=50}}</div><div style="width: 290px; display:inline-block">{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|Grizzco Splatana|game=Splatoon 3|countdown=2022/04/01 00:00|prize=Cohozuna|5%=100|20%=80|50%=50}}</div><div style="width: 275px; display:inline-block">{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|Grizzco Splatana|game=Splatoon 3|countdown=2022/04/01 00:00|prize=Cohozuna|5%=100|20%=80|50%=50}}</div><div style="width: 270px; display:inline-block">{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|Grizzco Splatana|game=Splatoon 3|countdown=2022/04/01 00:00|prize=Cohozuna|5%=100|20%=80|50%=50}}</div></div>
<div><div style="width: 275px; display:inline-block">{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|Grizzco Splatana|game=Splatoon 3|countdown=2022/04/01 00:00|prize=Cohozuna|5%=100|20%=80|50%=50}}</div><div style="width: 270px; display:inline-block">{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|Grizzco Splatana|game=Splatoon 3|countdown=2022/04/01 00:00|prize=Cohozuna|5%=100|20%=80|50%=50}}</div></div>


</noinclude>
</noinclude>

Revision as of 12:30, 16 April 2023

Displays the current Big Run schedule on the Main Page.

Syntax

start_naoc Unnamed. The date and time, expressed as UTC, of the start of the North America/Oceanea Big Run. 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
Grizzco Weapon 1 Unnamed. First known Grizzco weapon in the rotation
start_eu Unnamed. The date and time of the start of the Europe Big Run. Follows the same format as start_naoc.
start_jp Unnamed. The date and time of the start of the Japan Big Run. 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 Big Run. 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:{{game (shortened) [S3 etc]}} Decoration base/bronze/silver/gold {{prize}}.png)
If not stated, defaults to 'Cohozuna'
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 Big Run 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.

TODO

  • **BIG RUN REWARDS MILESTONES THINGY**
  • Probably make the timer display span use a different class than <span class="splatfestTimer"> ... </span>
    • Maybe a 'bigRunTimer'?
  • This was bodged together from the Template:Schedule/Splatfest template, could use some cleanup
  • Might need to be updated to display additional stages if Big Run uses more than one stage throughout the duration of the Big Run/Big Run has a stage rotation
  • Update to add other relevant Big Run info upon finding out about more info relevant to Big Run

Example

Markup

Without game parameter
{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|countdown=2022/04/01 00:00}}
With game parameter and prize parameter
{{Schedule/Big Run|Dec 10 0:00 2022|Wahoo World|?|?|?|?|Grizzco Blaster|game=Splatoon 3|countdown=2022/12/10 00:00|prize=Cohozuna}}
{{Schedule/Big Run|Mar 4 0:00 2023|Inkblot Art Academy|?|?|?|?|game=Splatoon 3|countdown=2023/03/04 00:00|prize=Horrorboros}}
With game parameter and prize parameter and results parameters
{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|game=Splatoon 3|countdown=2022/04/01 00:00|prize=Cohozuna|5%=100|20%=80|50%=50}}

Output

Global

⚠️ Big Run alert issued! Beware of approaching Salmonids! ⚠️

Apr 1 0:00 2022
2022/04/01 00:00|Salmonids are attacking!|
Prizes:
Top 5%
Top 20%
Top 50%
Bottom 50%
Global

⚠️ Big Run alert issued! Beware of approaching Salmonids! ⚠️

Dec 10 0:00 2022
2022/12/10 00:00|Salmonids are attacking!|
Prizes:
Top 5%
Top 20%
Top 50%
Bottom 50%
Global

⚠️ Big Run alert issued! Beware of approaching Salmonids! ⚠️

Mar 4 0:00 2023
2023/03/04 00:00|Salmonids are attacking!|
Prizes:
Top 5%
Top 20%
Top 50%
Bottom 50%
Global

⚠️ Big Run alert issued! Beware of approaching Salmonids! ⚠️

Apr 1 0:00 2022
2022/04/01 00:00|Salmonids are attacking!|
Prizes:
Top 5% Golden Eggs 100 & up
Top 20% Golden Eggs 80 & up
Top 50% Golden Eggs 50 & up
Bottom 50% Golden Eggs 49 or less

Other testing stuff

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

⚠️ Big Run alert issued! Beware of approaching Salmonids! ⚠️

Apr 1 0:00 2022
2022/04/01 00:00|Salmonids are attacking!|
Prizes:
Top 5% Golden Eggs 100 & up
Top 20% Golden Eggs 80 & up
Top 50% Golden Eggs 50 & up
Bottom 50% Golden Eggs 49 or less
Global

⚠️ Big Run alert issued! Beware of approaching Salmonids! ⚠️

Apr 1 0:00 2022
2022/04/01 00:00|Salmonids are attacking!|
Prizes:
Top 5% Golden Eggs 100 & up
Top 20% Golden Eggs 80 & up
Top 50% Golden Eggs 50 & up
Bottom 50% Golden Eggs 49 or less