Template:DocBoxRss: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(11 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)|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 class="mt-3 card rounded border-0">
<div class="mt-3 card rounded border-0">
<div class="card-header rounded bg-{{#switch: {{{system}}}
<div class="card-header bg-{{#switch: {{{system}}}
  |Android=green
  |Android=green
  |Linux=fea53f
  |Linux=main
  |Yocto=darkblue
  |Yocto=darkblue
  |Hardware=secondary
  |Hardware=secondary
  |Debian=pink
  |Debian=pink
  |Ubuntu=f47421
  |Ubuntu=orange
  |FreeRTOS=plate
  |FreeRTOS=plate
  |Arago=orange
  |Arago=purple
  |Windows=grey
  |Windows=primary
|Boot2Qt=leaf
  |#default=default
  |#default=default
}} text-white">
}} text-white" style="font-size: 12pt;">
<div class="lead font-weight-bold">{{#switch:{{{system}}}
<div class="font-weight-bold">{{#switch:{{{system}}}
  |Debian=Debian {{{rss}}}
  |Debian=Debian {{{rss}}}
  |Ubuntu=Ubuntu {{{rss}}}
  |Ubuntu=Ubuntu {{{rss}}}
Line 25: Line 26:
</div>
</div>
<div class="card-body row m-0 p-0">
<div class="card-body row m-0 p-0">
<div class="col p-0">
<div class="col d-flex flex-column justify-content-between p-3" style="background-color: #{{#switch: {{{system}}}| Android= F2FAD9| Linux=ffecd7| Yocto= d7e4f2|Hardware=e3e3e3|Debian=f1d8e1 |Ubuntu=ffe3d1 | FreeRTOS=e6fff9 | Arago=fff5dd |Windows= E0F7FD | Boot2Qt=e0fdf1 | cccccc}};">
{| class="w-100" 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}};"
<div>
|-
{{{content}}}
|
</div>
|style="padding-left: 4%; padding-right: 4%; vertical-align:top; max-width:100%;" |{{{content}}}
<div class="align-self-end" style="width: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}}|class=img-fluid]]
|-
</div>
|
|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>
</div>

Latest revision as of 00:05, 28 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