Template:Collsec: Difference between revisions

From VNDev Wiki
m title fix
m added documentation transclude
Line 3: Line 3:
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
{{{content|{{{2|}}}}}}
{{{content|{{{2|}}}}}}
</div></div>
</div></div><noinclude>{{documentation}}</noinclude>

Revision as of 07:18, 19 December 2024

No title supplied
Documentation icon Template documentation [view] [edit] [purge]

Usage

Creates a collapsible section. Used heavily on List of DevTalk daily message skits, but can freely be used elsewhere.

{{collsec
| title =
| content =
| width=85%
}}

Specifying 'title' and 'content' are optional. If not specified, the first and second unlabeled parameters (respectively) will be used.

If specifying a width, provide it in percentage, rather than px, to improve responsive design. As a general rule, do not set widths larger than 85% (the default) to ensure proper mobile formatting.