Template:SoftBox: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{TemplateGen|params=<nowiki>boxwidth=17(5 columns)/21(4)/29(3)/44(2)|color={orange/blue/pink/grey/green}|content=###</nowiki>}}</noinclude>
<noinclude>{{TemplateGen|params=<nowiki>boxwidth=17(5 columns)/21(4)/29(3)/44(2)|color={orange/blue/pink/grey/green}|content=###</nowiki>}}</noinclude>
 
<div class="mt-3 card rounded border-0 {{{card-class|}}}">
<div style="width:{{#if:{{{boxwidth}}}|{{{boxwidth}}}|23}}%;  float:left; padding:0px 2% 0px 0px; display:inline-block;">
<div class="card-header bg-{{{color|default}}} {{{title-class|text-white}}} font-weight-bold" style="font-size: 12pt">{{{title}}}</div>
{|
<div class="card-body bg-{{{color|default}}}-light">
|-
{{{content}}}
{| style="padding:10px; background-color: #{{#switch: {{{color}}}| green= a4c639| darkblue=4f9df2 |orange=fea53f |grey=545454|pink=d70751 |blue= 00bef5| 999999}}; color: white; font-size:20px; width:100%; border-top-left-radius:5px; border-top-right-radius:5px; "
</div>
|-
|{{{title}}}
|}
|-
{| style="background-color: #{{#switch: {{{color}}}| green= F2FAD9|darkblue= d7e4f2 | orange=ffecd7|grey=e3e3e3|pink=f1d8e1 |blue= E0F7FD| cccccc}}; width:100%; height:540px; "
|-
|
|style="padding-left: 4%; padding-right: 4%; vertical-align:top; max-width:100%;" |{{{content}}}
|-
|
|}
|}
</div>
</div>

Latest revision as of 00:31, 9 June 2020

Usage

Please use this string:

{{SoftBox|boxwidth=17(5 columns)/21(4)/29(3)/44(2)|color={orange/blue/pink/grey/green}|content=###}}

{{{title}}}

{{{content}}}