MediaWiki 1.19
Outdated translations are marked like this.
MediaWiki 1.19 是一个包含许多新功能和错误修复的版本。 此为主要变化的总结。 你可以参考发行说明文件来得到这个版本的完整的变化。 它在2012年2月部署于维基媒体的wiki中,要获得可读的说明可参阅部署公告。 任何运行1.19.x版本的网站都应该升级到更新的版本。1.19.x版本不再接收到安全更新且存在许多潜在漏洞。 这是一个获得长期支持的版本,且支持到2015年5月为止。
作了哪些改进?
这个版本包含了有上百个错误修复、新的和变化的功能。 改进的完整列表在版本说明中。 这里是一个概述:
更容易阅读、编辑和维护
- Better diff readability for colorblind people. (T13374)
- Disable the partial HTML and MathML rendering options for Math, and render as PNG by default (see RFC and r104498).
MathML mode was so incomplete most people thought it simply didn't work. - The default user signature now contains a talk link in addition to the user link.
- Better timezone recognition in user preferences.
国际化
- The log rewrite has finally been completed, although some gender support features are still missing from this release (bug 24156). Documentation for developers on how to use the new logging system is (or will be) at Manual:Logging to Special:Log.
- More gender support (for instance in user lists).
- Added language: Canadian English (en-ca).
- Language converter improved, e.g. it now works depending on the page content language.
- Time and number-formatting magic words also now depend on the page content language.
- Bidirectional support further improved after 1.18.
- Norwegian (bokmål) (nb) (renamed from no).
- The Latin script for Uyghur was incorrectly marked as right-to-left language.
- Make Brazilian Portuguese a fallback of Portuguese.
- Fallback language of Assamese from is now English.
- Update date format for Upper and Lower Sorbian: month names need the genitive.
- Serbian variant conversion improvements.
- Lower diacritics in titles for Indic languages (Assamese, Bengali, Hindi, Malyalam and Odiya) are no longer cut off.
- Gendered namespaces added for Czech.
- Larger numbers (e.g. Terabytes, Petabytes, Exabytes, Zetabytes and Yottabytes) are now supported.
对于扩展开发者
- Extensions can now participate in the extraction of titles from URL paths.
- Removed SkinTemplateSetupPageCss hook; use BeforePageDisplay instead.
- Added two new GetLocalURL hooks to better serve extensions working on a limited type of titles.
- Hook added to check for exempt from account creation throttle. (name?)
- Added hook BitmapHandlerCheckImageArea.
- getUserPermissionsErrors and getUserPermissionsErrorsExpensive hooks are now also called when checking for 'read' permission.
- New path mappings can be added using the WebRequestPathInfoRouter hook and adding paths to the PathRouter.
- Extensions can use the
Language::getMessagesFileName
hook to define new languages using messages files outside of core. - Extensions can use the RequestContextCreateSkin hook to override what skin is loaded in some contexts.
Parser::clearTagHooks()
now clear function tag hooks when it clears other tag hooks (bug 33525).Parser::getTags()
now returns function tag hooks so that they show up on Special:Version (bug 33523).- Added CSS classes for the action being performed (bug 4438).
- Added 'APIGetDescription' hook so that extension authors can add information to the output of api.php (r104441).
- The $variant argument in the hooks for the
Title::get{Local,Full,Link,Canonical}URL
methods have been removed, the variant is now part of the $query argument. - Support for the deprecated hook MagicWordMagicWords was removed.
给 MediaWiki 管理员的升级提示
- Bumped MySQL version requirement to 5.0.2 (r104437 r104209).
- The command-line installer supports various RDBMSes better.
- New skins/common/*.css files usable by skins instead of having to copy piles of generic styles from MonoBook or Vector's css.
- BREAKING CHANGE: CSS styling for the wikitable class is now more specific to prevent it from affecting nested tables, which caused various issues (bug 30485 and bug 33434). If your wiki has overridden CSS rules for ".wikitable", please revise them and adjust where necessary. For comparison, use the "table.wikitable" section in skins/common/shared.css as base.
- BREAKING CHANGE: Legacy global array 'ta' and global function 'akeytt' have been removed from wikibits.js.
- jquery.mwPrototypes module was renamed to jquery.mwExtension.
- The maintenance script populateSha1.php was renamed to the more descriptive populateImageSha1.php.
- There's a known issue where if PHP's PCRE is not compiled with the
--enable-unicode-properties
all text information on the installer setup page will be replaced with several instances of[1]
. MediaWiki 1.19 requires the PCRE library used with PHP to be compiled with--enable-unicode-properties
in order to function.
更多
- The interwiki table can now be accessed also when the interwiki cache is used (used in the API and the Interwiki extension).
资源加载
- ResourceLoaderWikiModule are now also automatically purged if one of the messages used from the MediaWiki namespace are updated.
- ResourceLoader's loading system now supports custom sources for loading the modules (see
$wgResourceLoaderSources
for more information) - "private" ResourceLoader modules embed has been moved from towards the
</body>
end, to up in the<head>
. The embedding can no longer be disabled ($wgResourceLoaderInlinePrivateModules
removed) - Popular ResourceLoader modules (e.g. mediawiki.util) are now preloaded as stop-gap for scripts missing dependencies.
- New configuration variable
$wgPreloadJavaScriptMwUtil
has been introduced for this (set to false by default for new installations). Set to true if your wiki has a large amount of user/site scripts that are lacking dependency information. In the short to medium term these user/site scripts should be fixed by adding the used modules to the dependencies in the module registry and/or wrapping them in a callback to mw.loader.using.
- New configuration variable
监视列表
- Special:Watchlist no longer sets links to feed when the user is anonymous.
- Watchlist editing has been improved so that users can now remove broken or invalid titles.
- wlexcludeuser parameter added to ApiFeedWatchlist.
- Action=watch now parses messages using the correct title instead of "API".
日志
- Searching blocked usernames in block log is now clearer. The "User:" prefix is no longer necessary when searching for a user's block log entry.
- Log comments are now truncated correctly in multibyte character languages.
附带扩展
在MediaWiki 1.19中没有新附带扩展。