Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Join the Playtest on Steam Now: SpiritVale

Template:ClassInfoBox/Doc: Difference between revisions

Template page
Created page with "{{Documentation}} This template renders a compact **Class Overview** infobox for class pages (Role, Weapons, and the six core Attributes). == Usage == <syntaxhighlight lang="wikitext"> {{ClassInfoBox |Role=DPS / Bruiser |Weapons=Sword, Shield |STR=High |AGI=Medium |VIT=Medium |INT=Low |DEX=Medium |LUK=Low }} </syntaxhighlight> == Parameters == All parameters are optional (they default to an em dash: <code>—</code>). {| class="wikitable" ! Parameter !! Meani..."
Tags: Mobile edit Mobile web edit
 
No edit summary
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
{{Documentation}}
This template renders a compact **Class Overview** infobox for class pages (Role, Weapons, and the six core Attributes).
This template renders a compact **Class Overview** infobox for class pages (Role, Weapons, and the six core Attributes).


== Usage ==
== Usage ==
<syntaxhighlight lang="wikitext">
<nowiki>
{{ClassInfoBox
{{ClassInfoBox
  |Role=DPS / Bruiser
  |Role=DPS / Bruiser
Line 14: Line 12:
  |DEX=Medium
  |DEX=Medium
  |LUK=Low
  |LUK=Low
}}
}}</nowiki>
</syntaxhighlight>


== Parameters ==
== Parameters ==

Revision as of 03:57, 25 February 2026

This template renders a compact **Class Overview** infobox for class pages (Role, Weapons, and the six core Attributes).

Usage

{{ClassInfoBox
 |Role=DPS / Bruiser
 |Weapons=Sword, Shield
 |STR=High
 |AGI=Medium
 |VIT=Medium
 |INT=Low
 |DEX=Medium
 |LUK=Low
}}

Parameters

All parameters are optional (they default to an em dash: ).

Parameter Meaning Example
Role Class role/archetype summary. DPS
Weapons Primary weapons usable by the class. Spear, Shield
STR Strength emphasis/value. High
AGI Agility emphasis/value. Medium
VIT Vitality emphasis/value. Low
INT Intelligence emphasis/value. High
DEX Dexterity emphasis/value. Medium
LUK Luck emphasis/value. Low

Styling

This template loads <templatestyles src="Template:ClassInfoBox/styles.css" /> and uses the global SpiritVale primitives:

  • sv-card for the container card
  • sv-tile for the header/subheader bands
  • sv-class-overview__* classes for table layout and typography

If you change the visual design, do it in Template:ClassInfoBox/styles.css (not inline).

Notes

  • Attribute labels link to the relevant section on the Attributes page.
  • If an attribute icon file is missing, the label will still render (MediaWiki will show a redlink for the missing file until uploaded).