Template:NavBox

From Habbox Wiki
Jump to: navigation, search

Documentation

When to use:

This template should be used to create navbox templates for different topics or categories.

Usage:

{{NavBox
|title=<title>

|group1=<group>
|list1=<list>
|group2=<group>
|list2=<list>
|group3=<group>
|list3=<list>

... 

|group12=<group>
|list12=<list>
}}

The Title and the Group should be existing pages. You may have up-to twelve different groups. Categories can only be used in the format:

[[:Category:]]<name>

Group should be in this format in most cases:

[[<pagename>]]

List must be in the format:

[[Link1]] {{·}} [[Link2]] {{·}} [[Link3]]

Appearance

Habbox
Habbox_WebsitesHabbox_Forum · Habbox_Live · Habbox_Wiki
Habbox_DeparmentsHabbox_Events · Habbox_Rare_Values · Habbox_News
Habbox_StaffJin · xxMATTGxx · HotelUser 
{{NavBox
|title=Habbox
|group1=[[Habbox_Websites]]
|list1=[[Habbox_Forum]] {{·}} [[Habbox_Live]] {{·}} [[Habbox_Wiki]]
|group2=[[Habbox_Deparments]]
|list2=[[Habbox_Events]] {{·}} [[Habbox_Rare_Values]] {{·}} [[Habbox_News]]
|group3=[[Habbox_Staff]]
|list3=[[Jin]] {{·}} [[xxMATTGxx]] {{·}} [[HotelUser]] 
}}


How to implement:

This template is fairly complicated to implement initially. First you must section the pages you want in the nav boxes into groups, these groups need to be named after the page which groups them together. For example "Habbox_Websites" could be a page and group for "Habbox_Forum", "Habbox_com" and "Habbox_Wiki". The page does not need to be complicated, it can even just be a list of it's constituent parts (Although a bit of information about criteria for the group may be helpful).

Once you have done this take all those pages for that group and put them in a line each surrounded with "[[" and "]]", with "{{·}}" between them, this will add a separating bullet point. This can be "list1" and the group-page, "group1" do the same for your other groups and set a general title for the navbox (Must be an existing page) for "title", place all these values into their corresponding locations on the format shown above.

Once you have done this copy the code into a new page, this MUST be named in the format "Template:NavBox_<title>" (Replace <title> with your navbox's title). You can then include the NavBox onto any page you want (Preferably at the bottom) with {{NavBox_<title>}}.

Under no circumstances should you use this template directly on a page, only on other templates, as this can break very fast and makes updating very difficult.

Links:

Templates
Category:Technical_TemplatesTemplate:AlertBox · Template:Documentation · Template:Documentation Navbox · Template:HelpNavBox · Template:NavBox · Template:·
Category:AlertBox_TemplatesTemplate:Category · Template:Construction · Template:Formatting
Category:TemplatesTemplate:Imager · Category:NavBox Template