Jump to content

Template:Navbox

From DevilutionX Wiki
Revision as of 22:07, 30 November 2025 by KPhoenix (talk | contribs) (Created page with "<includeonly> {| class="navbox" style="border:1px solid #aaa; margin:1em 0; background:#f8f8f8; font-size:90%; border-collapse:collapse; width:100%;" ! colspan="2" style="background:#e2e2e2; padding:0.3em; text-align:center; font-weight:bold;" | {{{title|Navigation}}} <!-- ===== BLOCK 1 ===== --> {{#if:{{{header1|}}}| |- ! colspan="2" style="background:#e9f2f9; padding:0.3em; text-align:center;" | {{{header1}}} }} {{#if:{{{group1|}}}{{{list1|}}}| |- ! style="background:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Generic navbox meta-template used to build navigation boxes.

Parameters:

  • title – navbox title (high-level category)
  • headerN – full-width mid-level headings
  • groupN – left column labels
  • listN – right column contents

Up to 10 header/group/list blocks are supported by default. You can extend this template by copy-pasting the "BLOCK" pattern for higher N if needed.

Example:

{{Navbox
 |title   = Items
 |header1 = Base Items
 |group1  = Weapons
 |list1   = *[[Sword]] *[[Axe]]
 |group2  = Armor
 |list2   = *[[Leather Armor]] *[[Chain Mail]]
}}

Requires the ParserFunctions extension for .