Vorlage:Collapsible: Unterschied zwischen den Versionen

Aus pm4u
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „<includeonly><div class="toccolours mw-collapsible {{#ifeq: {{{3}}} | collapsed | mw-collapsed | }}" style="overflow:auto;"> <div>{{{1}}}</div> <div class="mw-…“)
 
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
<includeonly><div class="toccolours mw-collapsible {{#ifeq: {{{3}}} | collapsed | mw-collapsed | }}" style="overflow:auto;">
+
<includeonly><div class="toccolours mw-collapsible {{#ifeq: {{{3}}} | expanded| | mw-collapsed }}" style="overflow:auto;">
<div>{{{1}}}</div>
+
<div>'''{{{1}}}'''</div>
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
{{{2}}}
 
{{{2}}}
Zeile 6: Zeile 6:
 
Title: is the title of the element<br/>
 
Title: is the title of the element<br/>
 
Some collapsible content: is the text content, that can be collapsed<br/>
 
Some collapsible content: is the text content, that can be collapsed<br/>
collapsed: mandatory argument - if present, then the element is collapsed by default<br/>
+
expanded: mandatory argument - if present, then the element is expanded by default. Otherwise it is collapsed.<br/>
<pre>{{collapsible|Title|Some collapible content|collapsed}}</pre>
+
<pre>{{collapsible|Title|Some collapible content|expanded}}</pre>
 
Result:
 
Result:
{{collapsible|Title|Some collapible content|collapsed}}
+
{{collapsible|Title|Some collapible content|expanded}}
 +
 
 +
<pre>{{collapsible|Title|Some collapible content}}</pre>
 +
Result:
 +
{{collapsible|Title|Some collapible content}}
 
</noinclude>
 
</noinclude>

Aktuelle Version vom 29. August 2019, 09:31 Uhr

Usage:
Title: is the title of the element
Some collapsible content: is the text content, that can be collapsed
expanded: mandatory argument - if present, then the element is expanded by default. Otherwise it is collapsed.

{{collapsible|Title|Some collapible content|expanded}}

Result:

Title

Some collapible content

{{collapsible|Title|Some collapible content}}

Result:

Title

Some collapible content