Template:Navbox
This is the generic navbox engine for the Soulbound Wiki. It renders a
collapsible navigation box at the foot of an article. It is not usually placed on
articles directly; instead, a thin per-series/per-region/per-set wrapper (for
example {{Navbox Main Quests}}
) calls it with fixed content, and articles
transclude the wrapper.
Modelled on the Wikipedia and [https://oldschool.runescape.wiki/w/Template:Navbox OSRS Wiki]] navboxes.
Usage
{{Navbox
| name = Navbox Main Quests
| title = [[Quests|Main quests]]
| state = autocollapse
| group1 = Beginnings
| list1 = [[Learning The Ropes]] · [[New Tricks]]
| group2 = The Foundation
| list2 = [[Cracks In The Foundation]] · [[Enter The F.R.A.M.E]]
}}
Parameters
| Parameter | Description |
|---|---|
title (or 1) |
Heading shown in the title bar. Required. |
name |
Page name of the wrapper template (without the Template: prefix). When set, a small v · t · e navbar is shown in the title bar linking to the wrapper's view/talk/edit. Recommended.
|
state |
Initial collapse state. One of:
|
above |
Optional full-width row above the groups. |
group1 … group10 |
Row label shown on the left. Optional per row — if omitted, the matching list spans the full width. |
list1 … list10 |
Row content. A row is only rendered when its listN is non-empty. Separate links with · (·).
|
below |
Optional full-width row below the groups. |
Collapsing
The autocollapse state relies on the wiki's standard collapsible-content
JavaScript (the same script OSRS-derived wikis ship): the box starts open on its own,
and auto-collapses once a second collapsible navbox appears on the same page. If the
script is unavailable the box simply renders expanded, which is safe.
Notes
- Up to ten group/list rows are supported. If a navbox needs more, split it into
logical sub-navboxes or nest a second {{Navbox}}
inside a
listN.
- Do not hard-code categories here — wrappers carry their own.