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" />{{mbox
<includeonly><templatestyles src="alert/styles.css" /><div class="alert-container alert-text alert-{{{type|note}}}">
| class=alert
{{#if: {{{icon|}}}{{{label|}}}{{{text|}}}
| icon={{{icon|}}}
| {{(!}}
| icon size={{{icon size|20px}}}
{{!-}}
| type={{{type|note}}}
{{#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>