Template:ClassInfoBox: Difference between revisions
Template page
More actions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<templatestyles src="Template:ClassInfoBox/styles.css" /><div class="sv-card sv-class-overview"> | |||
{| class="sv-class-overview__table" | |||
|- | |- | ||
! colspan="2" class="sv-tile sv-class-overview__heading" | '''Class Overview''' | ! colspan="2" class="sv-tile sv-class-overview__heading" | '''Class Overview''' | ||
| Line 28: | Line 29: | ||
| class="sv-class-overview__label" | [[File:Luck.png|15px]] [[Attributes#Luck_(LUK)|LUK]] | | class="sv-class-overview__label" | [[File:Luck.png|15px]] [[Attributes#Luck_(LUK)|LUK]] | ||
| class="sv-class-overview__value" | {{{LUK|—}}} | | class="sv-class-overview__value" | {{{LUK|—}}} | ||
|}</div> | |} | ||
</div> | |||
<noinclude> | |||
{{/Doc}} | |||
[[Category:Templates]] | |||
</noinclude> | |||
Latest revision as of 03:55, 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-cardfor the container cardsv-tilefor the header/subheader bandssv-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).