Template:ClassInfoBox: Difference between revisions
Template page
More actions
No edit summary |
No edit summary Tags: Mobile edit Mobile web edit |
||
| (7 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 Overview''' | ! colspan="2" class="sv-tile sv-class-overview__heading" | '''Class Overview''' | ||
|- | |- | ||
| Role | | class="sv-class-overview__label" | Role | ||
| {{{Role}}} | | class="sv-class-overview__value" | {{{Role|—}}} | ||
|- | |- | ||
| Weapons | | class="sv-class-overview__label" | Weapons | ||
| {{{Weapons}}} | | class="sv-class-overview__value" | {{{Weapons|—}}} | ||
|- | |- | ||
! colspan="2" | ! colspan="2" class="sv-tile sv-class-overview__subhead" | '''Attributes''' | ||
|- | |- | ||
| [[File:Strength.png|15px]] [[Attributes#Strength_(STR)|STR]] | | class="sv-class-overview__label" | [[File:Strength.png|15px]] [[Attributes#Strength_(STR)|STR]] | ||
| {{{STR}}} | | class="sv-class-overview__value" | {{{STR|—}}} | ||
|- | |- | ||
| [[File:Agility.png|15px]] [[Attributes#Agility_(AGI)|AGI]] | | class="sv-class-overview__label" | [[File:Agility.png|15px]] [[Attributes#Agility_(AGI)|AGI]] | ||
| {{{AGI}}} | | class="sv-class-overview__value" | {{{AGI|—}}} | ||
|- | |- | ||
| [[File:Vitality.png|15px]] [[Attributes#Vitality_(VIT)|VIT]] | | class="sv-class-overview__label" | [[File:Vitality.png|15px]] [[Attributes#Vitality_(VIT)|VIT]] | ||
| {{{VIT}}} | | class="sv-class-overview__value" | {{{VIT|—}}} | ||
|- | |- | ||
| [[File:Intelligence.png|15px]] [[Attributes#Intelligence_(INT)|INT]] | | class="sv-class-overview__label" | [[File:Intelligence.png|15px]] [[Attributes#Intelligence_(INT)|INT]] | ||
| {{{INT}}} | | class="sv-class-overview__value" | {{{INT|—}}} | ||
|- | |- | ||
| [[File:Dexterity.png|15px]] [[Attributes#Dexterity_(DEX)|DEX]] | | class="sv-class-overview__label" | [[File:Dexterity.png|15px]] [[Attributes#Dexterity_(DEX)|DEX]] | ||
| {{{DEX}}} | | class="sv-class-overview__value" | {{{DEX|—}}} | ||
|- | |- | ||
| [[File:Luck.png|15px]] [[Attributes#Luck_(LUK)|LUK]] | | class="sv-class-overview__label" | [[File:Luck.png|15px]] [[Attributes#Luck_(LUK)|LUK]] | ||
| {{{LUK}}} | | class="sv-class-overview__value" | {{{LUK|—}}} | ||
|} | |} | ||
</div> | |||
<noinclude> | <noinclude> | ||
{{/Doc}} | |||
{ | [[Category:Templates]] | ||
</noinclude> | </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).