FANDOM


(Created page with "{{clear}} <table style="width:100%; border:#90725D 1px solid" cellspacing="1"> <tr> <td style="background-color:#DEC8A1; text-align:center;" {{#if: {{{group|{{{group1|}}}}}} |...")
 
Line 2: Line 2:
 
<table style="width:100%; border:#90725D 1px solid" cellspacing="1">
 
<table style="width:100%; border:#90725D 1px solid" cellspacing="1">
 
<tr>
 
<tr>
<td style="background-color:#DEC8A1; text-align:center;" {{#if: {{{group|{{{group1|}}}}}} | colspan="2"}}>'''{{{title|Navbox}}}'''<div style="float:right; margin-right:8px;" class="plainlinks"><small>[[Template:{{{templatelink|Navbox}}}|view]]</small></div></td>
+
<td style="background-color:#8A0808; text-align:center;" {{#if: {{{group|{{{group1|}}}}}} | colspan="2"}}>'''{{{title|Navbox1}}}'''<div style="float:right; margin-right:8px;" class="plainlinks"><small>[[Template:{{{templatelink|Navbox1}}}|view]]</small></div></td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
 
{{#if: {{{group|{{{group1|}}}}}} |
 
{{#if: {{{group|{{{group1|}}}}}} |
<td style="background-color:#E8D9BB;padding-left:10px; padding-right:10px;">'''{{{group|{{{group1|}}}}}}'''</td>
+
<td style="background-color:#3B0B0B;padding-left:10px; padding-right:10px;">'''{{{group|{{{group1|}}}}}}'''</td>
 
}}
 
}}
 
{{#if: {{{list|{{{list1|}}}}}} |
 
{{#if: {{{list|{{{list1|}}}}}} |
Line 15: Line 15:
 
<tr>
 
<tr>
 
{{#if: {{{group2|}}} |
 
{{#if: {{{group2|}}} |
<td style="background-color:#E8D9BB; padding-left:10px; padding-right:10px;">'''{{{group2|}}}'''</td>
+
<td style="background-color:#3B0B0B; padding-left:10px; padding-right:10px;">'''{{{group2|}}}'''</td>
 
}}
 
}}
 
{{#if: {{{list2|}}} |
 
{{#if: {{{list2|}}} |
Line 24: Line 24:
 
<tr>
 
<tr>
 
{{#if: {{{group3|}}} |
 
{{#if: {{{group3|}}} |
<td style="background-color:#E8D9BB; padding-left:10px; padding-right:10px;">'''{{{group3|}}}'''</td>
+
<td style="background-color:#3B0B0B; padding-left:10px; padding-right:10px;">'''{{{group3|}}}'''</td>
 
}}
 
}}
 
{{#if: {{{list3|}}} |
 
{{#if: {{{list3|}}} |
Line 33: Line 33:
 
<tr>
 
<tr>
 
{{#if: {{{group4|}}} |
 
{{#if: {{{group4|}}} |
<td style="background-color:#E8D9BB; padding-left:10px; padding-right:10px;">'''{{{group4|}}}'''</td>
+
<td style="background-color:#3B0B0B; padding-left:10px; padding-right:10px;">'''{{{group4|}}}'''</td>
 
}}
 
}}
 
{{#if: {{{list4|}}} |
 
{{#if: {{{list4|}}} |
Line 42: Line 42:
 
<tr>
 
<tr>
 
{{#if: {{{group5|}}} |
 
{{#if: {{{group5|}}} |
<td style="background-color:#E8D9BB; padding-left:10px; padding-right:10px;">'''{{{group5|}}}'''</td>
+
<td style="background-color:#3B0B0B; padding-left:10px; padding-right:10px;">'''{{{group5|}}}'''</td>
 
}}
 
}}
 
{{#if: {{{list5|}}} |
 
{{#if: {{{list5|}}} |
Line 51: Line 51:
 
<tr>
 
<tr>
 
{{#if: {{{group6|}}} |
 
{{#if: {{{group6|}}} |
<td style="background-color:#E8D9BB;padding-left:10px; padding-right:10px;">'''{{{group6|}}}'''</td>
+
<td style="background-color:#3B0B0B;padding-left:10px; padding-right:10px;">'''{{{group6|}}}'''</td>
 
}}
 
}}
 
{{#if: {{{list6|}}} |
 
{{#if: {{{list6|}}} |
Line 60: Line 60:
 
<tr>
 
<tr>
 
{{#if: {{{group7|}}} |
 
{{#if: {{{group7|}}} |
<td style="background-color:#E8D9BB; padding-left:10px; padding-right:10px;">'''{{{group7|}}}'''</td>
+
<td style="background-color:#3B0B0B; padding-left:10px; padding-right:10px;">'''{{{group7|}}}'''</td>
 
}}
 
}}
 
{{#if: {{{list7|}}} |
 
{{#if: {{{list7|}}} |
Line 69: Line 69:
 
<tr>
 
<tr>
 
{{#if: {{{group8|}}} |
 
{{#if: {{{group8|}}} |
<td style="background-color:#E8D9BB; padding-left:10px; padding-right:10px;">'''{{{group8|}}}'''</td>
+
<td style="background-color:#3B0B0B; padding-left:10px; padding-right:10px;">'''{{{group8|}}}'''</td>
 
}}
 
}}
 
{{#if: {{{list8|}}} |
 
{{#if: {{{list8|}}} |
Line 78: Line 78:
 
<tr>
 
<tr>
 
{{#if: {{{group9|}}} |
 
{{#if: {{{group9|}}} |
<td style="background-color:#E8D9BB; padding-left:10px; padding-right:10px;">'''{{{group9|}}}'''</td>
+
<td style="background-color:#3B0B0B; padding-left:10px; padding-right:10px;">'''{{{group9|}}}'''</td>
 
}}
 
}}
 
{{#if: {{{list9|}}} |
 
{{#if: {{{list9|}}} |
Line 87: Line 87:
 
<tr>
 
<tr>
 
{{#if: {{{group10|}}} |
 
{{#if: {{{group10|}}} |
<td style="background-color:#E8D9BB; padding-left:10px; padding-right:10px;">'''{{{group10|}}}'''</td>
+
<td style="background-color:#3B0B0B; padding-left:10px; padding-right:10px;">'''{{{group10|}}}'''</td>
 
}}
 
}}
 
{{#if: {{{list10|}}} |
 
{{#if: {{{list10|}}} |

Revision as of 16:56, May 25, 2013


Navbox1
Template documentation (for the above template, sometimes hidden or invisible)
Overview

This template is an internal template, used to easily construct Navboxes, such as {{Craftable Items}}. It uses intuitive syntax and hides the HTML/markup, as well as allows standardized appearance and central location to propagate changes.

Usage

Construct your specific navbox template with basic syntax like this:

{{navbox1
 |title = My Navbox for Cool Stuff
 |templatelink = Cool Navbox
 |list = [[Something]] • [[Other]] (Than) • [[Rather]]
}}
My Navbox for Cool Stuff
SomethingOther (Than) • Rather

Then use {{Cool Navbox}} on applicable pages.

You can also use more than one row and specify groups:

{{navbox1
 |title = My Navbox for Cool Stuff
 |templatelink = Cool Navbox
 |list1 = [[Something]] • [[Other]] (Than) • [[Rather]]
 |list2 = [[May be]] • [[Some]] (Rainy) • [[Day]] • [[After]] all
}}
My Navbox for Cool Stuff
SomethingOther (Than) • Rather
May beSome (Rainy) • DayAfter all

Additionally, you can specify groups for rows:

{{navbox1
 |title = My Navbox for Cool Stuff
 |templatelink = Cool Navbox
 |group1 = Rhyme
 |list1 = [[Something]] • [[Other]] (Than) • [[Rather]]
 |group2 = Song
 |list2 = [[May be]] • [[Some]] (Rainy) • [[Day]] • [[After]] all
}}
My Navbox for Cool Stuff
Rhyme SomethingOther (Than) • Rather
Song May beSome (Rainy) • DayAfter all

To categorize all pages that the navboxes will be placed on, use categoryN parameters:

{{navbox1
 |title = My Navbox for Cool Stuff
 |templatelink = Cool Navbox
 |list1 = [[Something]] • [[Other]] (Than) • [[Rather]]
 |category1 = Silly words
 |category2 = Lyrics
}}

To categorize pages selectively from pages that the navboxes will be placed on, use keywordN and categoryforkeywordN parameters:

{{navbox1
 |title = My Navbox for Cool Stuff
 |templatelink = Cool Navbox
 |list1 = [[Something]] • [[Other]] (Than) • [[Rather]]
 |userkeyword = {{{1|}}}
 |keyword1 = poem
 |categoryforkeyword1 = Sappy Poems
 |keyword2 = lyric
 |categoryforkeyword2 = Generic Lyrics
}}

|userkeyword = {{{1|}}} means pages can do {{Cool Navbox|poem}} and "poem" will be passed as userkeyword. This template will then select a matching category (if any), in this case "Category:Sappy Poems"


Visit Template:Navbox1/doc to edit this text! (How does this work?)
Community content is available under CC-BY-SA unless otherwise noted.