Template:S3Schedule/BattleRow: Difference between revisions

From Inkipedia, the Splatoon wiki
(Using the Random stage image for Random rotations)
(added named parameters and support to description)
Line 1: Line 1:
<includeonly><div style="display: flex; flex-wrap: wrap; justify-content: center; overflow: hidden;">
<includeonly><div style="display: flex; flex-wrap: wrap; justify-content: center; overflow: hidden;">
<div style="min-width: 295px; margin: 1px; border: 2px solid #ffffff; border-radius: 8px; overflow: hidden; flex: auto;">{{#if:{{{2|}}}{{{3|}}}|
<div style="min-width: 295px; margin: 1px; border: 2px solid #ffffff; border-radius: 8px; overflow: hidden; flex: auto;">{{#if:{{{stage1_0|}}}{{{stage2_0|}}}|
<div class="bubbleboxbg-lighter" style="height: 24px; padding: 2px 0; text-align: center;">{{#ifeq: {{Trim|{{{1}}}}} | | | [[File:S3 icon {{Trim|{{{1}}}}}.png|24px|link={{Trim|{{{1}}}}}]] }} [[{{Trim|{{{1}}}}}]]</div>
<div class="bubbleboxbg-lighter" style="height: 24px; padding: 2px 0; text-align: center;">{{#ifeq: {{Trim|{{{mode_0}}}}} | | | [[File:S3 icon {{Trim|{{{mode_0}}}}}.png|24px|link={{Trim|{{{mode_0}}}}}]] }} [[{{Trim|{{{mode_0}}}}}]]</div>
<div class="bubbleboxbg-darker">
<div class="bubbleboxbg-darker"><div style="text-align: center;">{{{desc_0|}}}</div>
<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 {{{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>
<div style="text-align: center;"><div style="display: inline-block; border-radius: 8px; overflow: hidden;">{{#if:{{{stage1_0}}}|{{#ifeq:{{{stage1_0|}}}|Random|[[File:S3 Stage {{{stage1_0}}}.png|145px|link=]]|[[File:S3 Stage {{Trim|{{{stage1_0}}}}}.png|145px|link={{Trim|{{{stage1_0}}}}}]]}}|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{stage1_0}}}|{{#ifeq:{{{stage1_0|}}}|Random|{{{stage1_0}}}|[[{{Trim|{{{stage1_0}}}}}]]}}|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:{{{stage2_0|}}}{{{nounknown|false}}}|true||<div style="text-align: center;"><div style="display: inline-block; border-radius: 8px; overflow: hidden;">{{#if:{{{stage2_0}}}|[[File:S3 Stage {{Trim|{{{stage2_0}}}}}.png|145px|link={{Trim|{{{stage2_0}}}}}]]|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{stage2_0}}}|[[{{Trim|{{{stage2_0}}}}}]]|Unknown}}</div>}}
</div>
</div>
</div>}}
</div>}}
</div><!--CURRENT ROTATION-->
</div><!--CURRENT ROTATION-->
{{#ifeq:{{{singlecolumn|false}}}|true||<div style="min-width: 295px; margin: 1px; border: 2px solid #ffffff; border-radius: 8px; overflow: hidden; flex: auto;">{{#if:{{{5|}}}{{{6|}}}|
{{#ifeq:{{{singlecolumn|false}}}|true||<div style="min-width: 295px; margin: 1px; border: 2px solid #ffffff; border-radius: 8px; overflow: hidden; flex: auto;">{{#if:{{{stage1_1|}}}{{{stage2_1|}}}|
<div class="bubbleboxbg-lighter" style="height: 24px; padding: 2px 0; text-align: center;">{{#ifeq: {{Trim|{{{4}}}}} | | | [[File:S3 icon {{Trim|{{{4}}}}}.png|24px|link={{Trim|{{{4}}}}}]] }} [[{{Trim|{{{4}}}}}]]</div>
<div class="bubbleboxbg-lighter" style="height: 24px; padding: 2px 0; text-align: center;">{{#ifeq: {{Trim|{{{mode_1}}}}} | | | [[File:S3 icon {{Trim|{{{mode_1}}}}}.png|24px|link={{Trim|{{{mode_1}}}}}]] }} [[{{Trim|{{{mode_1}}}}}]]</div>
<div class="bubbleboxbg-darker">
<div class="bubbleboxbg-darker"><div style="text-align: center;">{{{desc_1|}}}</div>
<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 {{{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>
<div style="text-align: center;"><div style="display: inline-block; border-radius: 8px; overflow: hidden;">{{#if:{{{stage1_1}}}|{{#ifeq:{{{5|}}}|Random|[[File:S3 Stage {{{stage1_1}}}.png|145px|link=]]|[[File:S3 Stage {{Trim|{{{stage1_1}}}}}.png|145px|link={{Trim|{{{stage1_1}}}}}]]}}|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{stage1_1}}}|{{#ifeq:{{{stage1_1|}}}|Random|{{{stage1_1}}}|[[{{Trim|{{{stage1_1}}}}}]]}}|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:{{{stage2_1|}}}{{{nounknown|false}}}|true||<div style="text-align: center;"><div style="display: inline-block; border-radius: 8px; overflow: hidden;">{{#if:{{{stage2_1}}}|[[File:S3 Stage {{Trim|{{{stage2_1}}}}}.png|145px|link={{Trim|{{{stage2_1}}}}}]]|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{stage2_1}}}|[[{{Trim|{{{stage2_1}}}}}]]|Unknown}}</div>}}
</div>
</div>
</div>}}
</div>}}
Line 20: Line 20:
</div></includeonly><noinclude>__NOTOC__
</div></includeonly><noinclude>__NOTOC__
=== Markup ===
=== Markup ===
  <nowiki>{{Schedule/BattleRow
  <nowiki>{{User:Shahar/Test/4
|Tower Control|Scorch Gorge|Flounder Heights
|mode_0=Tower Control|desc_0=Tournament Test Run (Japan)|stage1_0=Scorch Gorge|stage2_0=Flounder Heights
|Turf War|MakoMart|Wahoo World
|mode_1=Turf War|desc_1=Swim It To Win It|stage1_1=MakoMart|stage2_1=Wahoo World
}}</nowiki>
}}</nowiki>


=== Output ===
=== Output ===
{{S3Schedule/BattleRow
{{User:Shahar/Test/4
|Tower Control|Scorch Gorge|Flounder Heights
|mode_0=Tower Control|desc_0=Tournament Test Run (Japan)|stage1_0=Scorch Gorge|stage2_0=Flounder Heights
|Turf War|MakoMart|Wahoo World
|mode_1=Turf War|desc_1=Swim It To Win It|stage1_1=MakoMart|stage2_1=Wahoo World
}}
}}
</noinclude>
</noinclude>

Revision as of 14:12, 3 December 2023

Markup

{{User:Shahar/Test/4
|mode_0=Tower Control|desc_0=Tournament Test Run (Japan)|stage1_0=Scorch Gorge|stage2_0=Flounder Heights
|mode_1=Turf War|desc_1=Swim It To Win It|stage1_1=MakoMart|stage2_1=Wahoo World
}}

Output

Tournament Test Run (Japan)
Swim It To Win It