User:Rahk EX/wikitabs
From Wikipedia, the free encyclopedia
[edit] Documentation
This template is a tabs template meant for userpages and other pages that fall under a similar category. It supports up to 7 tabs, and all colours are completely configurable. Those browsing with a mozilla based browser (like firefox) will be rewarded with rounded tabs, although it works fine in other browsers as well. The default colour scheme is grey.
Contents |
[edit] Usage
[edit] Format
[edit] Basic
{{User:Rahk_EX/wikitabs
|link1|label1|link2|label2 ...etc
|tabs =
|active =
}}
//CONTENT
</div>
[edit] Custom
{{User:Rahk_EX/wikitabs
|link1|label1|link2|label2 ...etc
|tabs =
|active =
}}
|border-active =
|bg-active =
|border-inactive =
|bg-inactive =
//CONTENT
</div>
[edit] Example
Code:
{{User:Rahk_EX/wikitabs
|User:Rahk_EX|Userpage|User_talk:Rahk_EX|Talkpage
|tabs=2
|active=1
}}
'''Hello World'''
</div>
Result
Hello World
Code:
{{User:Rahk_EX/wikitabs
|User:Rahk_EX|Userpage|User_talk:Rahk_EX|Talkpage|User:Rahk_EX/monobook.js|Monobook|User:Rahk_EX/templates|Templates|LINK|LABEL
|tabs=5
|active=4
|border-active=#007
|bg-active=#ACF
|border-inactive=#CCC
|bg-inactive=#BDF
}}
'''Hello World'''
</div>
Result
Userpage Talkpage Monobook Templates LABEL
Hello World
[edit] Attributes explanation
| Field Name | Description |
| tabs | How many tabs there are (2-7) |
| active | The active tab (1-7) |
| border-active | The color of the border of the active tab and the div (eg: #FF0077, red, #57D)
Default is |
| bg-active | The color of the background of the active tab and the div (eg: #FF0077, red, #57D)
Default is |
| border-inactive | The color of the border of all inactive tabs (eg: #FF0077, red, #57D)
Default is |
| bg-inactive | The color of the background of all inactive tabs (eg: #FF0077, red, #57D)
Default is |

