Template:SoftBox: Difference between revisions

From Variscite Wiki
(Created page with "<noinclude>{{TemplateGen|params=<nowiki>boxwidth=17(5 columns)/21(4)/29(3)/44(2)|system={Android,Linux,Yocto,Hardware,Debian,Ubuntu,Arago,Windows}|content=###</nowiki>}}</noin...")
 
No edit summary
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{TemplateGen|params=<nowiki>boxwidth=17(5 columns)/21(4)/29(3)/44(2)|system={Android,Linux,Yocto,Hardware,Debian,Ubuntu,Arago,Windows}|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: {{{system}}}| Android= a4c639|Linux=fea53f | Yocto=4f9df2 |Hardware=545454|Debian=d70751 |Ubuntu=f47421 |Arago=b9ac8d |Windows= 00bef5| 999999}}; color: white; font-size:20px; width:100%; border-top-left-radius:5px; border-top-right-radius:5px; "
</div>
|-
|{{#switch:{{{system}}}| Debian=Debian| Ubuntu=Ubuntu| Arago=Arago| Yocto=Yocto|{{{system}}}}}
|}
|-
{| style="background-color: #{{#switch: {{{system}}}| Android= F2FAD9| Linux=ffecd7| Yocto= d7e4f2|Hardware=e3e3e3|Debian=f1d8e1 |Ubuntu=ffe3d1 |Arago=fff5dd |Windows= E0F7FD| cccccc}}; width:100%; height:540px; "
|-
|
|style="padding-left: 4%; padding-right: 4%; vertical-align:top; max-width:100%;" |{{{content}}}
|-
|
|style="padding:0px 10px 10px 0px; height:100px;"|[[File:{{#switch: {{{system}}}| Android= Android.png| Linux=Linux.png| Yocto=Yocto.png| Hardware=Chip.png|Debian= Debian.png| Ubuntu= Ubuntu.png |Arago= Arago.png |Windows=Windows.png | DART.png}}|x100px|right]]
|}
|}
</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}}}