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
Tag: wikieditor
Tags: wikieditor mobile web edit mobile edit
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox custom-table" style="float:left; margin:1em auto; padding:2px; text-align:center; overflow:hidden; max-width:700px;"
<div class="sv-card" style="float:left; width:100%; max-width:700px; margin:1em auto; padding:10px; text-align:center;">
|-
<div style="font-weight:800; margin-bottom:10px;">{{{TITLE|Navigation}}}</div>
! colspan="2" | '''Classes'''
|-
| style="font-weight:bold; padding:4px; text-align:center; width:100px; min-width:100px; max-width:100px;" | Base || style="padding:4px; text-align:left;" | [[Knight]] • [[Warrior]] • [[Mage]] • [[Summoner]] • [[Rogue]] • [[Acolyte]] • [[Scout]]
|-
| style="font-weight:bold; padding:4px; text-align:center; width:100px; min-width:100px; max-width:100px;" | Advanced I || style="padding:4px; text-align:left;" | [[Wizard]] • [[Shinobi]] • [[Priest]] • [[Paladin]]
|- class="middle-header"
! colspan="2" | '''Game Systems'''
|-
| style="font-weight:bold; padding:4px; text-align:center; width:100px; min-width:100px; max-width:100px;" | [[Character]] || style="padding:4px; text-align:left;" | [[Classes]] • [[Attributes]] • [[Skills]] • [[Storage]] • [[Coin]]
|-
| style="font-weight:bold; padding:4px; text-align:center; width:100px; min-width:100px; max-width:100px;" | [[Items]] || style="padding:4px; text-align:left;" | [[Consumables]] • [[Equipment]] • [[Card System#Cards|Cards]] • [[Artifacts]] • [[Materials]]
|-
| style="font-weight:bold; padding:4px; text-align:center; width:100px; min-width:100px; max-width:100px;" | [[Combat]] || style="padding:4px; text-align:left;" | [[Dodge Roll]] • [[Elements]] • [[Monsters]] • [[Arena]]
|-
| style="font-weight:bold; padding:4px; text-align:center; width:100px; min-width:100px; max-width:100px;" | [[World]] || style="padding:4px; text-align:left;" | [[Waypoints]] • [[Maps]] • [[NPC|Non-Player Characters]] • [[Refinement]] • [[Crafting]]
|}


<div class="sv-tile" style="padding:10px; text-align:left;">
<div style="font-weight:800; margin-bottom:6px; text-align:center;">Classes</div>
<div style="display:grid; grid-template-columns:100px 1fr; gap:8px 12px; align-items:start;">
<div style="font-weight:800; text-align:center;">Base</div>
<div>{{{CLASSES_BASE|[[Knight]] • [[Warrior]] • [[Mage]] • [[Summoner]] • [[Rogue]] • [[Acolyte]] • [[Scout]]}}}</div>
<div style="font-weight:800; text-align:center;">Advanced I</div>
<div>{{{CLASSES_ADV1|[[Wizard]] • [[Shinobi]] • [[Priest]] • [[Paladin]] • [[Gunslinger]] • [[Necromancer]] • [[Berserker]]}}}</div>
<div style="font-weight:800; text-align:center;">Special</div>
<div>{{{CLASSES_SPECIAL|[[Weaver]]}}}</div>
</div>
</div>
<div class="sv-tile" style="padding:10px; text-align:left; margin-top:10px;">
<div style="font-weight:800; margin-bottom:6px; text-align:center;">Game Systems</div>
<div style="display:grid; grid-template-columns:100px 1fr; gap:8px 12px; align-items:start;">
<div style="font-weight:800; text-align:center;">[[Character]]</div>
<div>{{{SYSTEMS_CHARACTER|[[Classes]] • [[Attributes]] • [[Skills]] • [[Storage]] • [[Coin]]}}}</div>
<div style="font-weight:800; text-align:center;">[[Items]]</div>
<div>{{{SYSTEMS_ITEMS|[[Consumables]] • [[Equipment]] • [[Card System#Cards|Cards]] • [[Artifacts]] • [[Materials]]}}}</div>
<div style="font-weight:800; text-align:center;">[[Combat]]</div>
<div>{{{SYSTEMS_COMBAT|[[Dodge Roll]] • [[Elements]] • [[Monsters]] • [[Arena]]}}}</div>
<div style="font-weight:800; text-align:center;">[[World]]</div>
<div>{{{SYSTEMS_WORLD|[[Waypoints]] • [[Maps]] • [[NPC|Non-Player Characters]] • [[Refinement]] • [[Crafting]]}}}</div>
</div>
</div>
</div>


<noinclude>
<noinclude>
<templatedata>
{{/Doc}}
 
{
  "description": "Site-wide navigation infobox 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": "[[Knight]] • [[Warrior]] • [[Mage]] • [[Summoner]] • [[Rogue]] • [[Acolyte]] • [[Scout]]",
      "suggested": true
    },
    "SYSTEMS_CHARACTER": {
      "label": "Game Systems — Character",
      "description": "Wikitext list under Character.",
      "type": "content",
      "default": "[[Attributes]] • [[Dodge Roll]] • [[Refinement]]",
      "suggested": true
    },
    "SYSTEMS_ITEMS": {
      "label": "Game Systems — Items",
      "description": "Wikitext list under Items.",
      "type": "content",
      "default": "[[Equipment]] • [[Card System#Cards|Cards]] • [[Artifacts]] • [[Crafting]] • [[Storage]]",
      "suggested": true
    },
    "SYSTEMS_COMBAT": {
      "label": "Game Systems — Combat",
      "description": "Wikitext list under Combat.",
      "type": "content",
      "default": "[[Elements]] • [[Boss Monsters|Bosses]] • [[Monsters]]",
      "suggested": true
    },
    "SYSTEMS_WORLD": {
      "label": "Game Systems — World",
      "description": "Wikitext list under World.",
      "type": "content",
      "default": "[[Waypoints]] • [[Maps]] • [[NPC|Non-Player Characters]]",
      "suggested": true
    }
  },
  "paramOrder": [
    "TITLE",
    "CLASSES_BASE",
    "SYSTEMS_CHARACTER",
    "SYSTEMS_ITEMS",
    "SYSTEMS_COMBAT",
    "SYSTEMS_WORLD"
  ],
  "sets": [
    {
      "label": "Classes",
      "params": ["CLASSES_BASE"]
    },
    {
      "label": "Game Systems",
      "params": [
        "SYSTEMS_CHARACTER",
        "SYSTEMS_ITEMS",
        "SYSTEMS_COMBAT",
        "SYSTEMS_WORLD"
      ]
    }
  ],
  "maps": {}
}
</templatedata>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest 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>