Module:Navbox/doc

From MiiWiki
Jump to navigationJump to search

This is the documentation page for Module:Navbox

This module generates a navbox in an easier way and allows to select a mode and colors.

Basic example

{{#invoke:navbox|MODE|color1=BACKGROUND|color2=BORDER|color3=HEADER-CELLS|TITLE|
Head // Item, Item, Item, Item
Head // Item, Item, Item
...
}}
  • MODE defines the mode of the items. The available modes are
    • list: items are defined normally, so you can place a link, or something else, individually.
    • autolink: each item is turned into a link automatically. This is better suited for specific situations where all the pages do not need any modifications to the link.
  • color1 defines the background color of the navbox.
  • color2 defines the border color.
  • color3 defines the background color of the header cells.
  • TITLE defines the title of the navbox.

After the title, press enter to jump to the next line and then type the title of the section, the head-cell (Head), then insert two forward slashes and start typing the items (Item). Split each item with a comma.

All of the items need to be in one single line along the head-cell, if you break a line this will create a new section.

View

My navbox
Head
  • Item
  • Item
  • Item
  • Item
Head
  • Item
  • Item
  • Item
{{#invoke:navbox|list|color1=beige|color2=green|color3=cyan|My navbox|
Head // Item, Item, Item, Item
Head // Item, Item, Item
}}