FANDOM


Navbox
Template documentation [View] [Edit] [History] [Refresh]
Overview

This template is an internal template, used to easily construct Navboxes, such as {{Craftable Items}}. It uses intuitive syntax and hides the HTML/markup, as well as allows standardized appearance and central location to propagate changes.

Usage

Construct your specific navbox template with basic syntax like this:

{{navbox
 |title = My Navbox for Cool Stuff
 |templatelink = Cool Navbox
 |list = [[Something]] • [[Other]] (Than) • [[Rather]]
}}
My Navbox for Cool Stuff
SomethingOther (Than) • Rather

Then use {{Cool Navbox}} on applicable pages.

You can also use more than one row and specify groups:

{{navbox
 |title = My Navbox for Cool Stuff
 |templatelink = Cool Navbox
 |list1 = [[Something]] • [[Other]] (Than) • [[Rather]]
 |list2 = [[May be]] • [[Some]] (Rainy) • [[Day]] • [[After]] all
}}
My Navbox for Cool Stuff
SomethingOther (Than) • Rather
May beSome (Rainy) • DayAfter all

Additionally, you can specify groups for rows:

{{navbox
 |title = My Navbox for Cool Stuff
 |templatelink = Cool Navbox
 |group1 = Rhyme
 |list1 = [[Something]] • [[Other]] (Than) • [[Rather]]
 |group2 = Song
 |list2 = [[May be]] • [[Some]] (Rainy) • [[Day]] • [[After]] all
}}
My Navbox for Cool Stuff
Rhyme SomethingOther (Than) • Rather
Song May beSome (Rainy) • DayAfter all

To categorize all pages that the navboxes will be placed on, use categoryN parameters:

{{navbox
 |title = My Navbox for Cool Stuff
 |templatelink = Cool Navbox
 |list1 = [[Something]] • [[Other]] (Than) • [[Rather]]
 |category1 = Silly words
 |category2 = Lyrics
}}

To categorize pages selectively from pages that the navboxes will be placed on, use keywordN and categoryforkeywordN parameters:

{{navbox
 |title = My Navbox for Cool Stuff
 |templatelink = Cool Navbox
 |list1 = [[Something]] • [[Other]] (Than) • [[Rather]]
 |userkeyword = {{{1|}}}
 |keyword1 = poem
 |categoryforkeyword1 = Sappy Poems
 |keyword2 = lyric
 |categoryforkeyword2 = Generic Lyrics
}}

|userkeyword = {{{1|}}} means pages can do {{Cool Navbox|poem}} and "poem" will be passed as userkeyword. This template will then select a matching category (if any), in this case "Category:Sappy Poems"

Community content is available under CC-BY-SA unless otherwise noted.