Template:Navigation tabs/doc: Difference between revisions
m (→Which produces: Updated links) |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 25: | Line 25: | ||
| tab5=[[Europe]] | | tab5=[[Europe]] | ||
| body5=Countries in Europe | | body5=Countries in Europe | ||
| tab6=[[ | | tab6=[[Northern America]] | ||
| body6=Countries in North America | | body6=Countries in North America | ||
| tab7=[[South America]] | | tab7=[[South America]] | ||
| body7=Countries in South America | | body7=Countries in South America | ||
}} | }} | ||
</pre> | </pre> | ||
=== Which produces === | === Which produces === | ||
| Line 47: | Line 48: | ||
| tab5=[[Europe]] | | tab5=[[Europe]] | ||
| body5=Countries in Europe | | body5=Countries in Europe | ||
| tab6=[[ | | tab6=[[Northern America]] | ||
| body6=Countries in North America | | body6=Countries in North America | ||
| tab7=[[South America]] | | tab7=[[South America]] | ||
| body7=Countries in South America | | body7=Countries in South America | ||
}} | }} | ||
== Optional parameters == | == Optional parameters == | ||
| Line 64: | Line 65: | ||
| colortabsoff=orange | | colortabsoff=orange | ||
| colortop=limegreen | | colortop=limegreen | ||
| selected=[[ | | selected=[[Northern America]] | ||
| tab1=[[ | | tab1=[[Northern America]] | ||
| body1=Countries in | | body1=Countries in Northern America | ||
| tab2=[[South America]] | | tab2=[[South America]] | ||
| body2=Countries in South America | | body2=Countries in South America | ||
}} | }} | ||
</pre> | </pre> | ||
=== Which produces === | === Which produces === | ||
| Line 81: | Line 83: | ||
| colortabsoff=orange | | colortabsoff=orange | ||
| colortop=limegreen | | colortop=limegreen | ||
| selected=[[ | | selected=[[Northern America]] | ||
| tab1=[[ | | tab1=[[Northern America]] | ||
| body1=Countries in North America | | body1=Countries in North America | ||
| tab2=[[South America]] | | tab2=[[South America]] | ||
| body2=Countries in South America | | body2=Countries in South America | ||
}} | }} | ||
== See also == | == See also == | ||
Revision as of 12:03, 6 August 2015
|
|
This is a documentation subpage for Template:Navigation tabs (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Usage[edit source]
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 '''{{Earth Continents}}''', when placed on a page, the code would look like:
Page code[edit source]
{{Earth Continents|selected=Europe}}
Template code[edit source]
The code at the template would look like:
{{Navigation tabs
| template=Earth continents
| selected={{{selected}}}
| title=[[Country|Countries]] of the [[World]]
| tab1=[[Antarctica]]
| body1=Countries in Antarctica
| tab2=[[Africa]]
| body2=Countries in Africa
| tab3=[[Asia]]
| body3=Countries in Asia
| tab4=[[Australia]]
| body4=Countries in Australia
| tab5=[[Europe]]
| body5=Countries in Europe
| tab6=[[Northern America]]
| body6=Countries in North America
| tab7=[[South America]]
| body7=Countries in South America
}}
Which produces[edit source]
Countries in Europe |
Optional parameters[edit source]
Code[edit source]
{{Navigation tabs
| template=Americas
| title=The Americas
| width=400px
| colorback=yellow
| colorborder=black
| colortabsoff=orange
| colortop=limegreen
| selected=[[Northern America]]
| tab1=[[Northern America]]
| body1=Countries in Northern America
| tab2=[[South America]]
| body2=Countries in South America
}}
Which produces[edit source]
Which yes, is ugly, but you can be creative.
The Americas
|
Countries in North America |
See also[edit source]