Template:Navigation tabs/doc: Difference between revisions

added explanation that this is for use with navboxes
(Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> == Usage == You may use between 1 and 10 tabs. This template should be a nest…')
 
(added explanation that this is for use with navboxes)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->  
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
== Usage ==
You may use between 1 and 10 tabs.  This template should be a nested template (like most Navigation templates).  That is, you should create a template and use this template within it to make a Navigation box.  For example, if we had a template called <nowiki>'''{{Earth Continents}}'''</nowiki>, when placed on a page, the code would look like:


=== Page code ===
== Usage  ==
<pre>
{{Earth Continents|selected=Europe}}
</pre>


=== Template code ===
This template is for use within navboxes shown at the bottom of the screen. You may use between 1 and 10 tabs. This template should be a nested template (like most Navigation templates). That is, you should create a template and use this template within it to make a Navigation box. For example, if we had a template called <nowiki>'''{{Earth Continents}}'''</nowiki>, when placed on a page, the code would look like:  
The code at the template would look like:


<pre>
=== Page code  ===
{{Navigation tabs
<pre>{{Earth Continents|selected=Europe}}
</pre>  
=== Template code  ===
 
The code at the template would look like:
<pre>{{Navigation tabs
| template=Earth continents
| template=Earth continents
| selected={{{selected}}}
| selected={{{selected}}}
Line 32: Line 30:
| body7=Countries in South America
| body7=Countries in South America
}}
}}
</pre>
</pre>  
=== Which produces  ===


=== Which produces ===
{{Navigation tabs
{{Navigation tabs
| template=Earth continents
| template=Earth continents
Line 53: Line 51:
| tab7=[[South America]]
| tab7=[[South America]]
| body7=Countries in South America
| body7=Countries in South America
}}
}}  
 
== Optional parameters  ==


== Optional parameters ==
=== Code ===
=== Code ===
<pre>{{Navigation tabs
<pre>
{{Navigation tabs
| template=Americas
| template=Americas
| title=The Americas
| title=The Americas
Line 72: Line 70:
| body2=Countries in South America
| body2=Countries in South America
}}
}}
</pre>
</pre>  
=== Which produces ===
=== Which produces ===
Which yes, is ugly, but you can be creative.
 
{{Navigation tabs
Which yes, is ugly, but you can be creative. {{Navigation tabs
| template=Americas
| template=Americas
| title=The Americas
| title=The Americas
Line 88: Line 86:
| tab2=[[South America]]
| tab2=[[South America]]
| body2=Countries in South America
| body2=Countries in South America
}}
}}  
 
== See also  ==


==See also==
*{{tl|Start tab}}  
* {{tl|Start tab}}
*{{tl|End tab}}  
* {{tl|End tab}}
*{{tl|Tab}}
* {{tl|Tab}}


<includeonly><!--
<includeonly><!--
2,785

edits