Template:Message box: Difference between revisions
Template page
More actions
m Left-align licensing boxes instead of centering |
m Split remaining inline CSS into /styles.css; delegate shared infobox chrome to Template:Infobox for wiki-wide visual parity |
||
| Line 1: | Line 1: | ||
<div class="msgbox" style=" | <includeonly><templatestyles src="Template:Message box/styles.css" /><div class="loka-msgbox" style="--msgbox-width:{{{width|90%}}};--msgbox-bg:{{{bgcol|#f4f4f4}}};--msgbox-line:{{{linecol|#c8c8c8}}};"><div class="loka-msgbox-icon">[[File:{{{image|License none.png}}}|{{{imagesize|64px}}}|link=|alt=]]</div><div class="loka-msgbox-body"><div class="loka-msgbox-title">{{{title|}}}</div><div class="loka-msgbox-text">{{{text|}}}</div></div></div></includeonly><noinclude> | ||
<div | |||
<div | |||
<div | |||
<div | |||
</div> | |||
</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]]. | ||
<code>bgcol</code>/<code>linecol</code>/<code>width</code> are set per call (each license type could in principle use different colours), so they're passed through as CSS custom properties rather than living in the stylesheet; everything else is static and lives in [[Template:Message box/styles.css]]. | |||
[[Category:Templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 05:41, 18 August 2026
Generic styled notice box. Parameters: image (filename, no File: prefix), imagesize, title, text, bgcol, linecol, width. Used by Template:License.
bgcol/linecol/width are set per call (each license type could in principle use different colours), so they're passed through as CSS custom properties rather than living in the stylesheet; everything else is static and lives in Template:Message box/styles.css.