Template:Infobox class: Difference between revisions

From TeamSpec Wiki
Jump to navigation Jump to search
Template: infobox class
 
TeamSpec theme: colours move from inline styles to MediaWiki:Common.css classes
 
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;margin:0 0 12px 16px;font-size:90%;border-collapse:collapse;"
|-
|-
! colspan="2" style="background:#dbe4f3;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:{{{health|}}}|
{{#if:{{{health|}}}|
{{!}}-
{{!}}-

Latest revision as of 08:01, 20 October 2026

The box at the top right of every class page.

Usage

{{Infobox class
| name = Trooper
| health = 250
| speed = 6.5 m/s
| pick = 3
| power = 4
| support = 3
| primary = [[Pulse Rifle]]
}}

Parameters

  • name: the title. Defaults to the page name.
  • health: health
  • speed: speed
  • regen: regeneration
  • pick: pick
  • power: power
  • support: support
  • primary: primary
  • secondary: secondary
  • melee: melee
  • accessory: accessory

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