Template:DocBoxRss: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
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,FreeRTOS}|content=###</nowiki>}}</noinclude>
<noinclude>{{TemplateGen|params=<nowiki>boxwidth=17(5 columns)/21(4)/29(3)/44(2)|system={Android,Linux,Yocto,Hardware,Debian,Ubuntu,Arago,Windows,FreeRTOS}|content=###</nowiki>}}</noinclude>


<div style="width:{{#if:{{{boxwidth}}}|{{{boxwidth}}}|23}}%;  float:left; padding:0px 2% 0px 0px; display:inline-block;">
<div class="mt-3 card bg-light border-0">
{|
<div class="card-header bg-{{#switch: {{{system}}}
|-
|Android=green
{| style="padding:10px; background-color: #{{#switch: {{{system}}}|Android=a4c639|Linux=fea53f|Yocto=4f9df2|Hardware=545454|Debian=d70751|Ubuntu=f47421|FreeRTOS=009973|Arago=b9ac8d|Windows=00bef5|999999}}; color: white; font-size:19px; width:100%; border-top-left-radius:5px; border-top-right-radius:5px; "
|Linux=fea53f
|-
|Yocto=darkblue
|{{#switch:{{{system}}}| Debian=Debian {{{rss}}}| Ubuntu=Ubuntu {{{rss}}} | Arago=Arago {{{rss}}}| Yocto=Yocto {{{rss}}}| FreeRTOS=FreeRTOS {{{rss}}}| Boot2Qt=Boot2Qt {{{rss}}} | Android=Android {{{rss}}}|{{{system}}}}}
|Hardware=secondary
|}
|Debian=pink
|-
|Ubuntu=f47421
|FreeRTOS=009973
|Arago=b9ac8d
|Windows=00bef5
|#default=default
}} text-white">
<div class="lead font-weight-bold">{{#switch:{{{system}}}
|Debian=Debian {{{rss}}}
|Ubuntu=Ubuntu {{{rss}}}
|Arago=Arago {{{rss}}}
|Yocto=Yocto {{{rss}}}
|FreeRTOS=FreeRTOS {{{rss}}}
|Boot2Qt=Boot2Qt {{{rss}}}
|Android=Android {{{rss}}}
|#default={{{system}}}
}}</div>
</div>
<div class="card-body row p-3">
<div class="col">
{| style="background-color: #{{#switch: {{{system}}}| Android= F2FAD9| Linux=ffecd7| Yocto= d7e4f2|Hardware=e3e3e3|Debian=f1d8e1 |Ubuntu=ffe3d1 | FreeRTOS=e6fff9 | Arago=fff5dd |Windows= E0F7FD | Boot2Qt=E0F7FD | cccccc}}; width:100%; height:740px; "
{| style="background-color: #{{#switch: {{{system}}}| Android= F2FAD9| Linux=ffecd7| Yocto= d7e4f2|Hardware=e3e3e3|Debian=f1d8e1 |Ubuntu=ffe3d1 | FreeRTOS=e6fff9 | Arago=fff5dd |Windows= E0F7FD | Boot2Qt=E0F7FD | cccccc}}; width:100%; height:740px; "
|-
|-
Line 17: Line 35:
|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 |Boot2Qt=Qt_logo.png|FreeRTOS=Freertos.png|DART.png}}|90x90px|right]]
|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 |Boot2Qt=Qt_logo.png|FreeRTOS=Freertos.png|DART.png}}|90x90px|right]]
|}
|}
|}
</div>
</div>
</div>
</div>
</div>

Revision as of 22:06, 20 May 2020

Usage

Please use this string:

{{DocBoxRss|boxwidth=17(5 columns)/21(4)/29(3)/44(2)|system={Android,Linux,Yocto,Hardware,Debian,Ubuntu,Arago,Windows,FreeRTOS}|content=###}}

{{{system}}}
{{{content}}}
DART.png