Template:Collsec: Difference between revisions
From VNDev Wiki
m added documentation transclude |
class collsec |
||
Line 1: | Line 1: | ||
<div class="toccolours mw-collapsible mw-collapsed" style="width:{{{width|85%}}}; overflow:auto;"> | <div class="toccolours mw-collapsible mw-collapsed collsec" 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 17:44, 1 February 2025
No title supplied
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.
The above documentation is transcluded from Template:Collsec/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |