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:Navbox: Difference between revisions

Template page
No edit summary
Tags: wikieditor mobile web edit mobile edit
No edit summary
Tags: wikieditor mobile web edit mobile edit
Line 36: Line 36:
</div>
</div>


<noinclude>
{{/Doc}}
{{/Doc}}
<noinclude>[[Category:Templates]]</noinclude>
[[Category:Templates]]
</noinclude>

Revision as of 03:51, 25 February 2026

Navigation
Classes
Base
KnightWarriorMageSummonerRogueAcolyteScout
Advanced I
Special


This template renders a sitewide navigation box with two sections:

  • Classes (Base, Advanced I, Special)
  • Game Systems (Character, Items, Combat, World)

It has been updated to use the SpiritVale site primitives from Common.css (e.g., sv-card, sv-tile) and no longer relies on the legacy custom-table/infobox styling.

Usage

{{NavBox}}

You can override any list:

{{NavBox
 |TITLE=Classes & Systems
 |CLASSES_BASE=[[Knight]] • [[Mage]]
 |CLASSES_ADV1=[[Wizard]] • [[Priest]]
 |CLASSES_SPECIAL=[[Weaver]]
 |SYSTEMS_CHARACTER=[[Attributes]] • [[Skills]]
 |SYSTEMS_ITEMS=[[Equipment]] • [[Artifacts]]
 |SYSTEMS_COMBAT=[[Elements]] • [[Monsters]]
 |SYSTEMS_WORLD=[[Maps]] • [[Waypoints]]
}}

Parameters

Parameter Description Default
TITLE Text shown in the top header. Navigation
CLASSES_BASE Wikitext list for Base classes. Knight • Warrior • Mage • Summoner • Rogue • Acolyte • Scout
CLASSES_ADV1 Wikitext list for Advanced I classes. Wizard • Shinobi • Priest • Paladin • Gunslinger • Necromancer • Berserker
CLASSES_SPECIAL Wikitext list for Special classes. Weaver
SYSTEMS_CHARACTER Wikitext list under Character. Classes • Attributes • Skills • Storage • Coin
SYSTEMS_ITEMS Wikitext list under Items. Consumables • Equipment • Cards • Artifacts • Materials
SYSTEMS_COMBAT Wikitext list under Combat. Dodge Roll • Elements • Monsters • Arena
SYSTEMS_WORLD Wikitext list under World. Waypoints • Maps • Non-Player Characters • Refinement • Crafting

Styling and dependencies

This template uses:

  • .sv-card for the outer container
  • .sv-tile for the two main sections

All coloring and borders come from the SV token system, so it stays consistent across themes.

TemplateData

<templatedata> {

 "description": "Site-wide navigation box with fixed sections for Classes and Game Systems. By default it renders preset link lists, but each list (and the title) can be overridden via parameters.",
 "format": "block",
 "params": {
   "TITLE": {
     "label": "Title",
     "description": "Text shown in the top banner.",
     "type": "string",
     "default": "Navigation",
     "suggested": true
   },
   "CLASSES_BASE": {
     "label": "Classes — Base list",
     "description": "Wikitext list of base classes, shown in the Classes section.",
     "type": "content",
     "default": "KnightWarriorMageSummonerRogueAcolyteScout",
     "suggested": true
   },
   "CLASSES_ADV1": {
     "label": "Classes — Advanced I list",
     "description": "Wikitext list of Advanced I classes, shown in the Classes section.",
     "type": "content",
     "default": "WizardShinobiPriestPaladinGunslingerNecromancerBerserker",
     "suggested": true
   },
   "CLASSES_SPECIAL": {
     "label": "Classes — Special list",
     "description": "Wikitext list of Special classes, shown in the Classes section.",
     "type": "content",
     "default": "Weaver",
     "suggested": true
   },
   "SYSTEMS_CHARACTER": {
     "label": "Game Systems — Character",
     "description": "Wikitext list under Character.",
     "type": "content",
     "default": "ClassesAttributesSkillsStorageCoin",
     "suggested": true
   },
   "SYSTEMS_ITEMS": {
     "label": "Game Systems — Items",
     "description": "Wikitext list under Items.",
     "type": "content",
     "default": "ConsumablesEquipmentCardsArtifactsMaterials",
     "suggested": true
   },
   "SYSTEMS_COMBAT": {
     "label": "Game Systems — Combat",
     "description": "Wikitext list under Combat.",
     "type": "content",
     "default": "Dodge RollElementsMonstersArena",
     "suggested": true
   },
   "SYSTEMS_WORLD": {
     "label": "Game Systems — World",
     "description": "Wikitext list under World.",
     "type": "content",
     "default": "WaypointsMapsNon-Player CharactersRefinementCrafting",
     "suggested": true
   }
 },
 "paramOrder": [
   "TITLE",
   "CLASSES_BASE",
   "CLASSES_ADV1",
   "CLASSES_SPECIAL",
   "SYSTEMS_CHARACTER",
   "SYSTEMS_ITEMS",
   "SYSTEMS_COMBAT",
   "SYSTEMS_WORLD"
 ],
 "sets": [
   {
     "label": "Classes",
     "params": ["CLASSES_BASE", "CLASSES_ADV1", "CLASSES_SPECIAL"]
   },
   {
     "label": "Game Systems",
     "params": ["SYSTEMS_CHARACTER", "SYSTEMS_ITEMS", "SYSTEMS_COMBAT", "SYSTEMS_WORLD"]
   }
 ],
 "maps": {}

} </templatedata>