Template:Tabs: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Created page with '{| width="100%" cellpadding=0 cellspacing=0 border=0 |- valign=top style="line-height:0.95em" <!-- Tab 1 --><!-- -->{{!}} style="width:3px; border-bottom:2px solid {{{col-border…') |
mNo edit summary |
||
Line 121: | Line 121: | ||
-->{{!}}{{!}} style="width:100%; border-bottom:2px solid {{{col-border|#d8e9fc}}}" {{!}} <!-- | -->{{!}}{{!}} style="width:100%; border-bottom:2px solid {{{col-border|#d8e9fc}}}" {{!}} <!-- | ||
--> | --> | ||
|}{{clear}}<noinclude>{{/doc}}</noinclude> | |}{{clear}}<noinclude>{{Tabs/doc}}</noinclude> |
Revision as of 06:46, 30 April 2010
{{{tab1}}} | {{{tab2}}} |
The Tabs template is used to add tabs in user and user talk pages.
Usage
{{tabs |this-tab = n |tab1 = [[Link 1|Tab 1]] |tab2 = [[Link 2|Tab 2]] |tab3 = [[Link 3|Tab 3]] . . |tab20 = [[Tab 20|Tab 20]] |color1=Non-Highlighted Tab Color |color2=Highlighted Tab Color |color3=Border Line Color }}
Notes:
- this-tab is optional. It determines which tab to activate or highlight.
- tab1 and tab2 are mandatory parameters.
- Currently, the maximum number of tabs is 20.
Examples
No tabs highlighted
{{tabs |tab1 = [[User:Example|Tab 1]] |tab2 = [[User:Example|Tab 2]] |tab3 = [[User:Example|Tab 3]] }}
gives:
Tab 1 | Tab 2 | Tab 3 |
Second tab highlighted
{{tabs |this-tab = 2 |tab1 = [[User:Example|Tab 1]] |tab2 = [[User:Example|Tab 2]] |tab3 = [[User:Example|Tab 3]] }}
gives:
Tab 1 | Tab 2 | Tab 3 |
Multiple tabs
{{tabs |this-tab = 4 |tab1 = [[User:Example|Tab 1]] |tab2 = [[User:Example|Tab 2]] |tab3 = [[User:Example|Tab 3]] |tab4 = [[User:Example|Tab 4]] |tab5 = [[User:Example|Tab 5]] |tab6 = [[User:Example|Tab 6]] |tab7 = [[User:Example|Tab 7]] |tab8 = [[User:Example|Tab 8]] }}
gives:
Tab 1 | Tab 2 | Tab 3 | Tab 4 | Tab 5 | Tab 6 | Tab 7 | Tab 8 |