FANDOM


Line 90: Line 90:
 
{{#if: {{{list10|}}} |
 
{{#if: {{{list10|}}} |
 
<td style="padding-left:8px;">{{{list10|}}}</td>
 
<td style="padding-left:8px;">{{{list10|}}}</td>
  +
</tr>
  +
}}}}
  +
{{#if: {{{group11|}}}{{{list11|}}} |
  +
<tr>
  +
{{#if: {{{group11|}}} |
  +
<td style="background-color:#2A0A0A; padding-left:10px; padding-right:10px;">'''{{{group11|}}}'''</td>
  +
}}
  +
{{#if: {{{list11|}}} |
  +
<td style="padding-left:8px;">{{{list11|}}}</td>
 
</tr>
 
</tr>
 
}}}}
 
}}}}

Revision as of 17:35, May 27, 2014

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 {{GrB Tab}}. 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
Forge_of_Empires_Wiki|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.