RuneScape:Style guide/Navboxes

The navbox style guide is a set of guidelines to use while creating and editing navboxes. These guidelines are here to keep the wiki code of the navboxes clean and consistent.

Parameters
All navboxes start with ' ' capitalised and the final ' ' should be on a separate line.


 * name should always match the name of the navbox without 'Template:'
 * title has to be a proper description of the navbox contains, e.g. Perks for Perks

For the other parameters see Template:Navbox/doc.

Categories
Navboxes that give a category to the articles that use the navbox should use ' ' on the same line as the final ' '. Navboxes itself can also have a category, these are added with ' '. Notice the difference that Ctg does not need 'Category:' in the name of the category, but that Template only does require the full link.

}}

White-spacing

 * Do not allow trailing spaces at the end of lines.
 * A space should be placed between each parameter and its value, e.g.
 * Exceptions are parameters that have a list as a value.

|gtitle1 = Name of first group * Link
 * group1 =

Group alignment
When adding a subgroup to a navbox, do not forget to add an indent of 2 spaces. This also counts for subgroups within subgroups, these add an extra indentation of 2 spaces, e.g. when a subgroup has a subgroup that inner subgroup will have an indentation of 4 spaces. Write values for 'gtypeX' and 'subgroup' with a small letter, e.g. 'subgroup' and 'yes' instead of 'Subgroup' and 'Yes', respectively. A list of values for the parameter 'groupX' always have one space as an indentation, list values within subgroup will have a 3 space-indentation and list values within subgroups within another subgroup will have a 5 space-indentation, etc.

Inline templates
Inline templates should not have spaces between the pipe (' ') symbol and the parameter name (or value), nor before or after the ' ' sign.

Helpful templates

 * plink, for items with an inventory sprite
 * chatl, for NPCs that have a chathead image
 * emote link, for emotes that have an emote icon
 * Quest icon, for links to quests

Parameter value list
There should be a single space between the list character and the content of that list item. * List item 1
 * List item 2

In case a link has a sublink, use  to add it behind the link with a space between the link and the   tag. Add the ""-signs outside the link and not within the alternative text of a link. * (Activated)

In case a link has two or more sublinks, use * to seperate the values inline. Do not use plink for the sublinks. * (1 * 2)

Centering a group
A group without a 'gtitleX' can be centered with. This usually the first group within a navbox for the main links.

Example navbox
Below are examples of the above guidelines in action, for a stub version of an average navbox.