Template:Infobox challenge/gridRow: Difference between revisions

From He is Coming Official Wiki
No leading pipe-character allowed.
Remove specific links from the demonstration so that circular references aren't detected in this family of templates.
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>style="height:{{{height_arg|30px}}}" {{ #ifexpr: {{{show|{{#expr: 1>0}}}}} | {{#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}}]]}} | colspan="5" {{!}} }}</onlyinclude>
<includeonly>| style="height: 30px;" | {{#ifexpr: {{{1|65}}} < 65 | {{#ifexpr: {{{1}}} mod 13 > 0 | {{Infobox challenge/gridCell|red|{{{region}}}|{{#expr:{{{1}}} - 1}}}} | &nbsp;}}
 
  {{!}} colspan="3" style="text-align:center;" {{!}} {{Infobox challenge/gridCell|arrow_{{{arrow}}}|{{{region}}}|{{{1}}}}}
  {{!}} {{!}} {{#ifexpr: {{{1}}} mod 13 < 12 | {{Infobox challenge/gridCell|red|{{{region}}}|{{#expr:{{{1}}} + 1}}}}}}
}}</includeonly><noinclude>
{|
|-
{{../gridRow | arrow = down | 0}}
|-
{{../gridRow}}
|-
{{../gridRow | arrow = up | 12}}
|}
==Parameters==
==Parameters==
* height_arg = a px or em measurement of the table row that encloses this template
* 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
* region = Supplies part of the pagename that will be prepended to indexes; e.g.: Woodland
* show = switches between the output shown above, or: {{Infobox_challenge/gridRow | show = {{#expr: 1<0}} | height_arg = 30px}}
# formerly "middle_index" = Of the up-to three grid squares shown, what is the number that identifies the second one?  Leaving this blank or setting it higher than 64 causes the row to be empty.
</noinclude>

Latest revision as of 19:14, 1 September 2025

  link={{{region}}}_challenge_ 0 link={{{region}}}_challenge_1
link={{{region}}}_challenge_11 link={{{region}}}_challenge_ 12

Parameters

  • arrow = direction the inset arrow of the grid-image points, part of its filename: {down, up}
  • region = Supplies part of the pagename that will be prepended to indexes; e.g.: Woodland
  1. formerly "middle_index" = Of the up-to three grid squares shown, what is the number that identifies the second one? Leaving this blank or setting it higher than 64 causes the row to be empty.