MediaWiki 1.30
Appearance
Outdated translations are marked like this.
| MediaWiki |
|---|
|
| 所有版本 |
| 版本生命周期 |
MediaWiki 1.30是MediaWiki的既往发行版本。访问$relnotes文件以获取完整更新列表。并于2017年5月9日起,通过增量更新的"wmf"-分支部署在维基基金会管理的wiki上。2017年12月12日发布1.30.0的稳定版本。 Consult the 发行说明 file for the full list of changes. It was deployed on Wikimedia Foundation wikis through incremental "wmf"-branches starting on 9 May 2017. The 1.30.0 stable release was released on 12 December 2017.
| MediaWiki 1.30 |
|---|
| 在维基媒体网站上部署 |
配置变化
- The "C.UTF-8" locale should be used for
$wgShellLocale, if available, to avoid unexpected behavior when code uses locale-sensitive string comparisons. For example, the Scribunto extension considers "bar" < "Foo" in most locales since it ignores case. $wgShellLocalenow affects LC_ALL rather than only LC_CTYPE. See documentation of$wgShellLocalefor details.$wgShellLocaleis now applied for all requests.wfInitShellLocale()is deprecated and a no-op, as it is no longer needed.$wgJobClassesmay now specify callback functions as an alternative to plain class names. This is intended for extensions that want control over the instantiation of their jobs, to allow for proper dependency injection.$wgResourceModulesmay now specify callback functions as an alternative to plain class names, using the 'factory' key in the module description array. This allows dependency injection to be used for ResourceLoader modules.$wgExceptionHooks已移除。- (T45547) $wgUsePigLatinVariant added (off by default).
- $wgRangeContributionsCIDRLimit was introduced to control the size of IP ranges that can be queried at Special:Contributions.
新特性
- (T163562) Added the ability to search for contributions within an IP range at Special:Contributions. References to revisions made by IPs are stored in the ip_changes table to make querying for ranges more efficient.
- (T37247) Output from
Parser::parse()will now be wrapped in a<div>withclass="mw-parser-output"by default. This may be changed or disabled usingParserOptions::setWrapOutputClass(). - Added the '
ChangeTagsAllowedAdd' hook, enabling extensions to allow software- specific tags to be added by users. - Added the '
ParserOptionsRegister' hook to allow extensions to register additional parser options. - (T45547) Included Pig Latin, a language game in English, as a LanguageConverter variant. This allows English-speaking developers to develop and test LanguageConverter more easily. Pig Latin can be enabled by setting
$wgUsePigLatinVariantto true. - Added the '
RecentChangesPurgeRows' hook to allow extensions to purge data that depends on therecentchangestable. - Added JS config values
wgDiffOldId/wgDiffNewIdto the output of diff pages.
Action API 变化
- (T37247) action=parse output will be wrapped in a
<div>withclass="mw-parser-output"by default. This may be changed or disabled using the new 'wrapoutputclass' parameter. - When
errorformatis not 'bc', abort reasons fromaction=loginwill be formatted as specified by the error formatter parameters. action=comparecan now handle arbitrary text, deleted revisions, and returning users and edit comments.- (T164106) The '
rvdifftotext', 'rvdifftotextpst', 'rvdiffto', 'rvexpandtemplates', 'rvgeneratexml', 'rvparse', and 'rvprop=parsetree' parameters toprop=revisionsare deprecated, as are the similarly named parameters toprop=deletedrevisions,list=allrevisions, andlist=alldeletedrevisions. Useaction=compare,action=parse, oraction=expandtemplatesinstead.
Action API内部更新
ApiBase::getDescriptionMessage()和“apihelp-*-description”消息已弃用。现有消息应在“apihelp-*-summary”和“apihelp-*-extended-description”之间拆分。- (T123931) Individual values of multi-valued parameters can now be marked as deprecated.
语言更新
- 已添加kbp(卡比耶语)支持。
其他更新
- The use of an associative array for
$wgProxyList, where the IP address is in the key instead of the value, is deprecated (e.g.[ '127.0.0.1' => 'value' ]). Please convert these arrays to indexed/sequential ones (e.g.[ '127.0.0.1' ]). mw.user.bucket(deprecated in 1.23) was removed.LoadBalancer::getServerInfo()andLoadBalancer::setServerInfo()are deprecated. There are no known callers.File::getStreamHeaders()was deprecated.MediaHandler::getStreamHeaders()was deprecated.Title::canTalk()was deprecated. The newTitle::canHaveTalkPage()should be used instead.MWNamespace::canTalk()was deprecated. The newMWNamespace::hasTalkNamespace()should be used instead.- The
ExtractThumbParametershook (deprecated in 1.21) was removed. - The
OutputPage::addParserOutputNoTextand::getHeadLinksmethods (both deprecated in 1.24) were removed. wfMemcKey()andwfGlobalCacheKey()were deprecated.BagOStuff::makeKey()andBagOStuff::makeGlobalKey()should be used instead.- (T146304) Preprocessor handling of LanguageConverter markup has been improved. As a result of the new uniform handling, '
-{' may need to be escaped (for example, as '-<nowiki/>{') where it occurs inside template arguments or wikilinks. - (T163966) Page moves are now counted as edits for the purposes of autopromotion, i.e., they increment the
user_editcountfield in the database. - Two new hooks,
LogEventsListLineEndingandNewPagesLineEnding, were added for manipulating Special:Log and Special:NewPages lines. - The
OldChangesListRecentChangesLine,EnhancedChangesListModifyLineData,PageHistoryLineEnding,ContributionsLineEndingandDeletedContributionsLineEndinghooks have an additional parameter, for manipulating HTML data attributes of RC/history lines.EnhancedChangesListModifyBlockLineDatacan do that via the$data['attribs']subarray. - (T130632) The
OutputPage::enableTOC()method was removed. WikiPage::getParserOutput()will now throw an exception if passed ParserOptions that would pollute the parser cache. Callers should useWikiPage::makeParserOptions()to create theParserOptionsobject and only change options that affect the parser cache key.Article::viewRedirect()已弃用。DeprecatedGlobalno longer supports passing in a direct value, it requires a callable factory function or a class name.- The
$parserMemcglobal,wfGetParserCacheStorage(), andParserCache::singleton()are all deprecated. The mainParserCacheinstance should be obtained fromMediaWikiServicesinstead. Access to the underlyingBagOStuffis possible through the newParserCache::getCacheStorage()method. .mw-ui-constructiveCSS class (deprecated in 1.27) was removed.
子页面
- MediaWiki 1.30/RC0 Announcement
- MediaWiki 1.30/Roadmap
- MediaWiki 1.30/wmf.1
- MediaWiki 1.30/wmf.1/Changelog
- MediaWiki 1.30/wmf.10
- MediaWiki 1.30/wmf.10/Changelog
- MediaWiki 1.30/wmf.11
- MediaWiki 1.30/wmf.11/Changelog
- MediaWiki 1.30/wmf.12
- MediaWiki 1.30/wmf.12/Changelog
- MediaWiki 1.30/wmf.13
- MediaWiki 1.30/wmf.13/Changelog
- MediaWiki 1.30/wmf.14
- MediaWiki 1.30/wmf.14/Changelog
- MediaWiki 1.30/wmf.15
- MediaWiki 1.30/wmf.15/Changelog
- MediaWiki 1.30/wmf.16
- MediaWiki 1.30/wmf.16/Changelog
- MediaWiki 1.30/wmf.17
- MediaWiki 1.30/wmf.17/Changelog
- MediaWiki 1.30/wmf.18
- MediaWiki 1.30/wmf.18/Changelog
- MediaWiki 1.30/wmf.19
- MediaWiki 1.30/wmf.19/Changelog
- MediaWiki 1.30/wmf.2
- MediaWiki 1.30/wmf.2/Changelog
- MediaWiki 1.30/wmf.3
- MediaWiki 1.30/wmf.4
- MediaWiki 1.30/wmf.4/Changelog
- MediaWiki 1.30/wmf.5
- MediaWiki 1.30/wmf.5/Changelog
- MediaWiki 1.30/wmf.6
- MediaWiki 1.30/wmf.6/Changelog
- MediaWiki 1.30/wmf.7
- MediaWiki 1.30/wmf.7/Changelog
- MediaWiki 1.30/wmf.8
- MediaWiki 1.30/wmf.9
- MediaWiki 1.30/wmf.9/Changelog