Template:Infobox item/as: Difference between revisions

From He is Coming Official Wiki
This sub-page of Infobox_item acts sort of like a wrapper class for it, making it possible for each item page to act as a branching point for unlimited interpretations of everything that can be known about it.
 
Okay. Looks like parameters must be explicitly relayed down to the next layer of transclusion. Confirming with iconLink, then updating for regionalRow.
Line 11: Line 11:
   }}
   }}
  | {{#switch: {{{1}}}
  | {{#switch: {{{1}}}
     | iconLink = {{Infobox_item/iconLink}}
     | iconLink = {{Infobox_item/iconLink | name = {{{name}}}}}
     | regionalRow = {{Infobox_item/regionalRow}}
     | regionalRow = {{Infobox_item/regionalRow}}
     | <span class="error">Bad Template:Infobox_item output parameter!</span> }}}}</onlyinclude>
     | <span class="error">Bad Template:Infobox_item output parameter!</span> }}}}</onlyinclude>

Revision as of 16:48, 7 August 2025

File:Image
Base Stats -
Effect -
Tags -
Rarity Common
Found in Treasure Chests
Region Woodland
Itemsets -

The standard use of Infobox item produces a human-readable Infobox, but if the item page is used as a template with a "1 = " specifier, the following results will be produced instead:

Specifier Example
iconLink [[File:{{{name}}}.png|18px|link=]] [[{{{name}}}]]
regionalRow style="" | Ironstone Greatsword Common 4
-2
- -