|
Tags: Mobile edit Mobile web edit |
| (15 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| <noinclude>[[Category:Templates]]</noinclude> | | <templatestyles src="Template:ClassInfoBox/styles.css" /><div class="sv-card sv-class-overview"> |
| {| class="infobox" style="float:right; width:100%; max-width:150px; font-size:90%; border:2px solid #372b54; background:#f7f7fa; border-radius:12px; box-shadow:0 2px 6px rgba(0,0,0,0.25); margin:0 0 2em 2em;" | | {| class="sv-class-overview__table" |
| |- | | |- |
| ! colspan="2" style="background:linear-gradient(180deg,#7a6fb0,#5a4e7c); color:white; text-align:center; padding:4px; font-size:105%; border-top-left-radius:8px; border-top-right-radius:8px;" | | | ! colspan="2" class="sv-tile sv-class-overview__heading" | '''Class Overview''' |
| '''Class Overview''' | |
| |- | | |- |
| | style="background:#e6e3f0; font-weight:bold; width:35%; padding:4px; border-bottom:1px solid #f7f7f7;" | Role | | | class="sv-class-overview__label" | Role |
| | style="background:#ffffff; padding:4px; border-bottom:1px solid #ccc; text-align:center;" | {{{Role}}} | | | class="sv-class-overview__value" | {{{Role|—}}} |
| |- | | |- |
| | style="background:#e6e3f0; font-weight:bold; padding:4px; border-bottom:1px solid #f7f7f7;" | Weapons | | | class="sv-class-overview__label" | Weapons |
| | style="background:#ffffff; padding:4px; border-bottom:1px solid #ccc; text-align:center;" | {{{Weapons}}} | | | class="sv-class-overview__value" | {{{Weapons|—}}} |
| |- | | |- |
| ! colspan="2" style="background:linear-gradient(180deg,#7a6fb0,#5a4e7c); color:white; text-align:center; padding:4px; font-size:105%;" | | | ! colspan="2" class="sv-tile sv-class-overview__subhead" | '''Attributes''' |
| '''Attributes''' | |
| |- | | |- |
| | style="background:#ffffff; padding:4px; border-bottom:1px solid #eee;" | [[File:Strength.png|15px]] [[Attributes#Strength_(STR)|STR]] | | | class="sv-class-overview__label" | [[File:Strength.png|15px]] [[Attributes#Strength_(STR)|STR]] |
| | style="background:#ffffff; padding:4px; border-bottom:1px solid #eee; text-align:center;" | {{{STR}}} | | | class="sv-class-overview__value" | {{{STR|—}}} |
| |- | | |- |
| | style="background:#ffffff; padding:4px; border-bottom:1px solid #eee;" | [[File:Agility.png|15px]] [[Attributes#Agility_(AGI)|AGI]] | | | class="sv-class-overview__label" | [[File:Agility.png|15px]] [[Attributes#Agility_(AGI)|AGI]] |
| | style="background:#ffffff; padding:4px; border-bottom:1px solid #eee; text-align:center;" | {{{AGI}}} | | | class="sv-class-overview__value" | {{{AGI|—}}} |
| |- | | |- |
| | style="background:#ffffff; padding:4px; border-bottom:1px solid #eee;" | [[File:Vitality.png|15px]] [[Attributes#Vitality_(VIT)|VIT]] | | | class="sv-class-overview__label" | [[File:Vitality.png|15px]] [[Attributes#Vitality_(VIT)|VIT]] |
| | style="background:#ffffff; padding:4px; border-bottom:1px solid #eee; text-align:center;" | {{{VIT}}} | | | class="sv-class-overview__value" | {{{VIT|—}}} |
| |- | | |- |
| | style="background:#ffffff; padding:4px; border-bottom:1px solid #eee;" | [[File:Intelligence.png|15px]] [[Attributes#Intelligence_(INT)|INT]] | | | class="sv-class-overview__label" | [[File:Intelligence.png|15px]] [[Attributes#Intelligence_(INT)|INT]] |
| | style="background:#ffffff; padding:4px; border-bottom:1px solid #eee; text-align:center;" | {{{INT}}} | | | class="sv-class-overview__value" | {{{INT|—}}} |
| |- | | |- |
| | style="background:#ffffff; padding:4px; border-bottom:1px solid #eee;" | [[File:Dexterity.png|15px]] [[Attributes#Dexterity_(DEX)|DEX]] | | | class="sv-class-overview__label" | [[File:Dexterity.png|15px]] [[Attributes#Dexterity_(DEX)|DEX]] |
| | style="background:#ffffff; padding:4px; border-bottom:1px solid #eee; text-align:center;" | {{{DEX}}} | | | class="sv-class-overview__value" | {{{DEX|—}}} |
| |- | | |- |
| | style="background:#ffffff; padding:4px;" | [[File:Luck.png|15px]] [[Attributes#Luck_(LUK)|LUK]] | | | class="sv-class-overview__label" | [[File:Luck.png|15px]] [[Attributes#Luck_(LUK)|LUK]] |
| | style="background:#ffffff; padding:4px; text-align:center;" | {{{LUK}}} | | | class="sv-class-overview__value" | {{{LUK|—}}} |
| |} | | |} |
| | </div> |
|
| |
|
| <templatedata> | | <noinclude> |
| { | | {{/Doc}} |
| "description": "Infobox for a class overview: shows the class role, weapons, and attribute emphasis.",
| | [[Category:Templates]] |
| "params": {
| | </noinclude> |
| "Role": {
| |
| "label": "Role",
| |
| "description": "Main role or playstyle of the class (how it’s typically used in a party).",
| |
| "type": "string",
| |
| "suggestedvalues": ["Tank", "DPS", "Healer", "Support", "Hybrid"],
| |
| "example": "Healer / Support",
| |
| "required": false
| |
| },
| |
| "Weapons": {
| |
| "label": "Weapons",
| |
| "description": "Comma-separated list of weapons the class commonly uses.",
| |
| "type": "string",
| |
| "example": "Mace, Staff, Tome",
| |
| "required": false
| |
| },
| |
| "STR": {
| |
| "label": "STR emphasis",
| |
| "description": "How important Strength is for this class (text or a simple rating).",
| |
| "type": "string",
| |
| "suggestedvalues": ["Low", "Medium", "High", "0", "1", "2", "3", "4", "5"],
| |
| "example": "Low",
| |
| "required": false
| |
| },
| |
| "AGI": {
| |
| "label": "AGI emphasis",
| |
| "description": "How important Agility is for this class (text or a simple rating).",
| |
| "type": "string",
| |
| "suggestedvalues": ["Low", "Medium", "High", "0", "1", "2", "3", "4", "5"],
| |
| "example": "Medium",
| |
| "required": false
| |
| },
| |
| "VIT": {
| |
| "label": "VIT emphasis",
| |
| "description": "How important Vitality is for this class (text or a simple rating).",
| |
| "type": "string",
| |
| "suggestedvalues": ["Low", "Medium", "High", "0", "1", "2", "3", "4", "5"],
| |
| "example": "High",
| |
| "required": false
| |
| },
| |
| "INT": {
| |
| "label": "INT emphasis",
| |
| "description": "How important Intelligence is for this class (text or a simple rating).",
| |
| "type": "string",
| |
| "suggestedvalues": ["Low", "Medium", "High", "0", "1", "2", "3", "4", "5"],
| |
| "example": "High",
| |
| "required": false
| |
| },
| |
| "DEX": {
| |
| "label": "DEX emphasis",
| |
| "description": "How important Dexterity is for this class (text or a simple rating).",
| |
| "type": "string",
| |
| "suggestedvalues": ["Low", "Medium", "High", "0", "1", "2", "3", "4", "5"],
| |
| "example": "Medium",
| |
| "required": false
| |
| },
| |
| "LUK": {
| |
| "label": "LUK emphasis",
| |
| "description": "How important Luck is for this class (text or a simple rating).",
| |
| "type": "string",
| |
| "suggestedvalues": ["Low", "Medium", "High", "0", "1", "2", "3", "4", "5"],
| |
| "example": "Low",
| |
| "required": false
| |
| }
| |
| },
| |
| "paramOrder": ["Role", "Weapons", "STR", "AGI", "VIT", "INT", "DEX", "LUK"]
| |
| }
| |
| </templatedata> | |
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).