User:DigitalIceAge/sandbox: Difference between revisions

From Caps Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#switch: {{{size | {{{2|}}} }}}
<div class="infobox">
| #default = {{error|The severity and size arguments are required.}}
<div class="infobox-title">{{{Title|{{PAGENAME}}}}}</div>{{#if:{{{Picture|}}}|
| large=<div style="padding: 1.2em; margin-top: 0.5em; border-top-width: 0.4em; border-radius: 0.20em; box-shadow: 2px 2px #F7F8F9; background-color: #{{#switch: {{{severity| {{{1}}} }}}
<div class="infobox-image">[[File:{{{Picture}}}|300px]]</div>}}
<!-- large box background colors -->
<table>{{#if:{{{Release Year|}}}|<tr>
| danger=fee7e6
    <th>{{nowrap|Release Year}}</th>
| warning=fceee6
    <td>{{{Release Year}}}</td>
| caution=fcf8e6
</tr>}}{{#if:{{{Leak Risk|}}}|<tr>
| note|custom=f8f9fa
    <th>{{nowrap|Leak Risk}}</th>
}}; border: 1px solid #{{#switch: {{{severity| {{{1}}} }}}
    <td>{{{Leak Risk}}}</td>
<!-- large box border colors -->
</tr>}}{{#if:{{{Batteries|}}}|<tr>
| danger=bf3333
    <th>[[Batteries]]</th>
| warning=df5c15
    <td>{{{Batteries}}}</td>
| caution=f1cc43
</tr>}}{{#if:{{{Mounting Technology|}}}|<tr>
| note|custom=4666c8
    <th>{{nowrap|[[Part Footprints|Mounting Technology]]}}</th>
}}; border-top-width: 0.4em;"><table><tr><td style=text-align:center>[[File:{{#switch: {{{severity| {{{1}}} }}}
    <td>{{{Mounting Technology}}}</td>
<!-- large box icons -->
</tr>}}{{#if:{{{Capacitor Types|}}}|<tr>
| danger=OOjs UI icon alert-destructive.svg
    <th>{{nowrap|[[Capacitor Types]]}}</th>
| warning=OOjs UI icon alert-warning.svg
    <td>{{{Capacitor Types}}}</td>
| caution=OOjs UI icon alert-yellow.svg
</tr>}}{{#if:{{{Destructive Entry|}}}|<tr>
| note=OOjs UI icon information-progressive.svg
    <th>{{nowrap|Destructive Entry}}</th>
| custom={{{custom_icon}}}
    <td>{{{Destructive Entry}}}</td>
}}|35px|left|link=|alt={{{severity| {{{1}}} }}}]]<br />{{#switch: {{{severity| {{{1}}} }}}
</tr>}}
<!-- large box labels -->
{{#incat:CRT|<tr>
| danger='''DANGER'''
    <th>CRT Guides</th>
| warning='''WARNING'''
    <td>
| caution='''CAUTION'''
* [[CRT]]
| note='''NOTE'''
* [[CRT Repair Cautions]]</td>
| custom={{{custom_label}}}
</tr>}}
}}</td><td>{{{message| {{{3|}}} }}}</td></tr></table></div>
</table>
| medium|med=<table style="padding: 0.5em; background-color: #{{#switch: {{{severity| {{{1}}} }}}
</div>
<!-- medium box background colors -->
| danger=fee7e6
| warning=fceee6
| caution=fcf8e6
| note|custom=f8f9fa
}}; border: 1px solid #{{#switch: {{{severity| {{{1}}} }}}
<!-- medium box border colors -->
| danger=bf3333
| warning=df5c15
| caution=f1cc43
| note|custom=4666c8
}};"><tr><td nowrap="true">[[File:{{#switch: {{{severity| {{{1}}} }}}
<!-- medium box icons -->
| danger=OOjs UI icon alert-destructive.svg
| warning=OOjs UI icon alert-warning.svg
| caution=OOjs UI icon alert-yellow.svg
| note=OOjs UI icon information-progressive.svg
| custom={{{custom_icon}}}
}}|18px|text-bottom|link=|alt={{{severity| {{{1}}} }}}]] {{#switch: {{{severity| {{{1}}} }}}
<!-- medium box labels -->
| danger'''=DANGER'''
| warning='''WARNING'''
| caution='''CAUTION'''
| note='''NOTE'''
| custom={{{custom_label}}}
}} {{{message| {{{3|}}} }}}</table>
| small=[[File:{{#switch: {{{severity| {{{1}}} }}}
<!-- small box icons -->
| danger=OOjs UI icon alert-destructive.svg
| warning=OOjs UI icon alert-warning.svg
| caution=OOjs UI icon alert-yellow.svg
| note=OOjs UI icon information-progressive.svg
| custom={{{custom_icon}}}
}}|18px|text-bottom|link=|alt={{{severity| {{{1}}} }}}]] {{#switch: {{{severity| {{{1}}} }}}
| danger='''DANGER'''
| warning='''WARNING'''
| caution='''CAUTION'''
| note='''NOTE'''
| custom={{{custom_label}}}
}} {{{message| {{{3|}}} }}}
}}

Revision as of 16:49, 19 February 2022

DigitalIceAge/sandbox