Difference between revisions of "Template:ClickTabs"
Jump to navigation
Jump to search
Line 44: | Line 44: | ||
{{#if:{{{content1|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-1" style="{{#ifeq:{{{activetab|}}}|1||{{#if:{{{activetab|}}}|display:none||}}}}" colspan=100 {{!}} {{{content1|}}} | {{#if:{{{content1|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-1" style="{{#ifeq:{{{activetab|}}}|1||{{#if:{{{activetab|}}}|display:none||}}}}" colspan=100 {{!}} {{{content1|}}} | ||
{{#if:{{{content2|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-2" style="{{#ifeq:{{{activetab|}}}|2||display:none}}" colspan=100 {{!}} {{{content2|}}} | {{#if:{{{content2|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-2" style="{{#ifeq:{{{activetab|}}}|2||display:none}}" colspan=100 {{!}} {{{content2|}}} | ||
− | {{#if:{{{content3|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-3" style="{{#ifeq:{{{activetab|}}}|3| | + | {{#if:{{{content3|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-3" style="{{#ifeq:{{{activetab|}}}|3||display:none}}" colspan=100 {{!}} {{{content3|}}} |
− | {{#if:{{{content4|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-4" style="{{#ifeq:{{{activetab|}}}|4|| | + | {{#if:{{{content4|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-4" style="{{#ifeq:{{{activetab|}}}|4||display:none}}" colspan=100 {{!}} {{{content4|}}} |
− | {{#if:{{{content5|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-5" style="{{#ifeq:{{{activetab|}}}|5| | + | {{#if:{{{content5|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-5" style="{{#ifeq:{{{activetab|}}}|5||display:none}}" colspan=100 {{!}} {{{content5|}}} |
− | {{#if:{{{content6|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-6" style="{{#ifeq:{{{activetab|}}}|6| | + | {{#if:{{{content6|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-6" style="{{#ifeq:{{{activetab|}}}|6||display:none}}" colspan=100 {{!}} {{{content6|}}} |
− | {{#if:{{{content7|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-7" style="{{#ifeq:{{{activetab|}}}|7| | + | {{#if:{{{content7|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-7" style="{{#ifeq:{{{activetab|}}}|7||display:none}}" colspan=100 {{!}} {{{content7|}}} |
− | {{#if:{{{content8|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-8" style="{{#ifeq:{{{activetab|}}}|8| | + | {{#if:{{{content8|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-8" style="{{#ifeq:{{{activetab|}}}|8||display:none}}" colspan=100 {{!}} {{{content8|}}} |
− | {{#if:{{{content9|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-9" style="{{#ifeq:{{{activetab|}}}|9| | + | {{#if:{{{content9|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-9" style="{{#ifeq:{{{activetab|}}}|9||display:none}}" colspan=100 {{!}} {{{content9|}}} |
− | {{#if:{{{content10|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-10" style="{{#ifeq:{{{activetab|}}}|10| | + | {{#if:{{{content10|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-10" style="{{#ifeq:{{{activetab|}}}|10||display:none}}" colspan=100 {{!}} {{{content10|}}} |
− | {{#if:{{{content11|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-11" style="{{#ifeq:{{{activetab|}}}|11| | + | {{#if:{{{content11|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-11" style="{{#ifeq:{{{activetab|}}}|11||display:none}}" colspan=100 {{!}} {{{content11|}}} |
− | {{#if:{{{content12|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-12" style="{{#ifeq:{{{activetab|}}}|12| | + | {{#if:{{{content12|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-12" style="{{#ifeq:{{{activetab|}}}|12||display:none}}" colspan=100 {{!}} {{{content12|}}}<!-- |
− | {{#if:{{{content13|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-13" style="{{#ifeq:{{{activetab|}}}|13| | + | {{#if:{{{content13|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-13" style="{{#ifeq:{{{activetab|}}}|13||display:none}}" colspan=100 {{!}} {{{content13|}}} |
− | {{#if:{{{content14|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-14" style="{{#ifeq:{{{activetab|}}}|14| | + | {{#if:{{{content14|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-14" style="{{#ifeq:{{{activetab|}}}|14||display:none}}" colspan=100 {{!}} {{{content14|}}} |
− | {{#if:{{{content15|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-15" style="{{#ifeq:{{{activetab|}}}|15| | + | {{#if:{{{content15|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-15" style="{{#ifeq:{{{activetab|}}}|15||display:none}}" colspan=100 {{!}} {{{content15|}}} |
− | {{#if:{{{content16|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-16" style="{{#ifeq:{{{activetab|}}}|16| | + | {{#if:{{{content16|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-16" style="{{#ifeq:{{{activetab|}}}|16||display:none}}" colspan=100 {{!}} {{{content16|}}} |
− | {{#if:{{{content17|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-17" style="{{#ifeq:{{{activetab|}}}|17| | + | {{#if:{{{content17|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-17" style="{{#ifeq:{{{activetab|}}}|17||display:none}}" colspan=100 {{!}} {{{content17|}}} |
− | {{#if:{{{content18|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-18" style="{{#ifeq:{{{activetab|}}}|18| | + | {{#if:{{{content18|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-18" style="{{#ifeq:{{{activetab|}}}|18||display:none}}" colspan=100 {{!}} {{{content18|}}} |
− | {{#if:{{{content19|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-19" style="{{#ifeq:{{{activetab|}}}|19| | + | {{#if:{{{content19|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-19" style="{{#ifeq:{{{activetab|}}}|19||display:none}}" colspan=100 {{!}} {{{content19|}}} |
− | {{#if:{{{content20|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-20" style="{{#ifeq:{{{activetab|}}}|20| | + | {{#if:{{{content20|}}}|{{!}} class="clicktabs-content" id="clicktabs-content-20" style="{{#ifeq:{{{activetab|}}}|20||display:none}}" colspan=100 {{!}} {{{content20|}}}}}}}}}}}}}}}}}}}-->}}}}}}}}}}}}}}}}}}}}}}}} |
|}</includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude> | |}</includeonly><noinclude>{{documentation}}[[Category:Templates]]</noinclude> |
Revision as of 00:42, 18 April 2020
(view - edit) Documentation
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
{{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
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. |