Lou Montana/Sandbox2 – User

From Bohemia Interactive Community
Jump to navigation Jump to search
(Future Template:Tabs template)
 
m (Set new tabs format)
Line 1: Line 1:
<includeonly><div class="tab-object">{{#if:{{{title1|}}}
<includeonly><div class="biki-tabs">{{#if:{{{title1|}}} | <div class="biki-tab-title">{{{title1|}}}</div>
| {{{title1|}}}{{{content1|}}}
}}{{#if:{{{title2|}}} | <div class="biki-tab-title">{{{title2|}}}</div>
}}{{#if:{{{title2|}}}
}}{{#if:{{{title3|}}} | <div class="biki-tab-title">{{{title3|}}}</div>
| {{{title2|}}}{{{content2|}}}
}}{{#if:{{{title4|}}} | <div class="biki-tab-title">{{{title4|}}}</div>
}}{{#if:{{{title3|}}}
}}{{#if:{{{title5|}}} | <div class="biki-tab-title">{{{title5|}}}</div>
| {{{title3|}}}{{{content3|}}}
}}{{#if:{{{content1|}}} | <div class="biki-tab-content">{{{content1|}}}</div>
}}{{#if:{{{title4|}}}
}}{{#if:{{{content2|}}} | <div class="biki-tab-content">{{{content2|}}}</div>
| {{{title4|}}}{{{content4|}}}
}}{{#if:{{{content3|}}} | <div class="biki-tab-content">{{{content3|}}}</div>
}}{{#if:{{{title5|}}}
}}{{#if:{{{content4|}}} | <div class="biki-tab-content">{{{content4|}}}</div>
| {{{title5|}}}{{{content5|}}}
}}{{#if:{{{content5|}}} | <div class="biki-tab-content">{{{content5|}}}</div>
}}</div></includeonly><noinclude>{{Doc/Template
}}</div></includeonly><noinclude>{{Doc/Template
|descr= This template allows for ''horizontal'' tabs.
|descr= This template allows for ''horizontal'' tabs.
Line 23: Line 23:
|example4= <nowiki>{{Tabs |title1= Tab 1 title |title2= Tab 2 title}}</nowiki>
|example4= <nowiki>{{Tabs |title1= Tab 1 title |title2= Tab 2 title}}</nowiki>
|result4= {{ {{FULLPAGENAME}} |title1= Tab 1 title |title2= Tab 2 title}}
|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!}}
}}</noinclude>
}}</noinclude>

Revision as of 16:28, 19 April 2021

This template allows for horizontal tabs.

This template is used on these pages.

Usage

{{Lou Montana/Sandbox2|title1..5|content1..5}}

  • title1..5: named parameter - tab #'s title
  • content1..5: named parameter - tab #'s content
Examples
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!