Vorlage:Accordion panel: Unterschied zwischen den Versionen
This is [[MediaWiki:Tagline]]. Set to <code>display:none</code> by chameleon skin.
Tobi (Diskussion | Beiträge) K (Tobi verschob die Seite Vorlage:BS accordion panel nach Vorlage:Accordion panel, ohne dabei eine Weiterleitung anzulegen) |
Tobi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
Zeile 4: | Zeile 4: | ||
--> <div class="panel panel-default"> | --> <div class="panel panel-default"> | ||
<div class="panel-heading"> | <div class="panel-heading"> | ||
<h4 class="panel-title"><htmltag tagname="a" data-toggle="collapse" data-parent="#accordion{{#var:bs_accordion}}" href="#collapse{{#var:bs_accordion_panel}}">{{{title|{{ | <h4 class="panel-title"><htmltag tagname="a" data-toggle="collapse" data-parent="#accordion{{#var:bs_accordion}}" href="#collapse{{#var:bs_accordion_panel}}">{{#if:{{{title|}}}|{{{title}}}|ERROR: parameter 'title' missing}}</htmltag></h4> | ||
</div> | </div> | ||
<div id="collapse{{#var:bs_accordion_panel}}" class="panel-collapse collapse {{# | <div id="collapse{{#var:bs_accordion_panel}}" class="panel-collapse collapse {{#if:{{{open|}}}|in|}}"> | ||
<div class="panel-body">{{{body|{{error|parameter <code>body</code> missing | <div class="panel-body">{{#if:{{{body|}}}|{{{body}}}|{{error|parameter <code>body</code> missing}}}}</div> | ||
</div> | </div> | ||
</div><!--Last line of your template code--></includeonly><noinclude> | </div><!--Last line of your template code--></includeonly><noinclude> |
Aktuelle Version vom 25. November 2017, 23:50 Uhr
Description
Set between an {{Accordion begin}} and an {{Accordion end}}, this adds a panel to a bootstrap accordion.
Used variables
- bs_accordion
- defined by {{Accordion begin}}
- id of the current accordion
- bs_accordion_panel
- id of the last added panel to any accordion
- defined by {{Accordion panel}}
- increased every time, {{Accordion panel}} is called
Parameters
Description of the entity created by this template or of the function of this template
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
Title of the panel | title | Defines the title of the panel to add
| Einzeiliger Text | erforderlich |
Body of the panel | body | Gives the body text for the panel that shows when open
| Mehrzeiliger Text | erforderlich |
Open panel | open | Set to true, of you want this panel to be open from the start | Wahrheitswert | optional |
Usage
{{Accordion panel
| title=
| body=
| open=
}}
See also
- {{Accordion begin}}
- {{Accordion end}}
The above documentation is transcluded from Vorlage:Accordion panel/doc. (edit | history) Please add categories to the /doc subpage. Subpages of this template. |