Template:Alert: Difference between revisions

ArrowHead294 (talk | contribs)
m Icon parameter to avoid having to type out the span and bold markupeach time
ArrowHead294 (talk | contribs)
mNo edit summary
Line 3: Line 3:
| {{(!}}
| {{(!}}
{{!-}}
{{!-}}
{{#if: {{{label|}}}|{{!}} class{{=}}"alert-text alert-label" {{!}} {{#if: {{{icon|}}}|<span class{{=}}"alert-icon">{{{icon}}}</span>|}}'''{{{label}}}{{colon}}'''|}}
{{#if: {{{label|}}}|{{!}} class{{=}}"alert-text alert-label" {{!}} {{#if: {{{icon|}}}|<span class{{=}}"alert-icon">{{{icon}}}</span>|}}'''{{{label|{{ucfirst: {{{type|note}}}}}}}}{{colon}}'''|}}
{{#if: {{{text|}}}|{{!}} class{{=}}"alert-text" {{!}} {{{text}}}|}}
{{#if: {{{text|}}}|{{!}} class{{=}}"alert-text" {{!}} {{{text}}}|}}
{{!)}}
{{!)}}