Template:Navigation Box

From Donkey Kong Wiki
Jump to: navigation, search

Usage[edit]

This template was created to streamline the navbox creation process and make it more user-friendly for less experienced editors to modify.

Note it will not be able to create a template with an image as its background (i.e. the HelpNav template).

Outline:
{{Navigation Box
|borderColor=
|backgroundColor=
|title=
|titleColor=
|col1color=
|col2color=
|item1=
|item2=
|item3=
|item4=
}}

Note that the template has several default settings in place for the colors. The "title" field, however, should at least be filled in, and the template will show that its title wasn't set. The minimal fields required are as follows:

{{Navigation Box
|title=
|item1=
|item2=
}}
Implementation examples:

Input:

{{Navigation Box
|borderColor=green
|backgroundColor=maroon
|title=<span style="color:gold;">A navbox made with Template:Navigation Box, using all possible fields</span>
|titleColor=midnightblue
|col1color=pink
|col2color=white
|item1= item1
|item2= item2. remember to keep these background colors lighter than the font colors for readability! 
|item3= etc.
|item4= For up to 15 rows, which can be increased if necessary by adding more "if" statements to the template code.
}}

Output:



Input:

{{Navigation Box
|title=<span style="color:gold;">A very minimalistic application of the template.</span>
|item1=One row. 
|item2=Two columns. 
}}

Output: