Template:Navbox/doc

From MechQuest Wiki
Jump to: navigation, search

Template:Navbox is a basic navigation box that allows the user to create a collection of links and the related descriptions, along with a title.

Syntax

Syntax of using this template:

 {{navbox
 |title =
 |col1  = 
 |list1 = 
 |col2  = 
 |list2 = 
 |col3  = 
 |list3 = 
 ...
 |col10 = 
 |list10=
 }}

Description

This template is a simple navigation box that includes up to 10 rows that are sub-divided into 2 columns each. One column is for the name and the other contains the values for that row. An example of using this template is shown below.

Except the first row (which is mandatory), all other rows are by default hidden. They can be toggled to show by passing parameters into the corresponding column fields. It is toggled by using syntax ...|col(n)= column name, replacing (n) with an appropriate number.

By default this template does not have a category when applied. To counter this, enter a category using the |category parameter.

This is a simplified version of template:navbox that appears in wikipedia, stripping several less needed functions with the reduction of capacity from 20 to 10, though this can easily be modified by changing the code in the template.

Example

An example of navbox is generated below

Oddjobs u can find
Dropship Shuttle

Shuttle Test Piloting | Assault Mecha

Soluna City

Magic and Novelty Item Store | Mecharoni's | Soluna Galactic Museum | Soluna Police Department | Specific Hospital

Alamonia Town

Sheriff | Westion Desert | Hover Train

Khaeldron

Khaeldron Research Labs | Protect the Train

col5

list5 (leave the col5 blank to hide this row)

col6

list6 (leave the col6 blank to hide this row)

col7

list7 (leave the col7 blank to hide this row)

col8

list8 (leave the col8 blank to hide this row)

col10


It is done by using the following parameters:

 {{navbox
 |title = Oddjobs u can find
 |col1  = Dropship Shuttle
 |list1 = [[Shuttle Test Piloting]] {{!}} [[Assault Mecha]]
 |col2  = Soluna City
 |list2 = [[Magic and Novelty Item Store]] {{!}} [[Mecharoni's]] 
{{!}} [[Soluna Galactic Museum]] {{!}} [[Soluna Police Department]]
{{!}} [[Specific Hospital]]
 |col3  = [[Alamonia Town]]
 |list3 = [[Sheriff]] {{!}} Westion Desert {{!}} [[Hover Train]]
 |col4  = [[Khaeldron]]
 |list4 = [[Khaeldron Research Labs]] {{!}} [[Protect the Train]]
 |col5  = col5
 |list5 = list5 (leave the col5 blank to hide this row)
 |col6  = col6
 |list6 = list6 (leave the col6 blank to hide this row)
 |col7  = col7
 |list7 = list7 (leave the col7 blank to hide this row)
 |col8  = col8
 |list8 = list8 (leave the col8 blank to hide this row)
 |col9  = 
 |col10  = col10
 }}

See also