Template:S3Schedule/BattleRow: Difference between revisions

From Inkipedia, the Splatoon wiki
(Added support for rotations with random stages (if a rotation has random stages it will not have a second stage, so there is no need to support it for parameters 3 and 6))
(Using the Random stage image for Random rotations)
Line 4: Line 4:
<div class="bubbleboxbg-darker">
<div class="bubbleboxbg-darker">
<div style="display: flex; justify-content: space-evenly; padding-bottom: 2px;">
<div style="display: flex; justify-content: space-evenly; padding-bottom: 2px;">
<div style="text-align: center;"><div style="display: inline-block; border-radius: 8px; overflow: hidden;">{{#if:{{{2}}}|{{#ifeq:{{{2|}}}|Random|[[File:S3 Stage Not Found.png|145px|link=]]|[[File:S3 Stage {{Trim|{{{2}}}}}.png|145px|link={{Trim|{{{2}}}}}]]}}|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{2}}}|{{#ifeq:{{{2|}}}|Random|{{{2}}}|[[{{Trim|{{{2}}}}}]]}}|Unknown}}</div>
<div style="text-align: center;"><div style="display: inline-block; border-radius: 8px; overflow: hidden;">{{#if:{{{2}}}|{{#ifeq:{{{2|}}}|Random|[[File:S3 Stage {{{2}}}.png|145px|link=]]|[[File:S3 Stage {{Trim|{{{2}}}}}.png|145px|link={{Trim|{{{2}}}}}]]}}|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{2}}}|{{#ifeq:{{{2|}}}|Random|{{{2}}}|[[{{Trim|{{{2}}}}}]]}}|Unknown}}</div>
{{#ifeq:{{{3|}}}{{{nounknown|false}}}|true||<div style="text-align: center;"><div style="display: inline-block; border-radius: 8px; overflow: hidden;">{{#if:{{{3}}}|[[File:S3 Stage {{Trim|{{{3}}}}}.png|145px|link={{Trim|{{{3}}}}}]]|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{3}}}|[[{{Trim|{{{3}}}}}]]|Unknown}}</div>}}
{{#ifeq:{{{3|}}}{{{nounknown|false}}}|true||<div style="text-align: center;"><div style="display: inline-block; border-radius: 8px; overflow: hidden;">{{#if:{{{3}}}|[[File:S3 Stage {{Trim|{{{3}}}}}.png|145px|link={{Trim|{{{3}}}}}]]|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{3}}}|[[{{Trim|{{{3}}}}}]]|Unknown}}</div>}}
</div>
</div>
Line 13: Line 13:
<div class="bubbleboxbg-darker">
<div class="bubbleboxbg-darker">
<div style="display: flex; justify-content: space-evenly; padding-bottom: 2px;">
<div style="display: flex; justify-content: space-evenly; padding-bottom: 2px;">
<div style="text-align: center;"><div style="display: inline-block; border-radius: 8px; overflow: hidden;">{{#if:{{{5}}}|{{#ifeq:{{{5|}}}|Random|[[File:S3 Stage Not Found.png|145px|link=]]|[[File:S3 Stage {{Trim|{{{5}}}}}.png|145px|link={{Trim|{{{5}}}}}]]}}|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{5}}}|{{#ifeq:{{{5|}}}|Random|{{{5}}}|[[{{Trim|{{{5}}}}}]]}}|Unknown}}</div>
<div style="text-align: center;"><div style="display: inline-block; border-radius: 8px; overflow: hidden;">{{#if:{{{5}}}|{{#ifeq:{{{5|}}}|Random|[[File:S3 Stage {{{5}}}.png|145px|link=]]|[[File:S3 Stage {{Trim|{{{5}}}}}.png|145px|link={{Trim|{{{5}}}}}]]}}|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{5}}}|{{#ifeq:{{{5|}}}|Random|{{{5}}}|[[{{Trim|{{{5}}}}}]]}}|Unknown}}</div>
{{#ifeq:{{{6|}}}{{{nounknown|false}}}|true||<div style="text-align: center;"><div style="display: inline-block; border-radius: 8px; overflow: hidden;">{{#if:{{{6}}}|[[File:S3 Stage {{Trim|{{{6}}}}}.png|145px|link={{Trim|{{{6}}}}}]]|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{6}}}|[[{{Trim|{{{6}}}}}]]|Unknown}}</div>}}
{{#ifeq:{{{6|}}}{{{nounknown|false}}}|true||<div style="text-align: center;"><div style="display: inline-block; border-radius: 8px; overflow: hidden;">{{#if:{{{6}}}|[[File:S3 Stage {{Trim|{{{6}}}}}.png|145px|link={{Trim|{{{6}}}}}]]|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{6}}}|[[{{Trim|{{{6}}}}}]]|Unknown}}</div>}}
</div>
</div>

Revision as of 07:36, 9 September 2023

Markup

{{Schedule/BattleRow
|Tower Control|Scorch Gorge|Flounder Heights
|Turf War|MakoMart|Wahoo World
}}

Output