Template:S3Schedule/BattleRow: Difference between revisions
From Inkipedia, the Splatoon wiki
(added named parameters and support to description) |
Trig Jegman (talk | contribs) m (& named parameters automatically remove whitespace; removed trim) |
||
(3 intermediate revisions by 2 users not shown) | |||
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:{{{stage1_0|}}}{{{stage2_0|}}}| | <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: | {{#if:{{{schedule0|}}}|{{{schedule0|}}}}} | ||
<div class="bubbleboxbg-darker"><div style="text-align: center;">{{{ | <div class="bubbleboxbg-lighter" style="height: 24px; padding: 2px 0; text-align: center;">{{#ifeq: {{{mode_0}}} | | | [[File:S3 icon {{{mode_0}}}.png|24px|link={{{mode_0}}}]] }} [[{{{mode_0}}}]]</div> | ||
<div class="bubbleboxbg-darker"><div style="text-align: center;">{{{name_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:{{{stage1_0}}}|{{#ifeq:{{{stage1_0|}}}|Random|[[File:S3 Stage {{{stage1_0}}}.png|145px|link=]]|[[File:S3 Stage | <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 {{{stage1_0}}}.png|145px|link={{{stage1_0}}}]]}}|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{stage1_0}}}|{{#ifeq:{{{stage1_0|}}}|Random|{{{stage1_0}}}|[[{{{stage1_0}}}]]}}|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 | {{#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 {{{stage2_0}}}.png|145px|link={{{stage2_0}}}]]|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{stage2_0}}}|[[{{{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:{{{stage1_1|}}}{{{stage2_1|}}}| | {{#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: | {{#if:{{{schedule1|}}}|{{{schedule1|}}}}} | ||
<div class="bubbleboxbg-darker"><div style="text-align: center;">{{{ | <div class="bubbleboxbg-lighter" style="height: 24px; padding: 2px 0; text-align: center;">{{#ifeq: {{{mode_1}}} | | | [[File:S3 icon {{{mode_1}}}.png|24px|link={{{mode_1}}}]] }} [[{{{mode_1}}}]]</div> | ||
<div class="bubbleboxbg-darker"><div style="text-align: center;">{{{name_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:{{{stage1_1}}}|{{#ifeq:{{{5|}}}|Random|[[File:S3 Stage {{{stage1_1}}}.png|145px|link=]]|[[File:S3 Stage | <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 {{{stage1_1}}}.png|145px|link={{{stage1_1}}}]]}}|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{stage1_1}}}|{{#ifeq:{{{stage1_1|}}}|Random|{{{stage1_1}}}|[[{{{stage1_1}}}]]}}|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 | {{#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 {{{stage2_1}}}.png|145px|link={{{stage2_1}}}]]|[[File:S3 Stage Not Found.png|145px|link=]]}}</div><br>{{#if:{{{stage2_1}}}|[[{{{stage2_1}}}]]|Unknown}}</div>}} | ||
</div> | </div> | ||
</div>}} | </div>}} | ||
Line 20: | Line 22: | ||
</div></includeonly><noinclude>__NOTOC__ | </div></includeonly><noinclude>__NOTOC__ | ||
=== Markup === | === Markup === | ||
<pre>{{S3Schedule/BattleRow | |||
|mode_0=Tower Control| | |schedule0=<div style="text-align:center;">Optional<br>schedule for challenges</div> | ||
|mode_1=Turf War| | |mode_0=Tower Control|name_0=Tournament Test Run (Japan)|stage1_0=Scorch Gorge|stage2_0=Flounder Heights | ||
}}</ | |schedule1=<div style="text-align:center;">00:00 - 02:00</div> | ||
|mode_1=Turf War|name_1=Swim It To Win It|stage1_1=MakoMart|stage2_1=Wahoo World | |||
}}</pre> | |||
=== Output === | === Output === | ||
{{ | {{S3Schedule/BattleRow | ||
|mode_0=Tower Control| | |schedule0=<div style="text-align:center;">Optional<br>schedule for challenges</div> | ||
|mode_1=Turf War| | |mode_0=Tower Control|name_0=Tournament Test Run (Japan)|stage1_0=Scorch Gorge|stage2_0=Flounder Heights | ||
|schedule1=<div style="text-align:center;">00:00 - 02:00</div> | |||
|mode_1=Turf War|name_1=Swim It To Win It|stage1_1=MakoMart|stage2_1=Wahoo World | |||
}} | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 04:30, 13 May 2024
Markup
{{S3Schedule/BattleRow |schedule0=<div style="text-align:center;">Optional<br>schedule for challenges</div> |mode_0=Tower Control|name_0=Tournament Test Run (Japan)|stage1_0=Scorch Gorge|stage2_0=Flounder Heights |schedule1=<div style="text-align:center;">00:00 - 02:00</div> |mode_1=Turf War|name_1=Swim It To Win It|stage1_1=MakoMart|stage2_1=Wahoo World }}