User:Mtew/templates/PageNav/FolderTabs

{{#ifeq:|0|{| class="Folder-Tabs" style="background:{{{BackgroundColor|#FFFFFF}}}; text-align:center; line-height:1px;" width="100%" cellspacing="0" border="0"|&#x7b;&#x7c; &hellip;}}



{{#if:|| {{User:Mtew/templates/PageNav/Folder_Tab| | page=| path=| link=| SelColor=| UnsColor=| BorColor=| Corner=| level=| Select=| wrap=| debug={{#ifeq:|1|1|0}} }} }}{{#if:|&#x20;


 * {{User:mtew/templates/PageNav/Folder_Tab| | page=| path=| link=| SelColor=| UnsColor=| BorColor=| Corner=| level=| Select=| wrap=| debug={{#ifeq:|2|1|0}} }} }}{{#if:|&#x20;


 * {{User:mtew/templates/PageNav/Folder_Tab| | page=| path=| link=| SelColor=| UnsColor=| BorColor=| Corner=| level=| Select=| wrap=| debug={{#ifeq:|3|1|0}} }} }}{{#if:|&#x20;


 * {{User:mtew/templates/PageNav/Folder_Tab| | page=| path=| link=| SelColor=| UnsColor=| BorColor=| Corner=| level=| Select=| wrap=| debug={{#ifeq:|4|1|0}} }} }}{{#if:|&#x20;


 * {{User:mtew/templates/PageNav/Folder_Tab| | page=| path=| link=| SelColor=| UnsColor=| BorColor=| Corner=| level=| Select=| wrap=| debug={{#ifeq:|5|1|0}} }} }}{{#if:|&#x20;


 * {{User:mtew/templates/PageNav/Folder_Tab| | page=| path=| link=| SelColor=| UnsColor=| BorColor=| Corner=| level=| Select=| wrap=| debug={{#ifeq:|6|1|0}} }} }}{{#if:|&#x20;

{{#if:{{{break|}}}|&#x20;
 * {{User:mtew/templates/PageNav/Folder_Tab| | page=| path=| link=| SelColor=| UnsColor=| BorColor=| Corner=| level=| Select=| wrap=| debug={{#ifeq:|7|1|0}} }} }}{{#if:|


 * class="Folder-Tabs" style="border-bottom:0" width="100%"|

{{#ifeq:|0||}|&#x7c;&#x7d;}}

{{#ifeq:|0|{| class="Folder-Tabs" style="background:{{{BackgroundColor|#FFFFFF}}}; text-align:center; line-height:1px;" width="100%" cellspacing="0" border="0"|&#x7b;&#x7c; &hellip;}}




 * class="Folder-Tabs" style="border-bottom:1px solid "|

&#x20;}}&#x20;


 * {{User:mtew/templates/PageNav/Folder_Tab| | page=| path=| link=| SelColor=| UnsColor=| BorColor=| Corner=| level=| Select=| wrap=| debug={{#ifeq:|8|1|0}} }} }}{{#if:|&#x20;


 * {{User:mtew/templates/PageNav/Folder_Tab| | page=| path=| link=| SelColor=| UnsColor=| BorColor=| Corner=| level=| Select=| wrap=| debug={{#ifeq:|9|1|0}} }} }}{{#if:|&#x20;

{{!}} {{User:mtew/templates/PageNav/Folder_Tab| | page=| path=| link=| SelColor=| UnsColor=| BorColor=| Corner=| level=| Select=| wrap=| debug={{#ifeq:{{{debug|0}}}|10|1|0}} }} }}{{#if:|&#x20;

{{!}} {{User:mtew/templates/PageNav/Folder_Tab| | page=| path=| link=| SelColor=| UnsColor=| BorColor=| Corner=| level=| Select=| wrap=| debug={{#ifeq:{{{debug|0}}}|11|1|0}} }} }}{{#if:|&#x20;

{{!}} {{User:mtew/templates/PageNav/Folder_Tab| | page=| path=| link=| SelColor=| UnsColor=| BorColor=| Corner=| level=| Select=| wrap=| debug={{#ifeq:{{{debug|0}}}|12|1|0}} }} }}

{{!}} class="Folder-Tabs" style="border-bottom:1px solid " width="100%"|

{{#ifeq:{{{debug|0}}}|0|{{!}}}|&#x7c;&#x7d;}}

Usage
Construct a row of links that looks like a set of file folder tabs to switch between pages.

Normally, the tab list is set up on a separate page that is transcluded in each of the pages linked to.

Features

 * Up to eleven tabs can be displayed.
 * Automatic wrapping of long, multi-word labels can be suppressed.
 * The background of the tab changes when that tab is selected.
 * The background colors for each individual tab may be set individually.
 * The background colors tor tabs that do not specify colors may be set.
 * The pages that include the tab row do not have to know anything about the order of the tab entries.
 * This greatly simplifies maintaining the tab list.
 * For unusual situations, there is a 'Select' parameter that takes the value of the tab's display text.
 * Sub-pages are supported.

For page selection

 * Select:Set this to the display text to force the selection of a tab.
 * level:The relative level of the page displayed to the link in the tab. Used when matching on sub-pages.

For constructing all tabs

 * BackgroundColor: The color for the background between tabs. The default is white (#FFFFFF).
 * BorderColor: The color for the tab border. The default is black (#000000).
 * Corner: The radius of the upper corners of tabs on browsers that support this feature.
 * SelectedColor:The background color for selected tabs that do not specify a SelectedColor.
 * UnselectedColor: The background color for un-selected tabs that do not specify an UnselectedColor.
 * wrap:Set this parameter to 'no' to suppress wrapping of the display text in all tabs.

For constructing individual tab &lt;n&gt;

 * Unnamed positional parameter &lt;n&gt;: The text to be displayed on the tab.
 * page&lt;n&gt;: The FULLPAGENAME of the page to link to. This must not be a link to the page.  It is used to construct a normal link on the tab.
 * link&lt;n&gt;: The name of an off-site page to link to. This must not be a link to the page.  It is used to construct a special link on the tab.

Tab selection
The selection of which tab to high-light is done automatically by comparing the $($FULLPAGENAME$)$ of the page being displayed with the page&lt;n&gt; parameter's value. The matching is textual, not logical, so variations in spelling and redirects do cause match failures.

To support tabs in sub-pages, the level parameter can be used to modify the {FULLPAGENAME} being checked. For example, if the tab selection is to be based on the parent page of a sub-page, rather than on the sub-page itself, ' ' would be needed.

For those cases where page name matching does not work, the Select parameter can be set to the display text of the desired tab. This does not disable the page match selection. (Specifying level can be used to force page name matching failure.)

Documentation
Click on the link in the section header.