User:DigitalIceAge/sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#switch: | {{{severity_color | {{#switch: {{{severity| {{{1|}}} }}} | danger=bf3333 | warning=df5c15 | caution=f1cc43 | note|custom=4666c8 }} }}} | ||
| danger=bf3333 | {{{severity_label | {{#switch: {{{severity| {{{1|}}} }}} }}} | danger=DANGER | warning=WARNING | caution=CAUTION | note=NOTE | custom={{{custom_label|}}} }} }}} | ||
| warning=df5c15 | {{{severity_icon | {{#switch: | {{{severity| {{{1|}}} }}} }}} | 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|}}} }} }}} | ||
| caution=f1cc43 | {{#switch: {{{size | {{{2|}}} }}} | ||
| note|custom=4666c8 | |||
}}{{#switch: { | |||
| danger=DANGER | |||
| warning=WARNING | |||
| caution=CAUTION | |||
| note=NOTE | |||
| custom={{{custom_label|}}} | |||
}}{{#switch: { | |||
| 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|}}} | |||
}}{{#switch: {{{size | {{{2|}}} }}} | |||
| large=<div style="background-color:#fee7e6; padding: 1.2rem; margin-top: 0.5em; border: 1px solid #{{{severity_color| {{{severity|}}} }}}; border-top-color:#{{{severity_color| {{{severity|}}} }}}; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;"> | | large=<div style="background-color:#fee7e6; padding: 1.2rem; margin-top: 0.5em; border: 1px solid #{{{severity_color| {{{severity|}}} }}}; border-top-color:#{{{severity_color| {{{severity|}}} }}}; border-top-width: .4rem; border-radius: .20rem; box-shadow: 2px 2px #F7F8F9;"> | ||
{| style=width:100% | {| style=width:100% |