Template:Infobox item: Difference between revisions
Jump to navigation
Jump to search
TeamSpecBot (talk | contribs) Add an image field |
TeamSpec theme: colours move from inline styles to MediaWiki:Common.css classes |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{| style="float:right;clear:right;width:300px;margin:0 0 12px 16px | <includeonly>{| class="ts-infobox" style="float:right;clear:right;width:300px;max-width:100%;box-sizing:border-box;margin:0 0 12px 16px;font-size:90%;border-collapse:collapse;" | ||
|- | |- | ||
! colspan="2" style=" | ! class="ts-infobox-title" colspan="2" style="padding:6px;font-size:115%;text-align:center;" | {{{name|{{PAGENAME}}}}} | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} colspan="2" style="padding:8px;text-align:center | {{!}} class="ts-infobox-image" colspan="2" style="padding:8px;text-align:center;" {{!}} [[File:{{{image}}}|250px|{{{name|{{PAGENAME}}}}}]] | ||
}} | }} | ||
{{#if:{{{slot|}}}| | {{#if:{{{slot|}}}| | ||
| Line 23: | Line 23: | ||
{{#if:{{{stats|}}}| | {{#if:{{{stats|}}}| | ||
{{!}}- | {{!}}- | ||
! colspan="2" style=" | ! class="ts-infobox-section" colspan="2" style="padding:4px 6px;text-align:center;" {{!}} Stats | ||
{{{stats}}} | {{{stats}}} | ||
}} | }} | ||
Latest revision as of 08:01, 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.