Template:Collsec: Difference between revisions

From VNDev Wiki
class collsec
m no-invert; colors handled by specialized darkmode css
Tag: Reverted
Line 1: Line 1:
<div class="toccolours mw-collapsible mw-collapsed collsec" style="width:{{{width|85%}}}; overflow:auto;">
<div class="toccolours mw-collapsible mw-collapsed collsec mw-no-invert" style="width:{{{width|85%}}}; overflow:auto;">
<div style="font-weight:bold;line-height:1.6;">{{{title|{{{1|No title supplied}}}}}}</div>
<div style="font-weight:bold;line-height:1.6;">{{{title|{{{1|No title supplied}}}}}}</div>
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
{{{content|{{{2|}}}}}}
{{{content|{{{2|}}}}}}
</div></div><noinclude>{{documentation}}</noinclude>
</div></div><noinclude>{{documentation}}</noinclude>

Revision as of 12:15, 15 February 2025

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.