Navigation menu

Template:Tab: Difference between revisions

From Metroid Wiki
250 bytes added ,  23 March 2012
m
Tweaking
mNo edit summary
m (Tweaking)
Line 178: Line 178:


==Purpose==
==Purpose==
This template is a tool to create navigation templates with a tabbed layout. This condenses the overall size of the navigation template but still offers everything in it. This makes navigation templates with a lot of content far less intimidating and much easier to get around.  
This template is a tool to create navigation templates with a tabbed layout. This condenses the overall size of the navigation template but still offers everything in it.
 
This makes navigation templates with a lot of content far less intimidating, much easier to navigate, and more aesthetically pleasing.  


==Usage==
==Usage==
This is a very complex template and has to be carefully used. It should usually only be used on other templates to create a navigation box.  
This is a very complex template and has to be carefully used. It should usually only be used on other templates to create a navigation box.  
To use this template, start with this layout:
 
To use this template, begin with this layout:
 
<pre>
<pre>
{{Tab
{{Tab
Line 216: Line 220:
}}
}}
</pre>
</pre>
'''name''': A unique ID for the nav template that no other nav template has. It has to be unique and it can't have any special characters like commas, parenthesis, colons, ect. And it can't have any spaces. This is required to make sure it behaves correctly. If two nav templates that use this template are placed on the same page with the same name ID, they will not behave correctly. It also prevents possible bugs with other toggling functions. ''(Required.)''
'''name''': A unique ID for the nav template that no other nav template has. It has to be unique and it can't have any special characters like commas, parenthesis, colons, ect. And it can't have any spaces. This is required to make sure it behaves correctly. If two nav templates that use this template are placed on the same page with the same name ID, they will not behave correctly. It also prevents possible bugs with other toggling functions. ''(Required.)''


'''header''': The content you want to display in the header field of the template. If left blank, the tabs will not be in a container. ''(Optional.)''
'''header''': The content you want to display in the header field of the template. If left blank, the tabs will not be in a container. Images may be used here as well. ''(Optional.)''


'''width''': The width of the navigation template. Fits to the contents if left blank. You should base this on what makes the tabs themselves look best. ''(Optional.)''
'''width''': The width of the navigation template. Fits to the contents if left blank. Current usage in navigation templates is usually ''565px''. ''(Optional.)''


'''height''': The height of the tab contents section. Fits to the contents if left blank. Base this on the largest content tab. Usually 20px per line works best. You may wish to add an addition 20px to account for the bolding that happens when you're on the page for a link, as this might add a new line. ''(Optional.)''
'''height''': The height of the tab contents section. Fits to the contents if left blank. Base this on the largest content tab. Usually 20px per line works best. You may wish to add an addition 20px to account for the bolding that happens when you're on the page for a link, as this might add a new line. ''(Optional.)''
Line 231: Line 236:


==Examples==
==Examples==
To see examples of using this template, see the templates:
To see examples of this template in use, see the templates:
 
[[:Template:Space Pirates-nav]], [[:Template:Planet-nav]], [[:Template:MP1 Rooms-nav]]. More examples can be found in the [[:Category:Navigation Templates|Navigation Templates]] category.
 
==Origins==
==Origins==
This template [[zeldawiki:Template:Tab|originated]] from [[zeldawiki:Main Page|Zelda Wiki]].
This template [[zeldawiki:Template:Tab|originated]] from [[zeldawiki:Main Page|Zelda Wiki]].