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.
Jerimee (talk | contribs)
m add <noinclude>
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude>{{#ifeq: {{{1|}}} |  
<onlyinclude>{{#ifeq: {{{1|}}} |  
  | {{Infobox item
  | {{Infobox item
     | image = {{{image|Image}}}
    | hasupgrades = {{{hasupgrades|false}}}
     | image = {{{image|{{{name|Unknown}}} 16x.png}}}
    | goldimage = {{{goldimage|{{{name|Unknown}}} Gold 16x.png}}}
    | diamondimage = {{{diamondimage|{{{name|Unknown}}} Diamond 16x.png}}}
     | basestats = {{{basestats|&#45;}}}
     | basestats = {{{basestats|&#45;}}}
     | effect = {{{effect|&#45;}}}
     | effect = {{{effect|&#45;}}}
Line 11: Line 14:
   }}
   }}
  | {{#switch: {{{1}}}
  | {{#switch: {{{1}}}
     | iconLink = {{Infobox_item/iconLink | name = {{{name}}}}}
     | iconLink = {{Infobox_item/iconLink | name = {{{name|Ironstone Greatsword}}}}}
     | regionalRow = {{Infobox_item/regionalRow}}
     | regionalRow = {{Infobox_item/regionalRow | name = {{{name}}} | rarity = {{{rarity}}} | basestats = {{{summarystats|{{{basestats}}}}}} | effect = {{{effect}}} | region = {{{region|}}}}}
     | <span class="error">Bad Template:Infobox_item output parameter!</span> }}}}</onlyinclude>
    | regionalRowOne = {{Infobox_item/regionalRow | name = {{{name}}} | rarity = {{{rarity}}} | basestats = {{{summarystats|{{{basestats}}}}}} | effect = {{{effect}}} | region = {{{region|}}}  | set_widths = true}}
     | <span class="error">Bad Template:Infobox_item output parameter!</span> }}}}</onlyinclude><noinclude>
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:


{| class="wikitable"
{| class="wikitable"
  ! Specifier
  ! Specifier
  ! Example
  ! Result
  |-
  |-
  | iconLink || {{Infobox_item/as | iconLink}}
  | iconLink || {{Infobox_item/iconLink}}
  |-
  |-
  | regionalRow || {{Infobox_item/as | regionalRow}}
  | regionalRow || {{Infobox_item/regionalRow}}
|}
|}
</noinclude>
</noinclude>

Latest revision as of 19:38, 15 October 2026

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 Result
iconLink Ironstone Greatsword
regionalRow style="" | Ironstone Greatsword Common 4
-2
- -