Template:Infobox item/as: Difference between revisions

From He is Coming Official Wiki
Okay. Looks like parameters must be explicitly relayed down to the next layer of transclusion. Confirming with iconLink, then updating for regionalRow.
Humph. I don't like how much default information I'm forced to add here. But, whatever. Make it work, then iterate.
Line 11: Line 11:
   }}
   }}
  | {{#switch: {{{1}}}
  | {{#switch: {{{1}}}
     | iconLink = {{Infobox_item/iconLink | name = {{{name}}}}}
     | iconLink = {{Infobox_item/iconLink | name = {{{name|Bloodmoon Dagger}}}}}
     | regionalRow = {{Infobox_item/regionalRow}}
     | regionalRow = {{Infobox_item/regionalRow | name = {{{name|Swiftstrike Gauntlet}}} | rarity = {{{rarity}}} | basestats = {{{basestats}}} | effect = {{{effect}}}}}
     | <span class="error">Bad Template:Infobox_item output parameter!</span> }}}}</onlyinclude>
     | <span class="error">Bad Template:Infobox_item output parameter!</span> }}}}</onlyinclude>
The standard use of Infobox item produces a human-readable Infobox, but if the item page is used ''as a template'' with a&nbsp;"1&nbsp;=&nbsp;"&nbsp;specifier, the following results will be produced instead:
The standard use of Infobox item produces a human-readable Infobox, but if the item page is used ''as a template'' with a&nbsp;"1&nbsp;=&nbsp;"&nbsp;specifier, the following results will be produced instead:

Revision as of 17:02, 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 Bloodmoon Dagger
regionalRow style="" | Swiftstrike Gauntlet {{{rarity}}} {{{basestats}}} {{{effect}}} -