Template:Collapsible: Difference between revisions

Template page
No edit summary
No edit summary
 
Line 2: Line 2:
<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="toccolours mw-collapsible-content" style="{{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}};|}}background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}}">
<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>

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