Template:Navbox/doc: Difference between revisions
Template page
More actions
Created page with "{{Documentation/Header}} {{CSS|Navbox|Colors}} Base template for all Navboxes. ==Syntax== {|class="article-table" style="width:100%;" |- !Parameter(s) !Usage !style="width:10%;" | Default value(s) |- |{{{name}}} |Should be identical to the template's name without namespace. |{{{name}}} |- |{{{title}}} |Sets the title used at the top of the navbox. |{{{title}}} |- |{{{state}}} |Allows you to change the collapsing state of the table. mw:Manual:Collapsible elements#Commo..." |
Updated to RANGER navbox |
||
| Line 1: | Line 1: | ||
{{Documentation/Header}} | {{Documentation/Header}} | ||
{{CSS|Navbox | {{Lua|Navbox}} | ||
{{CSS|Navbox}} | |||
Template that creates a standard navigation box. | |||
For full documentation: [https://support.wiki.gg/wiki/RANGER_navboxes RANGER navboxes] | |||
==Syntax== | ==Syntax== | ||
<pre> | |||
{{Navbox | |||
|title = | |||
|striped = even | |||
|editlinks = off | |||
|group1 = | |||
|list1 = | |||
|group2 = | |||
|list2 = | |||
}} | |||
</pre> | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
== | ==Examples== | ||
====Multiple subgroups==== | |||
<pre> | <pre> | ||
{{Navbox | {{Navbox | ||
| | |title = Items | ||
|title | |striped = even | ||
| | |editlinks = 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 | |||
}} | |||
</pre> | |||
{{Navbox | |||
|title = Items | |||
|striped = even | |||
|editlinks = off | |||
|above = Some items are restricted to specific classes; see Classes for more information. | |||
|below = Update 1.2 | |||
|below_class = align-right | |||
|group1 | |group1 = Consumables | ||
|list1 | |list1 = | ||
* Health Potion | |||
* Mana Potion | |||
|group2 | |group2 = Weapons | ||
| | |group2.1 = Swords | ||
|list2.1 = | |||
* Wooden Sword | |||
* Rusted Sword | |||
* Steel Sword | |||
|group2.2 = Bows | |||
|list2.2 = | |||
* Shortbow | |||
* Crossbow | |||
* Longbow | |||
}} | |||
|group3 | ====Multiple expands/collapses in a single container==== | ||
|list3 | <pre> | ||
* | {{Navbox | ||
* | |title = Items | ||
* | |striped = even | ||
|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 | |||
}} | }} | ||
</pre> | </pre> | ||
{{Navbox | {{Navbox | ||
|title = Items | |||
|title | |striped = even | ||
| | |||
| | |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 | |||
|group3 | |header3 = Weapons | ||
|list3 | |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 | |||
}} | }} | ||