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: Mobile edit Mobile web edit
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox" style="float:left;border:2px solid #372b54; border-radius:10px; box-shadow:0 2px 6px rgba(0,0,0,0.25); margin:1em auto; padding:2px; text-align:center; border-collapse:separate; border-spacing:0; overflow:hidden;"
<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" style="background:linear-gradient(180deg,#7a6fb0,#5a4e7c); color:white; text-align:center; padding:4px; font-size:110%; border-top:1px solid #555; word-wrap:break-word; overflow-wrap:break-word; border-top-left-radius:8px; border-top-right-radius:8px;" |'''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]]
|-
! colspan="2" style="background:linear-gradient(180deg,#7a6fb0,#5a4e7c); color:white; text-align:center; padding:4px; font-size:110%; border-top:1px solid #555; word-wrap:break-word; overflow-wrap:break-word;" | '''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;" | [[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

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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
TitleTITLE

Text shown in the top banner.

Default
Navigation
Stringsuggested
Classes — Base listCLASSES_BASE

Wikitext list of base classes, shown in the Classes section.

Default
[[Knight]] • [[Warrior]] • [[Mage]] • [[Summoner]] • [[Rogue]] • [[Acolyte]] • [[Scout]]
Contentsuggested
Classes — Advanced I listCLASSES_ADV1

Wikitext list of Advanced I classes, shown in the Classes section.

Default
[[Wizard]] • [[Shinobi]] • [[Priest]] • [[Paladin]] • [[Gunslinger]] • [[Necromancer]] • [[Berserker]]
Contentsuggested
Classes — Special listCLASSES_SPECIAL

Wikitext list of Special classes, shown in the Classes section.

Default
[[Weaver]]
Contentsuggested
Game Systems — CharacterSYSTEMS_CHARACTER

Wikitext list under Character.

Default
[[Classes]] • [[Attributes]] • [[Skills]] • [[Storage]] • [[Coin]]
Contentsuggested
Game Systems — ItemsSYSTEMS_ITEMS

Wikitext list under Items.

Default
[[Consumables]] • [[Equipment]] • [[Card System#Cards|Cards]] • [[Artifacts]] • [[Materials]]
Contentsuggested
Game Systems — CombatSYSTEMS_COMBAT

Wikitext list under Combat.

Default
[[Dodge Roll]] • [[Elements]] • [[Monsters]] • [[Arena]]
Contentsuggested
Game Systems — WorldSYSTEMS_WORLD

Wikitext list under World.

Default
[[Waypoints]] • [[Maps]] • [[NPC|Non-Player Characters]] • [[Refinement]] • [[Crafting]]
Contentsuggested