Page MenuHomePhabricator

Document wgUseLegacyMediaStyles
Open, Needs TriagePublic

Description

The support channels are getting questions about why some of their templates for thumbnails are breaking. This is because they copy examples from Wikipedia, which still rely on tright etc.

On wikipedia, this works because the styles for the old thumbnails are still included. This is being done by wgUseLegacyMediaStyles it seems. This configuration setting defaults to false, but is undocumented on Mediawiki.org and thus not discoverable for most people. The setting also isn't mentioned in any of the release notes as far as I could quickly determine.

We should rectify this.

Event Timeline

After my table stopped floating right:

{| class="wikitable floatright mw-collapsible mw-collapsed" style="width:20em"

I added the following code - suggested by @alistair3149 - to my MediaWiki:Common.css

.floatright {
    margin: 0 0 0.5em 0.5em;
    clear: right;
    float: right;
}

.floatleft {
    margin: 0 0.5em 0.5em 0;
    float: left;
    clear: left;
}

This fixed my problem.
So I guess that anyone experiencing their tables not floating anymore, could try this out.