Difference between revisions of "Template:Help-collapsible"

From blackwiki
Jump to navigation Jump to search
imported>ManosHacker
imported>Pppery
(Support lowercase parameters)
 
Line 1: Line 1:
 
{{collapse-mobile
 
{{collapse-mobile
| collapsed    = {{#switch: {{{Level}}} | 0 = no }}
+
| collapsed    = {{#switch: {{{Level|{{{level}}}}}} | 0 = no }}
 
| boxFontSize  = 1em
 
| boxFontSize  = 1em
 
| boxMarginTop = 0px
 
| boxMarginTop = 0px
| barBackground= #{{#if: {{{barBackground|}}}|{{{barBackground}}}|{{#switch: {{{Level}}} | 1 = FFFFFF | 2 = F3F0E7 | 3 = F0ECE3 | code = EAEAEA }}}}
+
| barBackground= #{{#if: {{{barBackground|}}}|{{{barBackground}}}|{{#switch: {{{Level|{{{level}}}}}} | 1 = FFFFFF | 2 = F3F0E7 | 3 = F0ECE3 | code = EAEAEA }}}}
| boxBackground= #{{#if: {{{boxBackground|}}}|{{{boxBackground}}}|{{#switch: {{{Level}}} | 1 = F8F4EB | 2 = F3F0E7 | 3 = F0ECE3 | code = EAEAEA }}}}
+
| boxBackground= #{{#if: {{{boxBackground|}}}|{{{boxBackground}}}|{{#switch: {{{Level|{{{level}}}}}} | 1 = F8F4EB | 2 = F3F0E7 | 3 = F0ECE3 | code = EAEAEA }}}}
 
| barTextAlign = center
 
| barTextAlign = center
| barBorder    = {{#switch: {{{Level}}} | 2 = 1px dotted | 3 = 1px dashed | code = 1px dashed }}
+
| barBorder    = {{#switch: {{{Level|{{{level}}}}}} | 2 = 1px dotted | 3 = 1px dashed | code = 1px dashed }}
| boxBorder    = {{#switch: {{{Level}}} | 2 = 1px dotted | 3 = 1px dashed | code = 1px dashed }}
+
| boxBorder    = {{#switch: {{{Level|{{{level}}}}}} | 2 = 1px dotted | 3 = 1px dashed | code = 1px dashed }}
 
| barMore      = box-shadow: 1px 1px 8px #aaaaaa
 
| barMore      = box-shadow: 1px 1px 8px #aaaaaa
 
| boxMore      = box-shadow: 1px 1px 8px #aaaaaa
 
| boxMore      = box-shadow: 1px 1px 8px #aaaaaa
| Headline    = {{#switch: {{{Level}}} | code = <div class='hover-bgc' data-hover-bgc='#d5e0ee'><span style="color: rgb(2, 73, 189);><big>[[ ]]</big></span>{{#if: {{{Headline|}}}|&nbsp;'''{{{Headline}}}}}'''</div> | #default = <div class='hover-bgc' data-hover-bgc='#d5e0ee'>'''{{{Headline}}}'''</div> }}
+
| Headline    = {{#switch: {{{Level|{{{level}}}}}} | code = <div class='hover-bgc' data-hover-bgc='#d5e0ee'><span style="color: rgb(2, 73, 189);><big>[[ ]]</big></span>{{#if: {{{Headline|{{{headline}}}}}}|&nbsp;'''{{{Headline|{{{headline}}}}}}}}'''</div> | #default = <div class='hover-bgc' data-hover-bgc='#d5e0ee'>'''{{{Headline|{{{headline}}}}}}'''</div> }}
| Content      = {{#ifeq: {{{Level}}} | code | <div class="center" style="font-size: 120%;">'''Code editor'''</div> }} <br />
+
| Content      = {{#ifeq: {{{Level|{{{level}}}}}} | code | <div class="center" style="font-size: 120%;">'''Code editor'''</div> }} <br />
{{{Content}}}<br /><br />
+
{{{Content|{{{content}}}}}}<br /><br />
 
}}
 
}}

Latest revision as of 19:23, 12 March 2018

{{{headline}}}

{{{content}}}