Template:Message box: Difference between revisions

No edit summary
added support for changing the icon size. added automatically setting alt text for the icons with the image parameter. LMK IF I BROKE IT
Line 2: Line 2:
<div style="border: 1px solid #ccc; width: 80%; min-width: 310px;">
<div style="border: 1px solid #ccc; width: 80%; min-width: 310px;">
<div style="display: flex; align-items: center; padding: 7px; {{#if:{{{border|none}}}|border-left: 10px solid {{{border|#e1d2b3}}};}}">
<div style="display: flex; align-items: center; padding: 7px; {{#if:{{{border|none}}}|border-left: 10px solid {{{border|#e1d2b3}}};}}">
{{#if:{{{image|}}}|[[File:{{{image}}}|50px|link=]]|}}
{{#if:{{{image|}}}|[[File:{{{image}}}|{{{image-size|50px}}}|link=|alt={{{image|}}}]]|}}
<div style="display: block; margin-left: 15px;">
<div style="display: block; margin-left: 15px;">
{{#if:{{{quote|}}}|<div style="font-size: 90%; font-weight: bold; font-style: italic;">“{{{quote}}}”</div>}}<!--
{{#if:{{{quote|}}}|<div style="font-size: 90%; font-weight: bold; font-style: italic;">“{{{quote}}}”</div>}}<!--