Jump to content

Template:Navbox: Difference between revisions

From The Petit Planet Wiki
ReisuDesign (talk | contribs)
Created page with "<includeonly><!-- Please do not edit without discussion first as this is a VERY complex template. -->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|<!-- -->#default=<table cellspacing="0" class="navbox-border navbox" style="border-spacing:0;{{{bodystyle|}}};{{{style|}}}"><!-- --><tr><td style="padding:2px;">}}<!-- --><table cellspacing="0" class="nowraplinks {{{bodyclass|}}} {{#if:{{{title|}}}|{{#switch:{{{state|}}}|<!-- -->plain=|#default={{#ifeq:{{lc..."
 
ReisuDesign (talk | contribs)
No edit summary
Line 25: Line 25:
---Above---
---Above---
-->{{#if:{{{above|}}}|<!--
-->{{#if:{{{above|}}}|<!--
-->{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
  --><tr><td class="navbox-abovebelow {{{aboveclass|}}}" style="{{{basestyle|}}};{{{abovestyle|}}}" <!--
  --><tr><td class="navbox-abovebelow {{{aboveclass|}}}" style="{{{basestyle|}}};{{{abovestyle|}}}" <!--
  -->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}"><div>
  -->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}"><div>
Line 33: Line 32:


---First group/list and images---
---First group/list and images---
-->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<tr style="height:2px;"><td></td></tr>}}<tr><!--


-->{{#if:{{{imageleft|}}}|<!--
-->{{#if:{{{imageleft|}}}|<!--
Line 62: Line 60:
{{{image}}}</div></td>}}<!--
{{{image}}}</div></td>}}<!--


--></tr>}}<!--


---Remaining groups/lists---
---Remaining groups/lists---


-->{{#if:{{{list2|}}}|<!--
-->{{#if:{{{list2|}}}|<!--
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
  -->{{#if:{{{group2|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group2|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group2style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group2style|}}}"><!--
Line 75: Line 71:
  --><div style="padding:{{{list2padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list2padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list2}}}
{{{list2}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list3|}}}|<!--
-->{{#if:{{{list3|}}}|<!--
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
  -->{{#if:{{{group3|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group3|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group3style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group3style|}}}"><!--
Line 86: Line 81:
  --><div style="padding:{{{list3padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list3padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list3}}}
{{{list3}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list4|}}}|<!--
-->{{#if:{{{list4|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group4|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group4|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group4style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group4style|}}}"><!--
Line 97: Line 91:
  --><div style="padding:{{{list4padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list4padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list4}}}
{{{list4}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list5|}}}|<!--
-->{{#if:{{{list5|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group5|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group5|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group5style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group5style|}}}"><!--
Line 108: Line 101:
  --><div style="padding:{{{list5padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list5padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list5}}}
{{{list5}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list6|}}}|<!--
-->{{#if:{{{list6|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group6|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group6|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group6style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group6style|}}}"><!--
Line 119: Line 111:
  --><div style="padding:{{{list6padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list6padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list6}}}
{{{list6}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list7|}}}|<!--
-->{{#if:{{{list7|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group7|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group7|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group7style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group7style|}}}"><!--
Line 130: Line 121:
  --><div style="padding:{{{list7padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list7padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list7}}}
{{{list7}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list8|}}}|<!--
-->{{#if:{{{list8|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group8|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group8|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group8style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group8style|}}}"><!--
Line 141: Line 131:
  --><div style="padding:{{{list8padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list8padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list8}}}
{{{list8}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list9|}}}|<!--
-->{{#if:{{{list9|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group9|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group9|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group9style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group9style|}}}"><!--
Line 152: Line 141:
  --><div style="padding:{{{list9padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list9padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list9}}}
{{{list9}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list10|}}}|<!--
-->{{#if:{{{list10|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group10|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group10|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group10style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group10style|}}}"><!--
Line 163: Line 151:
  --><div style="padding:{{{list10padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list10padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list10}}}
{{{list10}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list11|}}}|<!--
-->{{#if:{{{list11|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group11|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group11|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group11style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group11style|}}}"><!--
Line 174: Line 161:
  --><div style="padding:{{{list11padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list11padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list11}}}
{{{list11}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list12|}}}|<!--
-->{{#if:{{{list12|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group12|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group12|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group12style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group12style|}}}"><!--
Line 185: Line 171:
  --><div style="padding:{{{list12padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list12padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list12}}}
{{{list12}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list13|}}}|<!--
-->{{#if:{{{list13|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group13|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group13|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group13style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group13style|}}}"><!--
Line 196: Line 181:
  --><div style="padding:{{{list13padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list13padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list13}}}
{{{list13}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list14|}}}|<!--
-->{{#if:{{{list14|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group14|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group14|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group14style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group14style|}}}"><!--
Line 207: Line 191:
  --><div style="padding:{{{list14padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list14padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list14}}}
{{{list14}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list15|}}}|<!--
-->{{#if:{{{list15|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group15|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group15|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group15style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group15style|}}}"><!--
Line 217: Line 200:
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}} {{{listclass|}}}"><!--
  --><div style="padding:{{{list15padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list15padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list15}}}</div></td></tr>}}<!--
{{{list15}}}</div></td>}}<!--


-->{{#if:{{{list16|}}}|<!--
-->{{#if:{{{list16|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group16|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group16|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group16style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group16style|}}}"><!--
Line 228: Line 210:
  --><div style="padding:{{{list16padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list16padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list16}}}
{{{list16}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list17|}}}|<!--
-->{{#if:{{{list17|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group17|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group17|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group17style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group17style|}}}"><!--
Line 239: Line 220:
  --><div style="padding:{{{list17padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list17padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list17}}}
{{{list17}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list18|}}}|<!--
-->{{#if:{{{list18|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group18|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group18|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group18style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group18style|}}}"><!--
Line 250: Line 230:
  --><div style="padding:{{{list18padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list18padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list18}}}
{{{list18}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list19|}}}|<!--
-->{{#if:{{{list19|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group19|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group19|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group19style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group19style|}}}"><!--
Line 261: Line 240:
  --><div style="padding:{{{list19padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list19padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list19}}}
{{{list19}}}
</div></td></tr>}}<!--
</div></td>}}<!--


-->{{#if:{{{list20|}}}|<!--
-->{{#if:{{{list20|}}}|<!--
--><tr style="height:2px"><td></td></tr><tr><!--
  -->{{#if:{{{group20|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->{{#if:{{{group20|}}}|<th scope="row" class="navbox-group {{{groupclass|}}}" <!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group20style|}}}"><!--
  -->style="{{{basestyle|}}};{{#if:{{{groupwidth|}}}|width:{{{groupwidth}}};}}{{{groupstyle|}}};{{{group20style|}}}"><!--
Line 272: Line 250:
  --><div style="padding:{{{list20padding|{{{listpadding|0em 0.25em}}}}}}">
  --><div style="padding:{{{list20padding|{{{listpadding|0em 0.25em}}}}}}">
{{{list20}}}
{{{list20}}}
</div></td></tr>}}<!--
</div></td>}}<!--





Revision as of 20:35, 9 November 2025

Template documentation
Note: parts of or the entire template might not be visible without values provided.
This template uses Module:Navbox, a script written in Lua.
This template uses CSS found at MediaWiki:Gadget-Navbox.css.

Template that creates a standard navigation box.

Syntax

{{Navbox
|title = 
|striped = even
|edit_link = off
|group1 = 
|list1 = 
|group2 = 
|list2 = 
}}

Examples

Multiple subgroups

{{Navbox
|title = Items
|striped = even
|edit_link = off
|above = Some items are restricted to specific classes; see Classes for more information.
|below = Update 1.2
|below_class = align-right

|group1 = Consumables
|list1 =
* Health Potion
* Mana Potion

|group2 = Weapons
|group2.1 = Swords
|list2.1 =
* Wooden Sword
* Rusted Sword
* Steel Sword
|group2.2 = Bows
|list2.2 =
* Shortbow
* Crossbow
* Longbow
}}

Multiple expands/collapses in a single container

{{Navbox
|title = Items
|striped = even
|edit_link = off

|header1 = Consumables
|header1.1 = Potions
|list1.1 =
* Revitalizing Potion
* Teleport Potion
|group1.1.1 = Health
|list1.1.1 =
* Health Potion
* Large Health Potion
* Elixir of Healing
|group1.1.2 = Mana
|list1.1.2 =
* Mana Potion
* Large Mana Potion
* Elixir of Magic
|header1.2 = Scrolls
|list1.2 =
* Scroll of Poison

|header3 = Weapons
|state3 = collapsed
|group3 = Swords
|list3 =
* Wooden Sword
* Rusted Sword
* Steel Sword
|group4 = Bows
|list4 =
* Shortbow
* Crossbow
* Longbow
|group5 = Staves
|list5 =
* Basic Staff
* Wizard's Staff
}}

Template Data

Template that creates a standard navigation box.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

Text that appears at the top of the navbox.

Stringsuggested
Stripedstriped

Controls if the navbox rows should have zebra striping on even or odd rows, making it easier for users to distinguish two rows apart from each other. If sections are used, each section resets the even/odd counter.

Example
on, yes, striped, even, odd, swap
Stringsuggested
Edit linkedit_link

Controls if an edit icon should be displayed at the top-left of the navbox, making it easier for users to interact with the template itself.

Default
on
Example
off, no
Stringoptional
Statestate collapsible

Controls if a navbox should be expanded or collapsed when the page loads. This only affects the whole navbox; if sections are used, they are treated differently.

Default
expanded
Example
expanded, collapsed, off, no, plain
Stringoptional
Header nheadern header1 header2 header3

Text that appears at the top of the section, where n is any positive integer.

Stringoptional
Group ngroupn group1 group2 group3

Text label for a list, which appears on the left on desktop or at the top on mobile, where n is any positive integer.

Stringoptional
List nlistn list1 list2 list3

A wikitext list, where n is any positive integer.

Contentoptional
Group n.xgroupn.x group1.1 group1.2 group2.1.1

Text label for sub-lists that appear under groupn, groupn.x, etc.

Stringoptional
List n.xlistn.x list1.1 list1.2 list2.1.1

Wikitext sub-lists.

Contentoptional