Jump to content

Template:Expand summary: Difference between revisions

From Insurer Brain
Content deleted Content added
Created page with "<includeonly> <div class="mw-collapsible {{#ifeq:{{lc:{{{state|collapsed}}}}}|expanded||mw-collapsed}}" data-expandtext="{{{expandtext|Show full summary}}}" data-collapsetext="{{{collapsetext|Hide full summary}}}"> <div>'''{{{title|Full summary}}}'''</div> <div class="mw-collapsible-content"> {{{text|}}} </div> </div> </includeonly> <noinclude> == Usage == Basic: <pre> {{Expand summary | text = Your long summary here. }} </pre> With title: <pre> {{..."
 
No edit summary
Line 1: Line 1:
<includeonly><div class="mw-collapsible {{#ifeq:{{lc:{{{state|collapsed}}}}}|expanded||mw-collapsed}}"
<includeonly>
data-expandtext="{{{expandtext|Show full summary}}}"
<div class="mw-collapsible {{#ifeq:{{lc:{{{state|collapsed}}}}}|expanded||mw-collapsed}}"
data-expandtext="{{{expandtext|Show full summary}}}"
data-collapsetext="{{{collapsetext|Hide full summary}}}">
data-collapsetext="{{{collapsetext|Hide full summary}}}">
<div>'''{{{title|Full summary}}}'''</div>
<div>'''{{{title|Full summary}}}'''</div>
<div class="mw-collapsible-content">{{{text|}}}</div>
</div></includeonly><noinclude>
<div class="mw-collapsible-content">
{{{text|}}}
</div>
</div>
</includeonly>

<noinclude>
== Usage ==
== Usage ==
Basic:
Basic:
<pre>
<pre>
{{Expand summary
{{Expand summary
| text = Your long summary here.
|text=Your long summary here.
}}
</pre>

With title:
<pre>
{{Expand summary
| title = Full summary
| text = Your long summary here.
}}
}}
</pre>
</pre>
Line 30: Line 16:
<pre>
<pre>
{{Expand summary
{{Expand summary
| state = expanded
|state=expanded
| text = ...
|text=...
}}
</pre>

Custom button text:
<pre>
{{Expand summary
| expandtext = Show
| collapsetext = Hide
| text = ...
}}
}}
</pre>
</pre>

Revision as of 22:58, 12 December 2025

Usage

Basic:

{{Expand summary
|text=Your long summary here.
}}

Start expanded:

{{Expand summary
|state=expanded
|text=...
}}