Template:Tab-header: Difference between revisions

Content deleted Content added
m גרסה אחת יובאה
 
Undo revision 3587 by FennecBot (talk)
Tag: Undo
 
(4 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>
{{#if:{{{2|}}}|<li class="nav-item {{#if: {{{rounded|}}} | rounded |}}">{{#tag:btn|#tab2{{!}}{{{2|}}}|data-toggle="tab"|class="nav-link"}}</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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Tab #1 title1

no description

Stringrequired
Tab #2 title2

no description

Stringrequired
Tab #3 title3

no description

Stringsuggested
Tab #4 title4

no description

Stringsuggested
Tab #5 title5

no description

Stringsuggested
target ID for tab 1tab1

no description

Example
#tab-primarty
Stringoptional
target ID for tab 2tab2

no description

Example
#tab-primarty
Stringoptional
target ID for tab 3tab3

no description

Example
#tab-primarty
Stringoptional
target ID for tab 4tab4

no description

Example
#tab-primarty
Stringoptional
target ID for tab 5tab5

no description

Example
#tab-primarty
Stringoptional
tab-header-classtab-header-class

no description

Unknownoptional
roundedrounded

no description

Unknownoptional