Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Message box: Difference between revisions

Template page
m Improve readability (explicit text color, rounded box) and trim doc notes
m Left-align licensing boxes instead of centering
Line 1: Line 1:
<div class="msgbox" style="display:flex;box-sizing:border-box;align-items:center;width:auto;max-width:{{{width|90%}}};padding:.7em 1.1em;margin:0 auto 1em auto;background:{{{bgcol|#f4f4f4}}};border-left:5px solid {{{linecol|#c8c8c8}}};border-radius:5px;box-shadow:0 1px 4px rgba(0,0,0,.18);">
<div class="msgbox" style="display:flex;box-sizing:border-box;align-items:center;width:auto;max-width:{{{width|90%}}};padding:.7em 1.1em;margin:0 0 1em 0;background:{{{bgcol|#f4f4f4}}};border-left:5px solid {{{linecol|#c8c8c8}}};border-radius:5px;box-shadow:0 1px 4px rgba(0,0,0,.18);">
<div style="margin:0 1.3em 0 .3em;flex-shrink:0;">[[File:{{{image|License none.png}}}|{{{imagesize|64px}}}|link=|alt=]]</div>
<div style="margin:0 1.3em 0 .3em;flex-shrink:0;">[[File:{{{image|License none.png}}}|{{{imagesize|64px}}}|link=|alt=]]</div>
<div style="width:100%;">
<div style="width:100%;">

Revision as of 07:40, 17 August 2026

Generic styled notice box. Parameters: image (filename, no File: prefix), imagesize, title, text, bgcol, linecol, width. Used by Template:License.