Difference between revisions of "Template:Alert"

From AlliedModders Wiki
Jump to: navigation, search
m
(Undo revision 10918 by Psychonic (talk))
(Tag: Undo)
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<div style="{{#switch: {{{1}}}
 
<div style="{{#switch: {{{1}}}
             | info   = border-left: 1px solid #bcdff1; color: #31708f; {{#if:{{{bg}}}||background-color: #d9edf7;}}
+
             | info     = border-color: #bcdff1; color: #31708f; {{#switch:{{{opt}}}|bg = background-color: #d9edf7;|}}
             | success = border-left: 1px solid #d0e9c6; color: #3c763d; {{#if:{{{bg}}}||background-color: #dff0d8;}}
+
             | success = border-color: #d0e9c6; color: #3c763d; {{#switch:{{{opt}}}|bg = background-color: #dff0d8;|}}
             | warning = border-left: 1px solid #faf2cc; color: #8a6d3b; {{#if:{{{bg}}}||background-color: #fcf8e3;}}
+
             | warning = border-color: #faf2cc; color: #8a6d3b; {{#switch:{{{opt}}}|bg = background-color: #fcf8e3;|}}
             | danger = border-left: 1px solid #ebcccc; color: #a94442; {{#if:{{{bg}}}||background-color: #f2dede;}}
+
             | danger   = border-color: #ebcccc; color: #a94442; {{#switch:{{{opt}}}|bg = background-color: #f2dede;|}}
             | border-left: 1px solid #bcdff1; color: #3c763d;
+
             | #default = border-color: #bcdff1; color: #3c763d; {{#switch:{{{opt}}}|bg = background-color: #d9edf7;|}}
 
             }}
 
             }}
             border-left-width: 4px;
+
 
             padding-left: 5px;
+
            {{#switch:{{{opt}}}
             display: table;
+
            | full-border = border-width: 1px; border-top-style: solid; border-bottom-style: solid;
 +
            | #default =
 +
            }}
 +
             border-left-width: 3px;
 +
            border-right-width: 3px;
 +
             border-left-style: solid;
 +
            border-right-style: solid;
 +
            border-radius: 5px;
 +
            {{ #ifeq: {{{inline|no}}} | yes
 +
            | display: inline-table; margin-top: 5px; margin-bottom: 5px;
 +
             | display: table; margin-top: 10px; margin-bottom: 10px;
 +
            }}
 +
            border-collapse: separate;
 +
            border-spacing: 5px;
 
"> {{#if: {{{3|}}}
 
"> {{#if: {{{3|}}}
   | <strong>{{{2}}}</strong>{{ns|1}}{{{3}}}
+
   | <strong style="display: table-cell; padding-right: 5px; vertical-align: middle;">{{{2}}}</strong>{{{3}}}
   | <span style="vertical-align: middle">{{{2}}}</span>
+
   | <span>{{{2}}}</span>
   }}
+
   }}</div>
</div>
 

Latest revision as of 13:52, 27 March 2020

{{{2}}}