Template:Show: Difference between revisions
Content deleted Content added
No edit summary Tags: Manual revert Reverted |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
Line 1:
<includeonly><
data-expandtext="{{{expandtext|more ▾}}}"
data-collapsetext="{{{collapsetext|less ▴}}}"
style="{{{style|}}}">
<
{{{text|}}}
</
== Usage ==
A simple collapsible block for hiding/showing content.
<pre>
{{show
Line 14 ⟶ 16:
</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>
Line 27 ⟶ 30:
* '''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]]
▲</pre>
</noinclude>
| |||