Template:Infobox challenge/gridRow: Difference between revisions

From He is Coming Official Wiki
mNo edit summary
Aww yeah! Parameterized row of adjacent challenge gridCells.
Line 1: Line 1:
<includeonly>| style="height: 30px;" | {{#ifeq: {{{middle_index|no}}} | no | | {{Infobox challenge/gridCell|red|{{{region}}}|{{#expr:{{{middle_index}}} - 1}}}}
  {{!}} colspan="3" {{!}} {{Infobox challenge/gridCell|arrow_{{{arrow}}}|{{{region}}}|{{{middle_index}}}}}
  {{!}} {{!}} {{Infobox challenge/gridCell|red|{{{region}}}|{{#expr:{{{middle_index}}} + 1}}}}
}}</includeonly><noinclude>
{|
|-
|-
| style="height: 30px;" | {{#ifexpr: {{{middle_index|14}}} mod 13 > 0 | [[Image:Box_basic_red.png | link={{{region|Woodland}}}_challenge_{{#expr: {{{middle_index|14}}} - 1 }}]]}}
{{../gridRow
| colspan="3" style="text-align:center;" | [[Image:Box_basic_arrow_down.png | link={{{region|Woodland}}}_challenge_{{{middle_index|14}}}]]
  | middle_index = 1
| | {{#ifexpr: {{{middle_index|14}}} mod 13 < 12 | [[Image:Box_basic_red.png | link={{{region|Woodland}}}_challenge_{{#expr: {{{middle_index|14}}} + 1}}]]}}
  | arrow = down
<noinclude>==Parameters==
  | region = Woodland}}
|-
{{../gridRow
  | region = Woodland}}
|-
{{../gridRow
  | middle_index = 27
  | arrow = up
  | region = Swampland}}
|}
==Parameters==
* arrow = direction the inset arrow of the grid-image points, part of its filename: {down, up}
* middle_index = Of the up-to three grid squares shown, what is the number that identifies the second one?
* middle_index = Of the up-to three grid squares shown, what is the number that identifies the second one?
* region = Supplies part of the pagename that will be prepended to indexes; e.g.: Woodland
* region = Supplies part of the pagename that will be prepended to indexes; e.g.: Woodland
</noinclude>
</noinclude>

Revision as of 18:21, 28 August 2025

Parameters

  • arrow = direction the inset arrow of the grid-image points, part of its filename: {down, up}
  • middle_index = Of the up-to three grid squares shown, what is the number that identifies the second one?
  • region = Supplies part of the pagename that will be prepended to indexes; e.g.: Woodland