Jump to content

Module talk:Message box

Add topic
From mediawiki.org

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)Reply

[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)Reply

Yes Done * Pppery * it has begun 18:26, 7 January 2023 (UTC)Reply

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 (talkcontribs) 03:33, 1 September 2023 (UTC)Reply

Done. * Pppery * it has begun 14:34, 2 September 2023 (UTC)Reply

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.

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)Reply

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;
}

Tactica (talk) 09:44, 12 October 2025 (UTC)Reply

Done. * Pppery * it has begun 23:48, 9 November 2025 (UTC)Reply