Template:Message box: Difference between revisions
Template page
More actions
Create static (ParserFunctions-free) License Mojang template chain |
m Improve readability (explicit text color, rounded box) and trim doc notes |
||
| Line 1: | Line 1: | ||
<div class="msgbox" style="display:flex;box-sizing:border-box;align-items:center;width:auto;max-width:{{{width|90%}}};padding:. | <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 style="margin:0 1. | <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%;"> | ||
<div style="font-weight: | <div style="font-weight:700;font-size:1.08em;line-height:1.3;margin-bottom:.3em;color:#1a1a1a;">{{{title|}}}</div> | ||
<div>{{{text|}}}</div> | <div style="color:#3c3c3c;line-height:1.45;">{{{text|}}}</div> | ||
</div> | </div> | ||
</div><noinclude> | </div><noinclude> | ||
Generic styled notice box. Parameters: '''image''' (filename, no <code>File:</code> prefix), '''imagesize''', '''title''', '''text''', '''bgcol''', '''linecol''', '''width'''. Used by [[Template:License]]. | Generic styled notice box. Parameters: '''image''' (filename, no <code>File:</code> prefix), '''imagesize''', '''title''', '''text''', '''bgcol''', '''linecol''', '''width'''. Used by [[Template:License]]. | ||
</noinclude> | </noinclude> | ||
Revision as of 07:28, 17 August 2026
Generic styled notice box. Parameters: image (filename, no File: prefix), imagesize, title, text, bgcol, linecol, width. Used by Template:License.