Template:Infobox challenge: Difference between revisions
From He is Coming Official Wiki
Addition of double-transclusion technology (regionalRow and ...). An attempt to slip "pageName" under the radar is threatening to cause infinite recursion, but maybe I can get around it.. |
m Will this small width increase fix the second scrollbar problem? |
||
| (11 intermediate revisions by 3 users not shown) | |||
| Line 2: | Line 2: | ||
| pageName = {{{region}}} Challenge: {{{title}}} | | pageName = {{{region}}} Challenge: {{{title}}} | ||
| challengeName = {{{title}}} | |||
| regionalRow = {{!}}{{!}} [[{{{region}}} Challenge: {{{title}}}|{{{title}}}]] {{!}}{{!}} {{{goal}}} {{!}}{{!}} {{:{{{reward}}} | iconLink}} | | regionalRow = {{!}}{{!}} [[{{{region}}} Challenge: {{{title}}}|{{{title}}}]] {{!}}{{!}} {{{goal}}} {{!}}{{!}} {{:{{{reward}}} | iconLink}} | ||
| {{{1}}} = <div class="borderline-wrapper"> | | {{{1}}} = <div class="challenge borderline-wrapper"> | ||
{{{!}} class=" | {{{!}} class="left-but center-when-shrunk" style="width:216px; position: relative;" | ||
{{!}}- | {{!}}- | ||
{{Infobox challenge/gridRow | region = {{{region}}} | arrow = down | {{#ifexpr: {{{chal_no}}} > 12 | {{#expr: {{{chal_no}}} - 13}} | 69}}}} | {{Infobox challenge/gridRow | region = {{{region}}} | arrow = down | {{#ifexpr: {{{chal_no}}} > 12 | {{#expr: {{{chal_no}}} - 13}} | 69}}}} | ||
| Line 12: | Line 14: | ||
{{!}} style="width:30px; vertical-align:middle;" {{!}} {{#ifexpr: {{{chal_no}}} mod 13 > 0 | {{Infobox challenge/gridCell|arrow_right|{{{region}}}|{{#expr:{{{chal_no}}} - 1}}}}}} | {{!}} style="width:30px; vertical-align:middle;" {{!}} {{#ifexpr: {{{chal_no}}} mod 13 > 0 | {{Infobox challenge/gridCell|arrow_right|{{{region}}}|{{#expr:{{{chal_no}}} - 1}}}}}} | ||
{{!}} colspan="3" style="width:180px; height:150px; vertical-align:middle;" {{!}} {{Superimpose | {{!}} colspan="3" style="width:180px; height:150px; vertical-align:middle;" {{!}} {{Superimpose | ||
| floats = {{Superimpose/d_object | [[File:{{{reward}}} 16x.png|72px|link={{{reward}}}]] | x = 24 | y = 24 | | floats = {{Superimpose/d_object | [[File:{{{reward}}} 16x.png|72px|link={{{reward}}}]] | x = 24 | y = 24}} | ||
| base = {{#ifexpr: {{{is_weapon}}} |Box_weapon_corner_icon_6x|Box_basic_6x}}.png | | base = {{#ifexpr: {{{is_weapon}}} |Box_weapon_corner_icon_6x|Box_basic_6x}}.png | ||
| base_link = | | base_link = | ||
| Line 20: | Line 22: | ||
{{!}} style="width:30px; vertical-align:middle;" {{!}} {{#ifexpr: 12 > {{{chal_no}}} mod 13 | {{Infobox challenge/gridCell|arrow_left|{{{region}}}|{{#expr:{{{chal_no}}} + 1}}}}}} | {{!}} style="width:30px; vertical-align:middle;" {{!}} {{#ifexpr: 12 > {{{chal_no}}} mod 13 | {{Infobox challenge/gridCell|arrow_left|{{{region}}}|{{#expr:{{{chal_no}}} + 1}}}}}} | ||
{{!}}- | {{!}}- | ||
{{Infobox challenge/gridRow | region = {{{region}}} | arrow = up | {{#ifexpr: 52 > {{{chal_no}}} | {{#expr: {{{chal_no}}} + 13}} | 69}}}} | {{Infobox challenge/gridRow | region = {{{region}}} | arrow = up | {{#ifexpr: 52 > {{{chal_no}}} | {{#expr: {{{chal_no}}} + 13}} | 69}}}}{{Superimpose/d_object | [[File:Rarity {{{rarity}}} challenge 40.png|link=]] | x = 142 | y = 34}} | ||
{{!}}} | {{!}}}{{Cornerless box | {{{goal|{{Unset param|goal|Goal missing! Inform page author or sign in to add the information yourself.}}}}} | border_style = 4px solid #cf831e | pad = 4px | pad_h = 12px}} | ||
'''Strategy:''' {{{strat|Not yet written on this wiki. Stay tuned!}}}</div> | |||
<p style="padding:24px; text-align:center;">[[{{{region}}}_challenges|Return]] to the full list of challenges.</p> | |||
<p style="padding- | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{ | {{Infobox challenge | chal_no=14 | reward=Ironstone Greatsword | rarity=Common | is_weapon=1}} | ||
==Parameters== | ==Parameters== | ||
# There is one anonymous parameter that can be blank, producing the full page examples shown above. Alternatively, specify one of the following modes: | # There is one anonymous parameter that can be blank, producing the full page examples shown above. Alternatively, specify one of the following modes: | ||
* pageName = {{ | * pageName = {{Infobox challenge | pageName | region=Woodland | title=Where Wolf?}} | ||
* regionalRow = {{ | * challengeName = {{Infobox challenge | challengeName | title=Where Wolf?}} | ||
* regionalRow = {{Infobox challenge | regionalRow}} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 14:40, 21 November 2025
| Goal missing! Inform page author or sign in to add the information yourself. | ||
[[{{{region}}}_challenges|Return]] to the full list of challenges.
Parameters
- There is one anonymous parameter that can be blank, producing the full page examples shown above. Alternatively, specify one of the following modes:
- pageName = Woodland Challenge: Where Wolf?
- challengeName = Where Wolf?
- regionalRow = || [[{{{region}}} Challenge: {{{title}}}|{{{title}}}]] || {{{goal}}} || {{:{{{reward}}} | iconLink}}


