Template:Show: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
Line 1:
<includeonly><{{#ifeq:{{{inline|}}}|yes|span|div}} class="mw-collapsible {{#ifeq:{{lc:{{{state|collapsed}}}}}|expanded||mw-collapsed}}"
data-expandtext="{{{expandtext|more ▾}}}"
data-collapsetext="{{{collapsetext|less ▴}}}"
style="{{#ifeq:{{{inlinestyle|}}}|yes|display:inline;}}">
<{{#ifeq:{{{inline|}}}|yes|span|div}} class="mw-collapsible-content" style="{{#ifeq:{{{inline|}}}|yes|display:inline;}}">
{{{text|}}}</{{#ifeq:{{{inline|}}}|yes|span|div}}>
</div>
</{{#ifeq:{{{inline|}}}|yes|span|div}}></includeonly><noinclude>
== Usage ==
A simple collapsible block for hiding/showing content.
 
<pre>
{{show
{{Expand summary
|text=The primary driver for the acquisition was the target's proprietary AI technology.
|text=Your long summary here.
}}
</pre>
 
== InlineCustom UsageLabels ==
To change the "more" and "less" buttons:
<pre>
{{show
{{Expand summary
|expandtext=Read Bio
|inline=yes
|collapsetext=Close
|text=Your continuation text here.
|text=John Doe has been the CEO since 2010...
}}
</pre>
 
== Parameters ==
* '''text''': The content to be hidden/shown.
* '''expandtext''': The text for the "show" link (Defaults to "more ▾").
* '''collapsetext''': The text for the "hide" link (Defaults to "less ▴").
* '''state''': Set to "expanded" to have the text visible on page load.
* '''style''': Pass additional CSS styles directly to the container.
 
[[Category:Generic templates]]
</noinclude>