Template:Infobox challenge/gridRow: Difference between revisions

From He is Coming Official Wiki
These are the challenges that are adjacent to the page-focused Infobox_challenge. I felt that a template was necessary because transclusion is the only way I've found to cause this line to properly interpret as a row or cell of a table.
 
mNo edit summary
Line 1: Line 1:
{{#ifexpr: {{{middle_index|14}}} mod 13 > 0 | [[Image:Box_basic_red.png | link={{{grid_prefix|Woodland_challenge_}}}{{#expr: {{{middle_index|14}}} - 1}}]]}} | colspan="3" style="text-align:center;" | [[Image:Box_basic_arrow_down.png | link={{{grid_prefix|Woodland_challenge_}}}{{{middle_index|14}}}]] || {{#ifexpr: {{{middle_index|14}}} mod 13 < 12 | [[Image:Box_basic_red.png | link={{{grid_prefix|Woodland_challenge_}}}{{#expr: {{{middle_index|14}}} + 1}}]]}}
<onlyinclude>{{#ifexpr: {{{middle_index|14}}} mod 13 > 0 | [[Image:Box_basic_red.png | link={{{region|Woodland}}}_challenge_{{#expr: {{{middle_index|14}}} - 1}}]]}}
| colspan="3" style="text-align:center;" | [[Image:Box_basic_arrow_down.png | link={{{region|Woodland}}}_challenge_{{{middle_index|14}}}]]
|| {{#ifexpr: {{{middle_index|14}}} mod 13 < 12 | [[Image:Box_basic_red.png | link={{{region|Woodland}}}_challenge_{{#expr: {{{middle_index|14}}} + 1}}]]}}</onlyinclude>
 
==Parameters==
* 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

Revision as of 20:25, 27 August 2025

| colspan="3" style="text-align:center;" | ||

Parameters

  • 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