Template:Infobox item: Difference between revisions

From TeamSpec Wiki
Jump to navigation Jump to search
Template: infobox item
 
TeamSpec theme: colours move from inline styles to MediaWiki:Common.css classes
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{| style="float:right;clear:right;width:300px;margin:0 0 12px 16px;border:1px solid #a2a9b1;background:#f8f9fa;color:#202122;font-size:90%;border-collapse:collapse;"
<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="background:#dcebdc;padding:6px;font-size:115%;text-align:center;" | {{{name|{{PAGENAME}}}}}
! class="ts-infobox-title" colspan="2" style="padding:6px;font-size:115%;text-align:center;" | {{{name|{{PAGENAME}}}}}
{{#if:{{{image|}}}|
{{!}}-
{{!}} class="ts-infobox-image" colspan="2" style="padding:8px;text-align:center;" {{!}} [[File:{{{image}}}|250px|{{{name|{{PAGENAME}}}}}]]
}}
{{#if:{{{slot|}}}|
{{#if:{{{slot|}}}|
{{!}}-
{{!}}-
Line 14: Line 18:
{{#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|}}}|
{{!}}-
{{!}}-
! colspan="2" style="background:#e8ecf3;padding:4px 6px;text-align:center;" {{!}} Stats
! class="ts-infobox-section" colspan="2" style="padding:4px 6px;text-align:center;" {{!}} Stats
{{{stats}}}
{{{stats}}}
}}
}}
Line 47: Line 46:
* <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>.

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: slot
  • type: type
  • cost: cost

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