Template:Collapsible: Difference between revisions

Template page
(testing)
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{text|}}}|
<div class="mw-collapsible" style="width:400px; overflow:auto;">
<div class="mw-collapsible" style="width:400px; overflow:auto;">
{{#if:{{{title|}}}|<div style="font-weight:bold;line-height:1.6;">{{{Title}}}</div>||}}
{{#if:{{{title|}}}|<div style="font-weight:bold;line-height:1.6;">{{{title}}}</div>||}}
<div class="mw-collapsible-content">
<div class="toccolours mw-collapsible-content" style="{{#if:{{{bg_color|}}}|color:#{{PaletteText|{{{bg_color|}}}}};|}}background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{Palette|Shadow}}}}">
{{{text}}}
{{{text}}}
</div>
</div>
</div>
</div>
|}}


<noinclude>
<noinclude>

Latest revision as of 06:09, 6 December 2021


Usage

{{Collapsible
| bg_color =
| title    =
| text     =
}}

Text is required, title is optional. bg_color isn't implemented yet