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.
 
Jerimee (talk | contribs)
m add <noinclude>
 
(14 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}}
     | 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
- -