Manual:$wgCleanupPresentationalAttributes/zh

细节
Converts certain presentational attributes that have been deprecated since HTML5 and were removed in HTML5 (such as valign) into their respective inline CSS styles instead. This allows wikis to keep using them in short loose wikitext but still output valid modern markup. Note that there were some attributes excluded; namely stuff on img and object,, and the table cellspacing and cellpadding which aren't easily converted into inline CSS.

该变量仅在启用时生效.

移除
此功能已从MediaWiki核心中删除，因为它进行了许多不正确的转换（），包括至少一个根本不应该进行的转换（）. 它的删除已作为MediaWiki 1.20.1维护版本的一部分反向移植到MediaWiki 1.20.

如果MediaWiki 1.19用户遇到以下HTML属性问题，则应禁用此功能（通过在LocalSettings.php的尾端添加$ code）： "align", "clear", "height", "nowrap", "size", "type", "valign", "width"