Difference between revisions of "Template:ClickTabs/doc"
Jump to navigation
Jump to search
(Created page with "'''Template:ClickTabs''' generates a series of tabs and content slides designed to show lots of content in a small space and on a single page. The template currently supports...") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Template:ClickTabs''' generates a series of tabs and content slides designed to show lots of content in a small space and on a single page. | '''Template:ClickTabs''' generates a series of tabs and content slides designed to show lots of content in a small space and on a single page. | ||
− | The template currently supports up to 12 tabs and 12 content slides, but can easily be expanded if later needed. | + | The template currently supports up to 12 tabs and 12 content slides, but can easily be expanded if later needed. Credit to [https://en.wikipedia.org/ Wikipedia] for the styling. |
== Usage == | == Usage == | ||
<pre>{{ClickTabs | <pre>{{ClickTabs | ||
|tab1=First Tab | |tab1=First Tab | ||
− | |content1=This is the content for the first tab | + | |content1=This is the content for the first tab. |
|tab2=Second Tab | |tab2=Second Tab | ||
− | |content2=This is the content for the second tab | + | |content2=This is the content for the second tab. |
− | |tab3= | + | |tab3=Third Tab |
− | |content3=This is the content for the | + | |content3=This is the content for the third tab. |
}}</pre> | }}</pre> | ||
Line 19: | Line 19: | ||
{{ClickTabs | {{ClickTabs | ||
|tab1=First Tab | |tab1=First Tab | ||
− | |content1=This is the content for the first tab | + | |content1=This is the content for the first tab. |
|tab2=Second Tab | |tab2=Second Tab | ||
− | |content2=This is the content for the second tab | + | |content2=This is the content for the second tab. |
− | |tab3= | + | |tab3=Third Tab |
− | |content3=This is the content for the | + | |content3=This is the content for the third tab. |
+ | }} | ||
+ | |||
+ | === Optional parameters === | ||
+ | Additionally, the <code>|activetab=</code> parameter may be used to manually set which slide will show. The template will always default to the first tab if this parameter is not set. | ||
+ | <pre>{{ClickTabs | ||
+ | |activetab=2 | ||
+ | |||
+ | |tab1=First Tab | ||
+ | |content1=This is the content for the first tab. | ||
+ | |||
+ | |tab2=Active Tab | ||
+ | |content2=This is the content for the second tab. It will be active by default. | ||
+ | |||
+ | |tab3=Third Tab | ||
+ | |content3=This is the content for the third tab. | ||
+ | }}</pre> | ||
+ | |||
+ | Generates: | ||
+ | |||
+ | {{ClickTabs | ||
+ | |activetab=2 | ||
+ | |||
+ | |tab1=First Tab | ||
+ | |content1=This is the content for the first tab. | ||
+ | |||
+ | |tab2=Second Tab | ||
+ | |content2=This is the content for the second tab. It will be active by default. | ||
+ | |||
+ | |tab3=Third Tab | ||
+ | |content3=This is the content for the third tab. | ||
}} | }} |
Latest revision as of 05:06, 21 April 2020
Template:ClickTabs generates a series of tabs and content slides designed to show lots of content in a small space and on a single page.
The template currently supports up to 12 tabs and 12 content slides, but can easily be expanded if later needed. Credit to Wikipedia for the styling.
Usage[edit]
{{ClickTabs |tab1=First Tab |content1=This is the content for the first tab. |tab2=Second Tab |content2=This is the content for the second tab. |tab3=Third Tab |content3=This is the content for the third tab. }}
Generates:
First Tab | Second Tab | Third Tab | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is the content for the first tab. |
Optional parameters[edit]
Additionally, the |activetab=
parameter may be used to manually set which slide will show. The template will always default to the first tab if this parameter is not set.
{{ClickTabs |activetab=2 |tab1=First Tab |content1=This is the content for the first tab. |tab2=Active Tab |content2=This is the content for the second tab. It will be active by default. |tab3=Third Tab |content3=This is the content for the third tab. }}
Generates:
First Tab | Second Tab | Third Tab | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is the content for the second tab. It will be active by default. |