Jump to content

Template talk:Fmbox

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Word wrap on left side?

[edit]

Hi, I am trying to place this template to the right of my table of contents on a different wiki. Ombox can wrap to the right of the {{TOC_left}} table of contents, but Fmbox does not. How can I cause Fmbox to wrap around and appear on the right of it? Thanks! 99.138.128.2 (talk) 05:00, 1 August 2010 (UTC)[reply]

We designed {{fmbox}} specifically to always be 100% wide. Since we only use it at top of page and bottom of page. So it can't float to the side of things, it was built on purpose to refuse that. Instead use {{ombox}} or {{ambox}} for that. Whichever fits your colour needs etc. best. But yes, ombox and ambox are "only" 80% wide. If you need a 100% wide box that still floats then you need a whole new set of CSS or style rules. Then you should probably base those style rules on the ombox/ambox/mbox rules. But it might work to feed the width to ombox or ambox using the style= parameter.
--David Göthberg (talk) 11:05, 6 February 2020 (UTC)[reply]

Switch of mbox templates and category handler to Lua

[edit]

I've made a request over at Template talk:Mbox about switching all of the {{mbox}} family templates, plus the {{category handler}} template, to use Lua modules. These templates have millions of transclusions, so I would appreciate comments and some more eyes on the code. Please let me know what you think over at the request page. — Mr. Stradivarius ♪ talk ♪ 15:10, 15 October 2013 (UTC)[reply]

The proposed changes are now up live - this template has been switched to use Module:Message box. — Mr. Stradivarius ♪ talk ♪ 12:58, 20 October 2013 (UTC)[reply]

word wrapping problem

[edit]

I found that a template using class "fmbox" had bad word wrapping—breaks within a single word. (That template is {{editnotice}}; browser any live edit notice for good examples.) I see that I can replicate this effect with the examples in the documentation here (by narrowing my browser window enough; and also by finding a random transclusion such as German proverbs—again, narrowing the window). As well as with my old monobook skin, it also occurs logged out in a different browser. This seems like a pretty big problem? Outriggr (talk) 03:50, 1 April 2018 (UTC)[reply]

Just noticed it as well, in MediaWiki:Sp-contributions-footer-anon, and traced it back to here. Occurs in both Firefox and Chromium. There don't seem to have been any relevant changes to Fmbox or Module:Message box. Maybe the CSS has been edited some other way? The site CSS shows that someone has done this on purpose:
/* break words if they will overflow the content box */
.fmbox > tbody > tr > .mbox-text {
	word-break: break-all; /* break all, because it's a table-cell, that can grow if we use break-word */
}
This probably needs to be communicated to site admins in another way. --pmj (talk) 04:57, 1 April 2018 (UTC)[reply]
@Pmj: Thanks, I have posted at MediaWiki_talk:Common.css#word_wrapping_problem_from_.fmbox Outriggr (talk) 05:25, 1 April 2018 (UTC)[reply]

Move discussion in progress

[edit]

There is a move discussion in progress on Template talk:Ambox which affects this page. Please participate on that page and not in this talk page section. Thank you. —RMCD bot 04:47, 10 February 2025 (UTC)[reply]