Template:Infobox item: Difference between revisions
Jump to navigation
Jump to search
TeamSpecBot (talk | contribs) Template: infobox item |
TeamSpecBot (talk | contribs) 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:{{{stats|}}}| | {{#if:{{{stats|}}}| | ||
| Line 47: | Line 42: | ||
* <code>type</code>: type | * <code>type</code>: type | ||
* <code>cost</code>: cost | * <code>cost</code>: cost | ||
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: slottype: typecost: cost
Every parameter is optional; empty ones are left out. Needs the ParserFunctions extension for #if.