Template:Tab/doc
| This is a documentation subpage for Template:Tab. It may contain usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 6,700 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses TemplateStyles: |
This template is called by {{Start tab}} and {{End tab}} to create tab bars for use in navigating WikiProjects and other areas outside of the Main namespace; it should not be used on encyclopedic content articles.
Usage
[edit]{{Tab}} expects the |link= and |tab= parameters to be passed to it. If the current page title matches the value of |link=, then the tab will be styled differently.
If the |freeform= parameter's value is non-null, then the |tab= value is passed-through unchanged as the content of the table cell, rather than the default behavior which places the values from the |link= and |tab= parameters within the standard wikilink syntax (as [[{{{link}}}|{{{tab}}}]]).
TemplateData
[edit]TemplateData for Tab
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Link target | link | A valid wikilink target for the tab text | Page name | suggested |
| Tab text | tab | The text to display within the tab elements, typically as a wikilink | Line | required |