RuneScape:Editing/Navbox

This page is a introduction to editing navboxes to help users learn how to edit and format navbox templates. Navbox templates are navigational templates found at the bottom of the articles.

Starting simple

 * Start a navbox with  on the first line and end it with a   on the last line of the template
 * On the second line add its name with, this has to be equal to the name of the template, e.g. the name of Template:Skilling pets is   (the link to the template without  )
 * On the next line add a title to display at the top of the navbox with, this is often used to link to the navbox's main content article, e.g. Skilling pets
 * On the next line add the group parameter to start a group to display links in with, e.g. the first group will be
 * On the next line add content to the group by adding an indent of 1 space followed by a  followed by another space followed by the link, e.g.
 * There are plain links, e.g.  which produces Skilling pets
 * There are links with the inventory icon, e.g.  which produces
 * There are links with the just the inventory icon, e.g.  which produces
 * There are links with the NPC's chathead, e.g.  which produces
 * There are links for emotes with their icons, e.g.  which produces
 * To learn more about the optional parameters of these so called link templates, see their documentation: plink, plinkp, chatl, and Emote link

Centring the group

 * It's common for navbox with one group to center the group with  with   being the number of the group, in this case being
 * It's also common for groups without a  parameter (see next section) to be centred

Adding a title to the group

 * Groups can also have titles, this is done by adding  with   being the number of the group, e.g.
 * It's common for group with a  parameter to not be centred, although it is technically possible

Adding a second group

 * A second group can easily be added just like the first group, start it on a new line after the contents of the first group
 * There is a maximum of 20 groups in a navbox (not counting subgroups, but those also have the same limit), e.g. a navbox can have 20 groups with 3 of them having an X amount of subgroups
 * All group parameters (gtitleX, styleX, gtypeX, groupX) also have the same number per group (with X being the number in this example)
 * It starts with group1 (there is no group0)

Adding a subgroup

 * Add  in the parent group above the   parameter
 * Add a subnavbox with an indent of 2 spaces
 * Instead of adding the  and   parameters, add the following parameter:
 * Continue as if it is a normal navbox with groups (or even deeper subgroups)
 * It's normal for navbox to have a maximum of 2 subgroups deep (subgroup in a subgroup in a group), however deeper subgroups do exist, but are not recommended

Categories

 * To add a category to a navbox so the category is transcluded from the navbox onto the articles that use the navbox, the following can be used:
 * Navbox templates themselves can also have a category by adding:
 * The above two templates are added at the end of the template on the same line as the closing  as shown below