Template:Show: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
<includeonly><
data-expandtext="{{{expandtext|more ▾}}}"
data-collapsetext="{{{collapsetext|less ▴}}}"
style="{{
<
{{{text|}}}
</div>
</
== Usage ==
A simple collapsible block for hiding/showing content.
<pre>
{{show
|text=The primary driver for the acquisition was the target's proprietary AI technology.
}}
</pre>
==
To change the "more" and "less" buttons:
<pre>
{{show
|expandtext=Read Bio
|collapsetext=Close
|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>
| |||