Editing Help:See Also

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 8: Line 8:
 
{{NavTables}}
 
{{NavTables}}
  
{{Navbox/help}}
+
==Creating Navigation tables==
 +
A few templates have been created, which when used together become a pretty neat looking navigation table. The [[WikiWriter]] is in charge of template making, but I thought I would add this to explain how they are created in case of editing.
 +
 
 +
{|class=wikitable style="margin-left:30px"
 +
|-
 +
!style=width:200px|Template !!style=width:300px|Code !!Description
 +
|-
 +
|'''[[Template:Navbox|Navbox]]'''
 +
|<code><nowiki>{{Navbox|title=|groups=|footer=}}</nowiki></code> ||Adds the frame for the navigation table
 +
*"<code><nowiki>title=</nowiki></code>" adds the first header
 +
*"<code><nowiki>groups=</nowiki></code>" is for everything in between
 +
*"<code><nowiki>footer=</nowiki></code>" for adding extra related links at the bottom of the table.
 +
|-
 +
!colspan=3|templates used in [[template:Navbox|Navbox]] "groups=" area
 +
|-
 +
|'''[[Template:Navbox-odd|Navbox-odd]] and [[Template:Navbox-even|Navbox-even]]'''
 +
|<code><nowiki>{{Navbox-odd|group=|links=}}</nowiki></code> ||Use these in the "<code><nowiki>groups=</nowiki></code>" area of the [[Template:Navbox|Navbox template]]<br>Adds the groups and their links. The only difference between them is the background color behind the links (odd is white, even is gray).
 +
|-
 +
|'''[[Template:Navbox-header|Navbox-header]]'''
 +
|<code><nowiki>{{Navbox-header|title=}}</nowiki></code> ||Use these also in the "<code><nowiki>groups=</nowiki></code>" area, to create new sections.
 +
|-
 +
|}
 +
====Example====
 +
<pre style="margin-left:40px;">
 +
{{Navbox|title=Navigation Table|groups=
 +
{{Navbox-odd|group=Interesting links|links=[[Template:Navbox|]]}}
 +
{{Navbox-header|title=Filler section}}
 +
{{Navbox-odd|group=Group 1|links=[[Template:Navbox-odd|]] • [[Template:Navbox-even|]]}}
 +
{{Navbox-even|group=Group 2|links=[[Template:Navbox-header|]]}}
 +
|footer=See Also}}
 +
</pre>
 +
===Adding extra columns and cells===
 +
By default each row is just one group, but since this is still a table you can add columns and such. But this is a bit more complicated.
 +
*When adding extra cells, it follows the normal template system, but you need to write <code><nowiki>{{!}}</nowiki></code> instead of normal <code>|</code> vertical bars, else you break the template
 +
*You need to add <code>colspan=</code> to every [[Template:Navbox-odd|Navbox-odd]] and [[Template:Navbox-even]] template if you decide add extra columns anywhere. This stretches out the "links" cell.
 +
*You need to add <code><nowiki>class=navbox-group</nowiki><code> and <code><nowiki>class=navbox-odd</nowiki></code> (or <code><nowiki>class=navbox-even</nowiki></code>) to the cells you have manually added, so the CSS can color it like the rest of the table.
 +
 
 +
;Here I add extra two cells to a row, a group and links
 +
<pre style="margin-left:40px;">
 +
{{Navbox-odd|links=
 +
!class="navbox-group"{{!}}Group title
 +
{{!}}class="navbox-odd"{{!}}[[Links]]}}</pre>
 +
 
 +
;Here I add extra colspan to stretch the next row's link cell
 +
<pre style="margin-left:40px;">
 +
{{Navbox-odd|colspan=3|links=}}
 +
</pre>
  
 
==See Also==
 
==See Also==
 
{{NavTables}}
 
{{NavTables}}

Please note that all contributions to Krafties may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)