Content deleted Content added
m גרסה אחת יובאה |
Tag: Undo |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
</nowiki> |
</nowiki> |
||
</noinclude><includeonly><ul class="noexcerpt nav nav-pills {{{tab-header-class|}}}"> |
</noinclude><includeonly><ul class="noexcerpt nav nav-pills {{{tab-header-class|}}}"> |
||
<li class="nav-item active {{#if: {{{rounded|}}} | rounded |}}">{{#tag:btn|#tab1{{!}}{{{1}}}|data-toggle="tab"|class="nav-link active"}}</li> |
<li class="nav-item active {{#if: {{{rounded|}}} | rounded |}}">{{#tag:btn|{{{tab1|#tab1}}}{{!}}{{{1}}}|data-toggle="tab"|class="nav-link active"}}</li> |
||
<li class="nav-item {{#if: {{{rounded|}}} | rounded |}}">{{#tag:btn|{{{tab2|#tab2}}}{{!}}{{{2|}}}|data-toggle="tab"|class="nav-link"}}</li> |
|||
{{#if:{{{3|}}}|<li class="nav-item {{#if: {{{rounded|}}} | rounded |}}">{{#tag:btn|#tab3{{!}}{{{3|}}}|data-toggle="tab"|class="nav-link"}}</li>|}} |
{{#if:{{{3|}}}|<li class="nav-item {{#if: {{{rounded|}}} | rounded |}}">{{#tag:btn|{{{tab3|#tab3}}}{{!}}{{{3|}}}|data-toggle="tab"|class="nav-link"}}</li>|}} |
||
{{#if:{{{4|}}}|<li class="nav-item {{#if: {{{rounded|}}} | rounded |}}">{{#tag:btn|#tab4{{!}}{{{4|}}}|data-toggle="tab"|class="nav-link"}}</li>|}} |
{{#if:{{{4|}}}|<li class="nav-item {{#if: {{{rounded|}}} | rounded |}}">{{#tag:btn|{{{tab4|#tab4}}}{{!}}{{{4|}}}|data-toggle="tab"|class="nav-link"}}</li>|}} |
||
{{#if:{{{5|}}}|<li class="nav-item {{#if: {{{rounded|}}} | rounded |}}">{{#tag:btn|#tab5{{!}}{{{5|}}}|data-toggle="tab"|class="nav-link"}}</li>|}} |
{{#if:{{{5|}}}|<li class="nav-item {{#if: {{{rounded|}}} | rounded |}}">{{#tag:btn|{{{tab5|#tab5}}}{{!}}{{{5|}}}|data-toggle="tab"|class="nav-link"}}</li>|}} |
||
</ul></includeonly> |
</ul></includeonly> |
||
<noinclude> |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": { |
|||
"en": "Tab #1 title", |
|||
"he": "כותרת טאב #1" |
|||
}, |
|||
"type": "string", |
|||
"required": true, |
|||
"suggested": true |
|||
}, |
|||
"2": { |
|||
"label": { |
|||
"en": "Tab #2 title", |
|||
"he": "כותרת טאב #2" |
|||
}, |
|||
"type": "string", |
|||
"required": true, |
|||
"suggested": true |
|||
}, |
|||
"3": { |
|||
"label": { |
|||
"en": "Tab #3 title", |
|||
"he": "כותרת טאב #3" |
|||
}, |
|||
"type": "string", |
|||
"suggested": true |
|||
}, |
|||
"4": { |
|||
"label": { |
|||
"en": "Tab #4 title", |
|||
"he": "כותרת טאב #4" |
|||
}, |
|||
"type": "string", |
|||
"suggested": true |
|||
}, |
|||
"5": { |
|||
"label": { |
|||
"en": "Tab #5 title", |
|||
"he": "כותרת טאב #5" |
|||
}, |
|||
"type": "string", |
|||
"suggested": true |
|||
}, |
|||
"tab-header-class": {}, |
|||
"rounded": { |
|||
"label": { |
|||
"he": "כפתור מעוגל" |
|||
} |
|||
}, |
|||
"tab1": { |
|||
"label": { |
|||
"en": "target ID for tab 1", |
|||
"he": "ID ייחודי לטאב 1" |
|||
}, |
|||
"example": "#tab-primarty", |
|||
"type": "string" |
|||
}, |
|||
"tab2": { |
|||
"label": { |
|||
"en": "target ID for tab 2", |
|||
"he": "ID ייחודי לטאב 2״" |
|||
}, |
|||
"example": "#tab-primarty", |
|||
"type": "string" |
|||
}, |
|||
"tab3": { |
|||
"label": { |
|||
"en": "target ID for tab 3", |
|||
"he": "ID ייחודי לטאב 3" |
|||
}, |
|||
"example": "#tab-primarty", |
|||
"type": "string" |
|||
}, |
|||
"tab4": { |
|||
"label": { |
|||
"en": "target ID for tab 4", |
|||
"he": "ID ייחודי לטאב 4" |
|||
}, |
|||
"example": "#tab-primarty", |
|||
"type": "string" |
|||
}, |
|||
"tab5": { |
|||
"label": { |
|||
"en": "target ID for tab 5", |
|||
"he": "ID ייחודי לטאב 5" |
|||
}, |
|||
"example": "#tab-primarty", |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"paramOrder": [ |
|||
"1", |
|||
"2", |
|||
"3", |
|||
"4", |
|||
"5", |
|||
"tab1", |
|||
"tab2", |
|||
"tab3", |
|||
"tab4", |
|||
"tab5", |
|||
"tab-header-class", |
|||
"rounded" |
|||
] |
|||
} |
|||
</templatedata> |
|||
</noinclude> |
|||
Latest revision as of 10:26, 30 August 2021
Template for adding tabs headers in conjunction with the Tab-body template:
{{Tab-header|tab1 title|tab2 title|tab3 title (optional)|tab4 title (optional)|tab5 title (optional)|tab-header-class=some class (optional)}}
{{Tab-body|tab1=tab body content|tab2=tab2 body content|tab3=tab3 body content (optional)|tab4=tab4 body content (optional)|tab5=tab5 body content (optional)|tab-body-class=tabs class (optional)}}
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Tab #1 title | 1 | no description | String | required |
| Tab #2 title | 2 | no description | String | required |
| Tab #3 title | 3 | no description | String | suggested |
| Tab #4 title | 4 | no description | String | suggested |
| Tab #5 title | 5 | no description | String | suggested |
| target ID for tab 1 | tab1 | no description
| String | optional |
| target ID for tab 2 | tab2 | no description
| String | optional |
| target ID for tab 3 | tab3 | no description
| String | optional |
| target ID for tab 4 | tab4 | no description
| String | optional |
| target ID for tab 5 | tab5 | no description
| String | optional |
| tab-header-class | tab-header-class | no description | Unknown | optional |
| rounded | rounded | no description | Unknown | optional |