Template:Alert: Difference between revisions
ArrowHead294 (talk | contribs) m Make "alert" "mbox" etc. a separate parameter ("class") in Template:Mbox to avoid having to copy markup |
ArrowHead294 (talk | contribs) mNo edit summary |
||
| (16 intermediate revisions by 4 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}}}"> | ||
| class=alert | {{#if: {{{icon|}}}{{{label|}}}{{{text|}}} | ||
| {{(!}} | |||
| | {{!-}} | ||
| | {{#if: {{{icon|}}}|{{!}} class{{=}}"alert-text" style{{=}}"white-space: nowrap;" {{!}} <span class{{=}}"alert-icon">{{{icon|}}}</span>{{{#if: {{{label|}}}|'''{{{label}}}:'''|}}}|}} | ||
{{#if: {{{text|}}}|{{!}} class{{=}}"alert-text" {{!}} {{{text}}}|}} | |||
{{!)}} | |||
| | |||
}} | }} | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||