FANDOM


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

Use

If ever you're one of those guys who wants to make a table similar to the style of the tables around the wiki, you may use this template to make yourself your own.
To start making a new one, please do understand how templates work before putting yourself in a situation where you might just make a borky table.

Parameter list

{{{name}}}
{{{above}}}
{{{group1}}} {{{list1}}}
{{{group2}}} {{{list2}}}
{{{list3}}} without {{{group3}}}
{{{group4}}} {{{list4}}}
{{{group16}}} {{{list16}}}
{{{below}}}
{{SimpleNavbox
|name        = The title of the table (def. PAGENAME)
|namebg      = Background color of the title bar (def. #FF6600)
|collapsible = Makes the table have a collapsible feature [yes leaves it closed initially, while n leaves it open] (def. table is not collapsible)
|border      = How the border will look like. Does not support border radius yet (def. 2px solid #33577a)
|tablealign  = Corresponds to where the table will be placed (def. center)
|tablefc     = Color of text applied to the whole table
|tablewidth  = How much % of the screen the table will consume (def. 100%)
|fontsize    = Changes the total font-size of all contents of the table (def. 85%)

|above       = Contents of a small cell placed above the group and list cells
|below       = Contents of a small cell placed below the group and list cells

|group#      = Contents of the left column at #th row
|groupwidth  = How much % of the table the column will consume. The right column will react accordingly
|groupcbg    = Background color of all group cells
|groupobg    = Background color of all odd group cells
|groupebg    = Background color of all even group cells
|group#bg    = Background color corresponding group cell
|groupcfc    = Font color of all group cells
|groupofc    = Font color of all odd group cells
|groupefc    = Font color of all even group cells
|group#fc    = Font color of corresponding group cell

|list#       = Contents of the right column at #th row
|listcbg     = Background color of all list cells
|listobg     = Background color of all odd list cells
|listebg     = Background color of all even list cells
|list#bg     = Background color corresponding list cell
|listcfc     = Font color of all list cells
|listofc     = Font color of all odd list cells
|listefc     = Font color of all even list cells
|list#fc     = Font color of corresponding list cell
}}
Reminder: # currently has a limit of 1 to 16
Commands that almost always needs an input are name, group, and list. If you are satisified with some of the values of the default table (e.g. background color, alignment in center, etc.) then there is no need to place any input in those fields.

Sample

{{SimpleNavbox
|name        = Poopy Joe
|collapsible = n
|tablealign  = left
|tablefc     = orange
|tablewidth  = 75%
|border      = 10px solid yellow
|namebg      = blue
|groupwidth  = 50%
|groupcfc    = violet
|listobg     = white

|group1      = Food
|group1fc    = red
|list1       = Banaynays
|list1bg     = pink
|group2      = Hobbies
|list2       = Kapooper • Washingmachine • Eating
|group3      = A
|group3bg    = blue
|list3       = a
|group4      = B
|list4       = b
|group5      = a
|list5       = A
}}

{{clr}}


Poopy Joe
Food Banaynays
Hobbies Kapooper • Washingmachine • Eating
A a
B b
a A

Nesting

Using the {{SimpleNavbox nest}} template, we are able to nest another table within the table. This allows us to add even more groups and lists within a single list, if ever there is a need to specify even more. However, the default bg color of all nested list cells are transparent, so one has to set them manually if ever one desires to.
{{SimpleNavbox
| name       = {{{name}}}

| group1     = {{{group1}}}
| list1      = {{{list1}}}
     
| group2     = {{{group2}}}
| list2      = {{SimpleNavbox nest

     |group1   = {{{group1}}}
     |list1     = {{{list1}}}

     |group2   = {{{group2}}}
     |list2    =  {{SimpleNavbox nest

          |group1   = {{{group1}}}
          |list1    = {{{list1}}}

          |group2   = {{{group2}}}
          |list2    = {{{list2}}}
          }}
     }}
}}
The code above will return the value shown below:
{{{name}}}
{{{group1}}} {{{list1}}}
{{{group2}}}
{{{group1}}} {{{list1}}}
{{{group2}}}
{{{group1}}} {{{list1}}}
{{{group2}}} {{{list2}}}

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