Lou Montana/Sandbox2 – User
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Set new tabs format) |
Lou Montana (talk | contribs) m (Add selected tab parameter) |
||
Line 1: | Line 1: | ||
<includeonly><div class="biki-tabs">{{#if:{{{title1|}}} | <div class="biki-tab-title">{{{title1|}}}</div> | <includeonly><div class="biki-tabs"{{#if:{{{selected|}}}|<nowiki/> data-selectedtab="{{{selected}}}"}}>{{#if:{{{title1|}}} | <div class="biki-tab-title">{{{title1|}}}</div> | ||
}}{{#if:{{{title2|}}} | <div class="biki-tab-title">{{{title2|}}}</div> | }}{{#if:{{{title2|}}} | <div class="biki-tab-title">{{{title2|}}}</div> | ||
}}{{#if:{{{title3|}}} | <div class="biki-tab-title">{{{title3|}}}</div> | }}{{#if:{{{title3|}}} | <div class="biki-tab-title">{{{title3|}}}</div> | ||
Line 15: | Line 15: | ||
|param2= content1..5 | |param2= content1..5 | ||
|descr2= named parameter - tab #'s content | |descr2= named parameter - tab #'s content | ||
|param3= selected | |||
|descr3= named parameter - selected tab (0-based index, e.g 0 = first tab, 1 = second etc) | |||
|example1= <nowiki>{{Tabs}}</nowiki> | |example1= <nowiki>{{Tabs}}</nowiki> | ||
|result1= {{ {{FULLPAGENAME}} }} | |result1= {{ {{FULLPAGENAME}} }} | ||
Line 25: | Line 27: | ||
|example5= <nowiki>{{Tabs |title1= Tab 1 title |content1= First tab content... |title2= Tab 2 title |content2= Second tab content, yay!}}</nowiki> | |example5= <nowiki>{{Tabs |title1= Tab 1 title |content1= First tab content... |title2= Tab 2 title |content2= Second tab content, yay!}}</nowiki> | ||
|result5= {{ {{FULLPAGENAME}} |title1= Tab 1 title |content1= First tab content... |title2= Tab 2 title |content2= Second tab content, yay!}} | |result5= {{ {{FULLPAGENAME}} |title1= Tab 1 title |content1= First tab content... |title2= Tab 2 title |content2= Second tab content, yay!}} | ||
|example6= <nowiki>{{Tabs |selected=1 |title1= Tab 1 title |content1= First tab content... |title2= Tab 2 title |content2= Second tab content, yay!}}</nowiki> | |||
|result6= {{ {{FULLPAGENAME}} |selected=1 |title1= Tab 1 title |content1= First tab content... |title2= Tab 2 title |content2= Second tab content, yay!}} | |||
}}</noinclude> | }}</noinclude> |
Revision as of 16:38, 19 April 2021
This template allows for horizontal tabs.
This template is used on these pages.
Usage
{{Lou Montana/Sandbox2|title1..5|content1..5|selected}}
- title1..5: named parameter - tab #'s title
- content1..5: named parameter - tab #'s content
- selected: named parameter - selected tab (0-based index, e.g 0 = first tab, 1 = second etc)
Code | Result |
---|---|
{{Tabs}} | |
{{Tabs |title1= Tab 1 title}} | Tab 1 title |
{{Tabs |title1= Tab 1 title |content1= First tab content, yay!}} | Tab 1 title First tab content, yay! |
{{Tabs |title1= Tab 1 title |title2= Tab 2 title}} | Tab 1 title Tab 2 title |
{{Tabs |title1= Tab 1 title |content1= First tab content... |title2= Tab 2 title |content2= Second tab content, yay!}} | Tab 1 title Tab 2 title First tab content... Second tab content, yay! |
{{Tabs |selected=1 |title1= Tab 1 title |content1= First tab content... |title2= Tab 2 title |content2= Second tab content, yay!}} | Tab 1 title Tab 2 title First tab content... Second tab content, yay! |