Template:Navbox: Difference between revisions
More actions
No edit summary Tag: Manual revert |
Tags: Mobile edit Mobile web edit |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<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> | |||
<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> | ||
{{/Doc}} | |||
{ | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 03:51, 25 February 2026
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-cardfor the outer container.sv-tilefor 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | TITLE | Text shown in the top banner.
| String | suggested |
| Classes — Base list | CLASSES_BASE | Wikitext list of base classes, shown in the Classes section.
| Content | suggested |
| Classes — Advanced I list | CLASSES_ADV1 | Wikitext list of Advanced I classes, shown in the Classes section.
| Content | suggested |
| Classes — Special list | CLASSES_SPECIAL | Wikitext list of Special classes, shown in the Classes section.
| Content | suggested |
| Game Systems — Character | SYSTEMS_CHARACTER | Wikitext list under Character.
| Content | suggested |
| Game Systems — Items | SYSTEMS_ITEMS | Wikitext list under Items.
| Content | suggested |
| Game Systems — Combat | SYSTEMS_COMBAT | Wikitext list under Combat.
| Content | suggested |
| Game Systems — World | SYSTEMS_WORLD | Wikitext list under World.
| Content | suggested |