Template:Collapsible: Difference between revisions

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

Revision as of 06:02, 6 December 2021


Usage

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

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