Template:Alert: Difference between revisions

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