The legacy classes tleft and tright do not work across all MediaWiki platforms (notably mobile web and mobile apps). These should be replaced with floatleft and floatright. Interface admins on projects relying on these classes should review this ticket to determine how to approach this deprecation.
Note: floatleft and floatright may also be deprecated in future but there are no plans at current time, please subscribe to T366968: floatleft/right classes not documented great and T318433: Templates (and extensions) that mimic parser media output need migration to new structure to keep informed.
Action
Interface admins should check if the tleft and tright rules are used on their wiki
To support migration you can add this style to MediaWiki:Vector-2022.css to restore styles for desktop while you address them. It is recommended you do not add this to MediaWiki:Common.css so that editors using non-default skins are able to easily detect and fix references to the old class.
/* Please replace tleft rules with floatleft */ /* @noflip */ div.tleft { margin: 0.5em 1.4em 1.3em 0; float: left; clear: left; } /* Please replace tright rules with floatright */ /* @noflip */ div.tright { margin: 0.5em 0 1.3em 1.4em; clear: right; float: right; } @media all and ( max-width: 639px ) { body.skin--responsive div.tleft, body.skin--responsive div.tright{ clear: both; float: none; } }


