Template:Alert: Difference between revisions
m a div |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| (14 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="alert/styles.css" /> | <includeonly><templatestyles src="alert/styles.css" /><div class="alert-container alert-text alert-{{{type|note}}}"> | ||
{{#if: {{{icon|}}}{{{label|}}}{{{text|}}} | |||
| {{(!}} | |||
| | {{!-}} | ||
| icon={{{icon|}}} | {{#if: {{{icon|}}}|{{!}} class{{=}}"alert-text" style{{=}}"white-space: nowrap;" {{!}} <span class{{=}}"alert-icon">{{{icon|}}}</span>{{{#if: {{{label|}}}|'''{{{label}}}:'''|}}}|}} | ||
| | {{#if: {{{text|}}}|{{!}} class{{=}}"alert-text" {{!}} {{{text}}}|}} | ||
{{!)}} | |||
| | |||
}} | }} | ||
</includeonly><noinclude> | </div></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Alert templates]] | [[Category:Alert templates]] | ||
</noinclude> | </noinclude> | ||