Template:Infobox item: Difference between revisions

From TeamSpec Wiki
Jump to navigation Jump to search
Template: infobox item
 
Drop the preset field; the cost label links to how costs work
Line 14: Line 14:
{{#if:{{{cost|}}}|
{{#if:{{{cost|}}}|
{{!}}-
{{!}}-
{{!}} style="padding:4px 6px;vertical-align:top;font-weight:bold;width:40%;" {{!}} Cost
{{!}} style="padding:4px 6px;vertical-align:top;font-weight:bold;width:40%;" {{!}} [[Classes#Items cost points|Cost]]
{{!}} style="padding:4px 6px;" {{!}} {{{cost}}}
{{!}} style="padding:4px 6px;" {{!}} {{{cost}}}
}}
{{#if:{{{classes|}}}|
{{!}}-
{{!}} style="padding:4px 6px;vertical-align:top;font-weight:bold;width:40%;" {{!}} Default for
{{!}} style="padding:4px 6px;" {{!}} {{{classes}}}
}}
}}
{{#if:{{{stats|}}}|
{{#if:{{{stats|}}}|
Line 47: Line 42:
* <code>type</code>: type
* <code>type</code>: type
* <code>cost</code>: cost
* <code>cost</code>: cost
* <code>classes</code>: default for


Every parameter is optional; empty ones are left out. Needs the ParserFunctions extension for <code>#if</code>.
Every parameter is optional; empty ones are left out. Needs the ParserFunctions extension for <code>#if</code>.

Revision as of 04:20, 20 October 2026

The box at the top right of every accessory item page. Same parameters as Template:Infobox weapon.

Usage

{{Infobox item
| name = Pet Rock
| slot = Accessory
| type = Passive
| cost = Pick 0, Power 10, Support 0
| stats =
{{Stat row|Max health|+100}}
}}

Parameters

  • name: the title. Defaults to the page name.
  • slot: slot
  • type: type
  • cost: cost

Every parameter is optional; empty ones are left out. Needs the ParserFunctions extension for #if.