How to Create a Navbox: Difference between revisions
m (Text replacement - "\{\{[\s_]+([^•].)" to "{{$1") |
|||
(27 intermediate revisions by one other user not shown) | |||
Line 59: | Line 59: | ||
<nowiki></table></nowiki><br> | <nowiki></table></nowiki><br> | ||
</td></tr></table> | </td></tr></table> | ||
<table style="border:1px solid black; width:100%; "> | <table style="border:1px solid black; width:100%; "> | ||
<tr> | <tr> | ||
<td style="text-align:center; font-size:16pt; color:blue; width:50%; ">Wikitext</td> | <td style="text-align:center; font-size:16pt; color:blue; width:50%; ">Wikitext</td> | ||
<td style="text-align:center; font-size:16pt; color:blue; width:50%; ">HTML</td> | <td style="text-align:center; font-size:16pt; color:blue; width:50%; ">HTML</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td | <td style="border:1px solid black; "> | ||
<nowiki>{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "</nowiki><br><br> | |||
border:1px solid | |||
width:100%; | |||
border:1px solid blue; | |||
border-collaspe:separate; | |||
border-spacing:5px; " | |||
< | |||
<nowiki>{{!}}-</nowiki><br> | <nowiki>{{!}}-</nowiki><br> | ||
<nowiki>{{!}} colspan="2" | <nowiki>{{!}} colspan="2" style="text-align:center; background-color:{{{title background color}}};{{!}} "Links to {{{name}}} - related articles</nowiki><br><br><br> | ||
style=" | |||
text-align:center; | |||
background-color:{{{title background color}}}; | |||
{{!}} "Links to {{{name}}} - related articles | |||
<nowiki>{{!}}-</nowiki><br> | <nowiki>{{!}}-</nowiki><br> | ||
<nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | <nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | ||
<nowiki>{{!}} style=" | <nowiki>{{!}} style="text-align:right; width:15%; background-color:{{{left column background color}}};{{!}} "'''{{{group title1}}}'''|}}</nowiki><br><br> | ||
text-align:right; </nowiki><br><nowiki> | <nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br> | ||
<nowiki>{{!}} style="text-align:left; background-color:{{{right column background color}}}; "> | |||
background-color:{{{ | {{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} {{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} {{#if:{{{group title1-item3|}}}{{·}}|{{{group title1-item3}}}{{·}}|}} {{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} {{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}}|}}</nowiki><br><br> | ||
{{ | <nowiki>|}</nowiki><br> | ||
</td> | </td> | ||
<td> | <td style="border:1px solid black; "> | ||
<nowiki><table style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "></nowiki><br> | |||
<nowiki><tr></nowiki><br> | |||
<nowiki><td colspan="2" style="text-align:center; background-color:{{{title background color}}}; ">Links to {{{name}}} - related articles</nowiki><br> | |||
<nowiki></td></nowiki><br> | |||
<nowiki></tr></nowiki><br> | |||
<nowiki><tr></nowiki><br> | <nowiki><tr></nowiki><br> | ||
<nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | <nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | ||
<nowiki><td style=" | <nowiki><td style="text-align:right; width:15%; background-color:{{{left column background color}}}; ">'''{{{group title1}}}'''|}}</nowiki><br> | ||
text-align:right; | <nowiki></td></nowiki><br> | ||
width:15%; | |||
background-color:{{{left column background color}}}; "> | |||
'''{{{group title1}}}'''|}}</nowiki><br> | |||
<nowiki></ | |||
<nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br> | <nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br> | ||
<nowiki><td style="text-align:left; background-color:{{{right column background color}}}; | <nowiki><td style="text-align:left; background-color:{{{right column background color}}}; "> | ||
" | {{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} {{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} {{#if:{{{group title1-item3|}}}{{·}}|{{{group title1-item3}}}{{·}}|}} {{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} {{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}}|}}</td></nowiki><br> | ||
{{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} | <nowiki></tr></nowiki><br> | ||
<nowiki></table></nowiki><br> | |||
{{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} | </td></tr></table> | ||
{{#if:{{{group title1-item3|}}}|{{{group title1-item3}}}{{·}}|}} | |||
{{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} | |||
{{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}} | |||
|}} | |||
<nowiki></tr></nowiki> | |||
< | |||
</td> | |||
</tr> | |||
<table style="border:1px solid black; width:100%; "> | <table style="border:1px solid black; width:100%; "> | ||
<tr> | <tr> | ||
<td style="text-align:center; font-size:16pt; color:blue; width:50%; ">Wikitext</td> | <td style="text-align:center; font-size:16pt; color:blue; width:50%; ">Wikitext</td> | ||
<td style="text-align:center; font-size:16pt; color:blue; width:50%; ">HTML</td> | <td style="text-align:center; font-size:16pt; color:blue; width:50%; ">HTML</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td | <td style="border:1px solid black; "> | ||
<nowiki>{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "</nowiki><br><br> | |||
<nowiki>{{!}}-</nowiki><br> | |||
border:1px solid | <nowiki>{{!}} colspan="2" style="text-align:center; background-color:{{{title background color}}};{{!}} "Links to {{{name}}} - related articles</nowiki><br><br><br> | ||
<nowiki> | |||
width:100%; | |||
border:1px solid blue; | |||
border-collaspe:separate; | |||
border-spacing:5px; " | |||
< | |||
<nowiki>{{!}} colspan="2" | |||
style=" | |||
text-align:center; | |||
background-color:{{{title background color}}}; | |||
{{!}} "Links to {{{name}}} - related articles | |||
<nowiki>{{!}}-</nowiki><br> | <nowiki>{{!}}-</nowiki><br> | ||
<nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | <nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | ||
<nowiki>{{!}} style=" | <nowiki>{{!}} style="text-align:right; width:15%; background-color:{{{left column background color}}};{{!}} "'''{{{group title1}}}'''|}}</nowiki><br><br> | ||
text-align:right; </nowiki><br><nowiki> | <nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br> | ||
<nowiki>{{!}} style="text-align:left; background-color:{{{right column background color}}}; "> | |||
background-color:{{{ | {{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} {{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} {{#if:{{{group title1-item3|}}}{{·}}|{{{group title1-item3}}}{{·}}|}} {{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} {{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}}|}}</nowiki><br><br> | ||
{{ | <nowiki>|}</nowiki><br> | ||
</td> | </td> | ||
<td> | <td style="border:1px solid black; "> | ||
<nowiki><table style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "></nowiki><br> | |||
<nowiki><tr></nowiki><br> | |||
<nowiki><td colspan="2" style="text-align:center; background-color:{{{title background color}}}; ">Links to {{{name}}} - related articles</nowiki><br> | |||
<nowiki></td></nowiki><br> | |||
<nowiki></tr></nowiki><br> | |||
<nowiki><tr></nowiki><br> | <nowiki><tr></nowiki><br> | ||
<nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | <nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | ||
<nowiki><td style=" | <nowiki><td style="text-align:right; width:15%; background-color:{{{left column background color}}}; ">'''{{{group title1}}}'''|}}</nowiki><br> | ||
text-align:right; | <nowiki></td></nowiki><br> | ||
width:15%; | |||
background-color:{{{left column background color}}}; "> | |||
'''{{{group title1}}}'''|}}</nowiki><br> | |||
<nowiki></td></nowiki | |||
<nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br> | <nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br> | ||
<nowiki> | <nowiki><td style="text-align:left; background-color:{{{right column background color}}}; "> | ||
" | {{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} {{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} {{#if:{{{group title1-item3|}}}{{·}}|{{{group title1-item3}}}{{·}}|}} {{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} {{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}}|}}</td></nowiki><br> | ||
{{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} | <nowiki></tr></nowiki><br> | ||
<nowiki></table></nowiki><br> | |||
{{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} | </td></tr></table> | ||
{{#if:{{{group title1-item3| | |||
{{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} | |||
{{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}} | |||
|}} | |||
<nowiki></tr></nowiki> | |||
< | |||
<nowiki> | |||
</ | |||
</td> | |||
</tr> | |||
</table | |||
<table style="border:1px solid black; width:100%; "> | <table style="border:1px solid black; width:100%; "> | ||
<tr> | <tr> | ||
Line 308: | Line 134: | ||
<td style="text-align:center; font-size:16pt; color:blue; width:50%; ">HTML</td> | <td style="text-align:center; font-size:16pt; color:blue; width:50%; ">HTML</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td> | <td style="border:1px solid black; "> | ||
<nowiki>{| style=" | <nowiki>{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "</nowiki><br><br> | ||
width:100%; | <nowiki>{{!}}-</nowiki><br> | ||
border:1px solid blue; | <nowiki>{{!}} colspan="2" style="text-align:center; background-color:{{{title background color}}};{{!}} "Links to {{{name}}} - related articles</nowiki><br><br><br> | ||
border-collaspe:separate; | |||
border-spacing:5px; "</nowiki> | |||
< | |||
< | |||
<nowiki> | |||
< | |||
< | |||
<nowiki>{{!}}-</nowiki><br> | <nowiki>{{!}}-</nowiki><br> | ||
<nowiki>{{ | <nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | ||
style="</nowiki><br><nowiki> | <nowiki>{{!}} style="text-align:right; width:15%; background-color:{{{left column background color}}};{{!}} "'''{{{group title1}}}'''|}}</nowiki><br><br> | ||
<nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br> | |||
background-color:{{{ | <nowiki>{{!}} style="text-align:left; background-color:{{{right column background color}}}; "> | ||
{{ | {{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} {{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} {{#if:{{{group title1-item3|}}}{{·}}|{{{group title1-item3}}}{{·}}|}} {{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} {{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}}|}}</nowiki><br><br> | ||
<nowiki>|}</nowiki><br> | |||
</td> | </td> | ||
<td><nowiki>< | <td style="border:1px solid black; "> | ||
<nowiki>< | <nowiki><table style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "></nowiki><br> | ||
style=" | <nowiki><tr></nowiki><br> | ||
text-align:center; | <nowiki><td colspan="2" style="text-align:center; background-color:{{{title background color}}}; ">Links to {{{name}}} - related articles</nowiki><br> | ||
background-color:{{{title background color}}}; | |||
">Links to {{{name}}} - related articles</nowiki><br> | |||
<nowiki></td></nowiki><br> | <nowiki></td></nowiki><br> | ||
<nowiki></tr></nowiki | <nowiki></tr></nowiki><br> | ||
<nowiki><tr></nowiki><br> | |||
< | |||
<tr> | |||
<nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | <nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | ||
<nowiki><td style="text-align:right; width:15%; background-color:{{{left column background color}}}; ">'''{{{group title1}}}'''|}}</nowiki><br> | |||
<nowiki></td></nowiki><br> | |||
<nowiki><td style=" | |||
text-align:right; | |||
width:15%; | |||
background-color:{{{left column background color}}}; "> | |||
'''{{{group title1}}}'''|}}</nowiki><br> | |||
<nowiki></td></nowiki | |||
<nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br> | <nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br> | ||
<nowiki> | <nowiki><td style="text-align:left; background-color:{{{right column background color}}}; "> | ||
" | {{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} {{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} {{#if:{{{group title1-item3|}}}{{·}}|{{{group title1-item3}}}{{·}}|}} {{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} {{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}}|}}</td></nowiki><br> | ||
{{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} | <nowiki></tr></nowiki><br> | ||
<nowiki></table></nowiki><br> | |||
{{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} | </td></tr></table> | ||
{{#if:{{{group title1-item3| | |||
{{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} | |||
{{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}} | |||
|}} | |||
<nowiki></tr></nowiki> | |||
< | |||
<nowiki> | |||
</ | |||
</td> | |||
</tr> | |||
</table> | |||
<table style="border:1px solid black; width:100%; "> | <table style="border:1px solid black; width:100%; "> | ||
<tr> | <tr> | ||
Line 419: | Line 169: | ||
<td style="text-align:center; font-size:16pt; color:blue; width:50%; ">HTML</td> | <td style="text-align:center; font-size:16pt; color:blue; width:50%; ">HTML</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td | <td style="border:1px solid black; "> | ||
<nowiki>{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "</nowiki><br><br> | |||
border:1px solid | |||
<nowiki> | |||
width:100%; | |||
border:1px solid blue; | |||
border-collaspe:separate; | |||
border-spacing:5px; " | |||
< | |||
<nowiki>{{!}}-</nowiki><br> | <nowiki>{{!}}-</nowiki><br> | ||
<nowiki>{{!}} colspan="2" | <nowiki>{{!}} colspan="2" style="text-align:center; background-color:{{{title background color}}};{{!}} "Links to {{{name}}} - related articles</nowiki><br><br><br> | ||
style=" | |||
text-align:center; | |||
background-color:{{{title background color}}}; | |||
{{!}} "Links to {{{name}}} - related articles | |||
<nowiki>{{!}}-</nowiki><br> | <nowiki>{{!}}-</nowiki><br> | ||
<nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | <nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | ||
<nowiki>{{!}} style=" | <nowiki>{{!}} style="text-align:right; width:15%; background-color:{{{left column background color}}};{{!}} "'''{{{group title1}}}'''|}}</nowiki><br><br> | ||
text-align:right; </nowiki><br><nowiki> | <nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br> | ||
<nowiki>{{!}} style="text-align:left; background-color:{{{right column background color}}}; "> | |||
background-color:{{{ | {{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} {{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} {{#if:{{{group title1-item3|}}}{{·}}|{{{group title1-item3}}}{{·}}|}} {{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} {{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}}|}}</nowiki><br><br> | ||
{{ | <nowiki>|}</nowiki><br> | ||
</td> | </td> | ||
<td> | <td style="border:1px solid black; "> | ||
<nowiki><table style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "></nowiki><br> | |||
<nowiki><tr></nowiki><br> | |||
<nowiki><td colspan="2" style="text-align:center; background-color:{{{title background color}}}; ">Links to {{{name}}} - related articles</nowiki><br> | |||
<nowiki></td></nowiki><br> | |||
<nowiki></tr></nowiki><br> | |||
<nowiki><tr></nowiki><br> | <nowiki><tr></nowiki><br> | ||
<nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | <nowiki>{{#if:{{Ifempty|{{{group title1|}}}}}|</nowiki><br> | ||
<nowiki><td style=" | <nowiki><td style="text-align:right; width:15%; background-color:{{{left column background color}}}; ">'''{{{group title1}}}'''|}}</nowiki><br> | ||
text-align:right; | <nowiki></td></nowiki><br> | ||
width:15%; | |||
background-color:{{{left column background color}}}; "> | |||
'''{{{group title1}}}'''|}}</nowiki><br> | |||
<nowiki></ | |||
<nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br> | <nowiki>{{#if:{{Ifempty|{{{group title1-item1|}}}}}|</nowiki><br> | ||
<nowiki><td style="text-align:left; background-color:{{{right column background color}}}; | <nowiki><td style="text-align:left; background-color:{{{right column background color}}}; "> | ||
" | {{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} {{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} {{#if:{{{group title1-item3|}}}{{·}}|{{{group title1-item3}}}{{·}}|}} {{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} {{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}}|}}</td></nowiki><br> | ||
{{#if:{{{group title1-item1|}}}|{{{group title1-item1}}}{{·}}|}} | <nowiki></tr></nowiki><br> | ||
<nowiki></table></nowiki><br> | |||
{{#if:{{{group title1-item2|}}}|{{{group title1-item2}}}{{·}}|}} | </td></tr></table> | ||
{{#if:{{{group title1-item3|}}}|{{{group title1-item3}}}{{·}}|}} | |||
{{#if:{{{group title1-item4|}}}|{{{group title1-item4}}}{{·}}|}} | |||
{{#if:{{{group title1-item5|}}}|{{{group title1-item5}}}{{·}}|}} | |||
|}} | |||
<nowiki></tr></nowiki>< | |||
<nowiki> | |||
</ | |||
</td> | |||
</tr> | |||
</table> | |||
====Meaning of each line of the code==== | ====Meaning of each line of the code==== | ||
Line 553: | Line 228: | ||
{{Missouri|Missouri}} | {{Missouri|Missouri}} | ||
Revision as of 09:25, 7 October 2014
[edit | edit source]
Navboxes are nothing more than a table saved as a template. Navboxes are usually at the bottom of the article and usually only contain links to topics or locations. See the example at the bottom of this article.
[edit | edit source]
Again an Navbox is a table. If you know how to create tables in Wikitext or HTML, it is not difficult. If you do not know Wikitext or HTLM, you will probably need someone who does to help you. If you would like to learn these two programs, see Wikitext or HTML Programming. Neither of these programming languages are difficult.
Step One - Create the table[edit | edit source]
- We are going to assume you know a little Wikitext and HTML in this tutorial. We will begin by creating a simple table. The coding will be displayed in both Wikitext and HTML side by side so can see the difference.
- It is recommended that you create infobox tables in HTML as there fewer problems as you will see.
- We will be creating a navbox as shown below. User:Ccsmith/sandbox/navbox
Links to {{{name}}} - related articles | |
- It does not look like much because you still have fill it in with the links or other information that you may want to display for your readers.
[edit | edit source]
Wikitext | HTML |
{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; " |
<table style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "> |
Wikitext | HTML |
{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; " |
<table style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "> |
Wikitext | HTML |
{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; " |
<table style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "> |
Wikitext | HTML |
{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; " |
<table style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "> |
Wikitext | HTML |
{| style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; " |
<table style="width:100%; border:1px solid blue; border-collaspe:separate; border-spacing:5px; "> |
Meaning of each line of the code[edit | edit source]
- Since navboxes usually extend from one side to the other, we have set the width for our navbox to 100%.
- We have installed a 1 pixel solid blue line around our navbox.
- "border-collaspe:separate; border-spacing:5px means we are placing a 5 pixel space between the boxes in the template. See Cell Separation for more details.
- The title of the navbox has to extend both columns of the navbox so that is coded with the colspan="2" code.
- When you save your navbox be sure include the word "navbox" in the title so people will know what kind of template it is for example: {{template:infobox sample}}.
Step Two - Create the template[edit | edit source]
- Since there is only one way to create a template in the Wiki, we will only show the Wikitext coding:
{{Navbox name |