Module talk:Message box
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Mbox does not show a box around the message.
[edit]Pretty much what the title states. I configured Mbox exactly as the documentation states. Still I can see any box around the message 129.10.44.36 (talk) 05:05, 25 March 2021 (UTC)
Fix for plainlinks parameter
[edit]Some templates call mbox with plainlinks=no but it doesn't do anything. I fixed that in the sandbox, please apply it. Tgr (talk) 04:31, 7 January 2023 (UTC)
Use SVGs
[edit]{{Edit protected}}
In Module:Message box, please replace Imbox notice.png with Information icon4.svg. In Module:Message box/configuration, please replace 'Imbox license.png' -- @todo We need an SVG version of this with 'Imbox-license.svg'. —CalendulaAsteraceae (talk • contribs) 03:33, 1 September 2023 (UTC)
Update icons
[edit]Update icons to use the new Codex icons, I've colored them manually in Category:Wikimedia Codex icons with color, using the colors we used with near identical OOUI icons.
-
ambox.speedy
-
ambox.delete
-
ambox.warning ambox.content
-
ambox.notice
-
or this for ambox.notice
-
ambox.style Not Codex, but OOUI for style icon...
etc. In some cases cmbox will use different icon to ambox for example cmbox.caution uses cmbox-style but not the same icon as cmbox.style. Waddie96 (talk) 12:04, 10 August 2025 (UTC)
Better dark mode support in Module:Message box/fmbox.css
[edit]{{Edit protected}}
Consider this replacement to make the warning type use a variable background. Changes start at line 26 as marked.
/* Cell sizes for ambox/tmbox/imbox/cmbox/ombox/fmbox/dmbox message boxes */
th.mbox-text, td.mbox-text { /* The message body cell(s) */
padding: 0.25em 0.9em; /* 0.9em left/right */
}
td.mbox-image { /* The left image cell */
padding: 2px 0 2px 0.9em; /* 0.9em left, 0px right */
}
td.mbox-imageright { /* The right image cell */
padding: 2px 0.9em 2px 0; /* 0px left, 0.9em right */
}
/* Footer and header message box styles */
table.fmbox {
clear: both;
margin: 0.2em 0;
width: 100%;
border: 1px solid #a2a9b1;
background-color: var( --background-color-interactive-subtle, #f8f9fa );
color: var( --color-base, #202122 );
box-sizing: border-box;
}
table.fmbox-system {
background-color: var( --background-color-interactive-subtle, #f8f9fa );
}
table.fmbox-warning {
border: 1px solid #bb7070; /* Dark pink */
background-color: var(--background-color-destructive-subtle--hover, #ffdad3); /* Pink */
}
table.fmbox-editnotice {
background-color: transparent;
}