Difference between revisions of "User:Lou Montana/Sandbox2"

From Bohemia Interactive Community
< Lou Montana
Jump to navigation Jump to search
m (Add selected tab parameter)
m (Page cleanup)
(Tag: Replaced)
Line 1: Line 1:
<includeonly><div class="biki-tabs"{{#if:{{{selected|}}}|<nowiki/> data-selectedtab="{{{selected}}}"}}>{{#if:{{{title1|}}} | <div class="biki-tab-title">{{{title1|}}}</div>
+
[[Category:Sandbox]]
}}{{#if:{{{title2|}}} | <div class="biki-tab-title">{{{title2|}}}</div>
 
}}{{#if:{{{title3|}}} | <div class="biki-tab-title">{{{title3|}}}</div>
 
}}{{#if:{{{title4|}}} | <div class="biki-tab-title">{{{title4|}}}</div>
 
}}{{#if:{{{title5|}}} | <div class="biki-tab-title">{{{title5|}}}</div>
 
}}{{#if:{{{content1|}}} | <div class="biki-tab-content">{{{content1|}}}</div>
 
}}{{#if:{{{content2|}}} | <div class="biki-tab-content">{{{content2|}}}</div>
 
}}{{#if:{{{content3|}}} | <div class="biki-tab-content">{{{content3|}}}</div>
 
}}{{#if:{{{content4|}}} | <div class="biki-tab-content">{{{content4|}}}</div>
 
}}{{#if:{{{content5|}}} | <div class="biki-tab-content">{{{content5|}}}</div>
 
}}</div></includeonly><noinclude>{{Doc/Template
 
|descr= This template allows for ''horizontal'' tabs.
 
|param1= title1..5
 
|descr1= named parameter - tab #'s title
 
|param2= content1..5
 
|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>
 
|result1= {{ {{FULLPAGENAME}} }}
 
|example2= <nowiki>{{Tabs |title1= Tab 1 title}}</nowiki>
 
|result2= {{ {{FULLPAGENAME}} |title1= Tab 1 title}}
 
|example3= <nowiki>{{Tabs |title1= Tab 1 title |content1= First tab content, yay!}}</nowiki>
 
|result3= {{ {{FULLPAGENAME}} |title1= Tab 1 title |content1= First tab content, yay!}}
 
|example4= <nowiki>{{Tabs |title1= Tab 1 title |title2= Tab 2 title}}</nowiki>
 
|result4= {{ {{FULLPAGENAME}} |title1= Tab 1 title |title2= Tab 2 title}}
 
|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!}}
 
|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>
 

Revision as of 14:33, 20 April 2021