Template:Schedule/Big Run: Difference between revisions

From Inkipedia, the Splatoon wiki
(Added weapons)
(Added a thing that can show big run results. Needs to be cleaned up a bit.)
Line 6: Line 6:
<div class="textscrolldiv" style="text-align: center; font-weight: bold; overflow: hidden;" id="salmonFirst"><p class="textscroll">⚠️ Big Run alert issued! Beware of approaching Salmonids! ⚠️</p></div>
<div class="textscrolldiv" style="text-align: center; font-weight: bold; overflow: hidden;" id="salmonFirst"><p class="textscroll">⚠️ Big Run alert issued! Beware of approaching Salmonids! ⚠️</p></div>
<div class="bubbleboxbg-darker" style="padding: 2px 4px 0px 4px; text-align: center;"><!--
<div class="bubbleboxbg-darker" style="padding: 2px 4px 0px 4px; text-align: center;"><!--
--><span class="splatfestTimer">{{Trim|{{{1}}}}}</span> (<span class="countdown">{{{countdown}}}|Salmonids are attacking!|</span>)<br><!--
--><span class="splatfestTimer">{{Trim|{{{1}}}}}</span><br>
<span class="countdown">{{{countdown}}}|Salmonids are attacking!|</span><br><!--
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:S3 Stage {{Trim|{{{2}}}}}.png|200px|link={{Trim|{{{2}}}}}]]</div><br><span style="font-size: large;">[[{{Trim|{{{2}}}}}]]</span>
--><div style="display: inline-block; border-radius: 8px; overflow: hidden;">[[File:S3 Stage {{Trim|{{{2}}}}}.png|200px|link={{Trim|{{{2}}}}}]]</div><br><span style="font-size: large;">[[{{Trim|{{{2}}}}}]]</span>
<div style="flex-grow: 1; padding: 4px 2px 0px 4px;">'''Supplied weapons:'''<br>{{Weapon|S2|Main|{{Trim|{{{3}}}}}|icononly}} {{Weapon|S2|Main|{{Trim|{{{4}}}}}|icononly}} {{Weapon|S2|Main|{{Trim|{{{5}}}}}|icononly}} {{Weapon|S2|Main|{{Trim|{{{6}}}}}|icononly}} {{#ifexist:{{{7}}}|({{Weapon|S2|Main|{{Trim|{{{7}}}}}|icononly}})|}}</div>
<div style="flex-grow: 1; padding: 4px 2px 0px 4px;">'''Supplied weapons:'''<br>{{Weapon|S2|Main|{{Trim|{{{3}}}}}|icononly}} {{Weapon|S2|Main|{{Trim|{{{4}}}}}|icononly}} {{Weapon|S2|Main|{{Trim|{{{5}}}}}|icononly}} {{Weapon|S2|Main|{{Trim|{{{6}}}}}|icononly}} {{#ifexist:{{{7}}}|({{Weapon|S2|Main|{{Trim|{{{7}}}}}|icononly}})|}}</div>
</div></div>
</div></div>
</div><!--
-->{{#if:{{{50%|}}}
|<div class="bubbleboxbg-darker" style="border: 2px solid #ffffff; border-radius: 8px; min-width: 210px; max-width: 100%; margin: 1px; flex: 1 30%; justify-content: center; text-align: center;">
<div style="display: block; border-radius: 8px; overflow: hidden;">
{{Schedule/Big Run/Results|5%={{Trim|{{{5%}}}}}|20%={{Trim|{{{20%}}}}}|50%={{Trim|{{{50%}}}}} }}
</div>
</div>
</div>|}}<!--


</div></includeonly><noinclude>__NOTOC__
--></div></includeonly><noinclude>__NOTOC__
Displays the current [[Big Run]] schedule on the [[Main Page]].
Displays the current [[Big Run]] schedule on the [[Main Page]].


Line 34: Line 41:
|- style="vertical-align: top;"
|- style="vertical-align: top;"
|<code>game=</code>||Splatoon 3||The <s>[[Template:SiteColor|site color]] of the widget border</s>, logo, and file format shown.
|<code>game=</code>||Splatoon 3||The <s>[[Template:SiteColor|site color]] of the widget border</s>, logo, and file format shown.
|- style="vertical-align: top;"
|<code>5%</code>||Unnamed.|| Top 5% score for a concluded Salmon Run
|- style="vertical-align: top;"
|<code>20%</code>||Unnamed.|| Top 20% score for a concluded Salmon Run
|- style="vertical-align: top;"
|<code>50%</code>||Unnamed.|| Top 50% score for a concluded Salmon Run
|}
|}


Line 44: Line 57:
* **BIG RUN REWARDS MILESTONES THINGY**
* **BIG RUN REWARDS MILESTONES THINGY**
** top 50%, 10%, and 5% egg counts (ONLY FOR CONCLUDED BIG RUNS!)
** top 50%, 10%, and 5% egg counts (ONLY FOR CONCLUDED BIG RUNS!)
** Needs to look less bad. See [[Template:Schedule/Big Run/Results]] to fix it I guess.
* Probably make the timer display span use a different class than <nowiki><span class="splatfestTimer"> ... </span></nowiki>
* Probably make the timer display span use a different class than <nowiki><span class="splatfestTimer"> ... </span></nowiki>
** Maybe a 'bigRunTimer'?
** Maybe a 'bigRunTimer'?
Line 57: Line 71:
; With game parameter
; With game parameter
  <nowiki>{{Schedule/Big Run|Dec 10 0:00 2022|Wahoo World|?|?|?|?|Grizzco Blaster|game=Splatoon 3|countdown=2022/12/10 00:00}}</nowiki>
  <nowiki>{{Schedule/Big Run|Dec 10 0:00 2022|Wahoo World|?|?|?|?|Grizzco Blaster|game=Splatoon 3|countdown=2022/12/10 00:00}}</nowiki>
; With game parameter and results
<nowiki>{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|game=Splatoon 3|countdown=2022/04/01 00:00|5%=100|20%=80|50%=50}}</nowiki>


=== Output ===
=== Output ===
{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|countdown=2022/04/01 00:00}}
{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|countdown=2022/04/01 00:00}}
{{Schedule/Big Run|Dec 10 0:00 2022|Wahoo World|?|?|?|?|Grizzco Blaster|game=Splatoon 3|countdown=2022/12/10 00:00}}
{{Schedule/Big Run|Dec 10 0:00 2022|Wahoo World|?|?|?|?|Grizzco Blaster|game=Splatoon 3|countdown=2022/12/10 00:00}}
 
{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|game=Splatoon 3|countdown=2022/04/01 00:00|5%=100|20%=80|50%=50}}


</noinclude>
</noinclude>

Revision as of 13:30, 7 December 2022

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.
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
game= Splatoon 3 The site color of the widget border, logo, and file format shown.
5% Unnamed. Top 5% score for a concluded Salmon Run
20% Unnamed. Top 20% score for a concluded Salmon Run
50% Unnamed. Top 50% score for a concluded Salmon 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
{{Schedule/Big Run|Dec 10 0:00 2022|Wahoo World|?|?|?|?|Grizzco Blaster|game=Splatoon 3|countdown=2022/12/10 00:00}}
With game parameter and results
{{Schedule/Big Run|Apr 1 0:00 2022|Mahi-Mahi Resort|?|?|?|?|game=Splatoon 3|countdown=2022/04/01 00:00|5%=100|20%=80|50%=50}}

Output

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

Apr 1 0:00 2022
2022/04/01 00:00|Salmonids are attacking!|

Mahi-Mahi Resort
Supplied weapons:
Random Random Random Random

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

Dec 10 0:00 2022
2022/12/10 00:00|Salmonids are attacking!|

Wahoo World
Supplied weapons:
Random Random Random Random ()

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

Apr 1 0:00 2022
2022/04/01 00:00|Salmonids are attacking!|

Mahi-Mahi Resort
Supplied weapons:
Random Random Random Random