Template:Alert: Difference between revisions
Ffs what's this |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| (5 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="alert/styles.css" /><div class="alert-container alert-text alert-{{{type|note}}}"> | <includeonly><templatestyles src="alert/styles.css" /><div class="alert-container alert-text alert-{{{type|note}}}"> | ||
{{#if: {{{label|}}}{{{text|}}} | {{#if: {{{icon|}}}{{{label|}}}{{{text|}}} | ||
| {{(!}} | | {{(!}} | ||
{{!-}} | {{!-}} | ||
{{#if: {{{icon|}}}|<span class{{=}}"alert-icon">{{{icon}}}</span>|}}'''{{{label | {{#if: {{{icon|}}}|{{!}} class{{=}}"alert-text" style{{=}}"white-space: nowrap;" {{!}} <span class{{=}}"alert-icon">{{{icon|}}}</span>{{{#if: {{{label|}}}|'''{{{label}}}:'''|}}}|}} | ||
{{#if: {{{text|}}}|{{!}} class{{=}}"alert-text" {{!}} {{{text}}}|}} | {{#if: {{{text|}}}|{{!}} class{{=}}"alert-text" {{!}} {{{text}}}|}} | ||
{{!)}} | {{!)}} | ||