Vorlage:Accordion begin: Unterschied zwischen den Versionen
This is [[MediaWiki:Tagline]]. Set to <code>display:none</code> by chameleon skin.
Tobi (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<!-- Start your template code here. for tipps and tools for template development, please refer to our help-section --><includeonly><!-- first dedine the accord…“) |
Tobi (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
<!-- Start your template code here. for tipps and tools for template development, please refer to our help-section --><includeonly><!-- first | <!-- Start your template code here. for tipps and tools for template development, please refer to our help-section --><includeonly><!-- first define the accordion id number -->{{#vardefine:bs_accordion|{{#if:{{#var:bs_accordion}}<!-- apparently there is at least one accordion on the page already. increase id num: | ||
-->|{{#expr:{{#var:bs_accordion}}+1}}<!-- else first accordion. start with 0: | -->|{{#expr:{{#var:bs_accordion}}+1}}<!-- else first accordion. start with 0: | ||
-->|0}}<!-- end of #vardefine bs_accordion-->}}<!-- now we can open the accordion | -->|0}}<!-- end of #vardefine bs_accordion-->}}<!-- now we can open the accordion |
Version vom 25. November 2017, 23:18 Uhr
Description
Opens a bootstrap accordion. You can add panels with {{Accordion panel}} and have to close the accordion with {{Accordion end}}.
Used variables
- bs_accordion
- id of the current/last accordion
- increased every time, this template is called
- also used by {{Accordion panel}}
Parameters
none
Usage
{{Accordion begin}}
See also
- {{Accordion panel}}
- {{Accordion end}}
The above documentation is transcluded from Vorlage:Accordion begin/doc. (edit | history) Please add categories to the /doc subpage. Subpages of this template. |