User:DigitalIceAge/sandbox: Difference between revisions

From Caps Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
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 style="width:100%;">{{#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>[[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}}} }}}]]</td><td>{{#switch: {{{severity| {{{1}}} }}}
</tr>}}{{#if:{{{CPU|}}}{{{Memory|}}}{{{Storage|}}}{{{Graphics|}}}{{{Sound|}}}|<tr>
<!-- large box labels -->
    <th colspan=2 style="font-size:125%;text-align:center;background-color:#4666c8;color:white;">Hardware Specifications</th>
| danger='''DANGER'''
</tr>{{#if:{{{CPU|}}}|<tr>
| warning='''WARNING'''
    <th>CPU</th>
| caution='''CAUTION'''
    <td>{{{CPU}}}</td>
| note='''NOTE'''
</tr>}}{{#if:{{{Memory|}}}|<tr>
| custom={{{custom_label}}}
    <th>Memory</th>
}} {{{message| {{{3|}}} }}}</td></tr></table></div>
    <td>{{{Memory}}}</td>
| medium|med=<table style="padding: 0.5em; background-color: #{{#switch: {{{severity| {{{1}}} }}}
</tr>}}{{#if:{{{Storage|}}}|<tr>
<!-- medium box background colors -->
    <th>Storage</th>
| danger=fee7e6
    <td>{{{Storage}}}</td>
| warning=fceee6
</tr>}}{{#if:{{{Graphics|}}}|<tr>
| caution=fcf8e6
    <th>Graphics</th>
| note|custom=f8f9fa
    <td>{{{Graphics}}}</td>
}}; border: 1px solid #{{#switch: {{{severity| {{{1}}} }}}
</tr>}}{{#if:{{{Sound|}}}|<tr>
<!-- medium box border colors -->
    <th>Sound</th>
| danger=bf3333
    <td>{{{Sound}}}</td>
| warning=df5c15
</tr>}}}}
| caution=f1cc43
{{#incat:CRT|<tr>
| note|custom=4666c8
    <th colspan=2 style="font-size:125%;text-align:center;background-color:#4666c8;color:white;">CRT Guides</th>
}};"><tr><td nowrap="true">[[File:{{#switch: {{{severity| {{{1}}} }}}
</tr><tr>
<!-- medium box icons -->
    <td colspan=2 style="text-align:center;">[[CRT|General Information]]&nbsp;· [[CRT Repair Cautions|Repair Cautions]]</td>
| danger=OOjs UI icon alert-destructive.svg
</tr>}}
| warning=OOjs UI icon alert-warning.svg
</table>
| caution=OOjs UI icon alert-yellow.svg
</div>
| 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|}}} }}}
}}

Latest revision as of 17:14, 19 February 2022

DigitalIceAge/sandbox