MediaWiki 1.35/zh

MediaWiki 1.35是MediaWiki最新的穩定长期支持发行版本. 参阅文件获取完整更新列表. 自2019年10月1日起，通过增量更新的""-分支部署在维基基金会管理的wiki上. 该1.35.0的稳定版本已于2020年9月25日发行. 下载或者使用git更新 分支来获得此版本. 它將在2023年9月停止支持.



新功能

 * 特殊頁面 Special:EditPage、Special:PageHistory、Special:PageInfo和Special:Purge 已被建立作為捷徑. Special:EditPage/Foo 重定向到 title=foo&action=edit，PageHistory、PageInfo 和 Purge 分别对应 &action=history、info 和 purge.  当链接到时，其子页面将用作目标.  否则，它会显示一个基本界面以允许最终用户手动指定目标（请参阅）.
 * 在“?action=watch”的表格現在使用新版下拉列表以支持選擇觀察列表項目的過期時間（如果是 ）.



新增的附带-{zh-hans:扩展;zh-hant:擴充功能;}-
MediaWiki 1.35附帶擴展，其能提供可視化編輯系統作為傳統源代碼編輯器的第二選擇. 因為其已經被構建入MediaWiki核心，故此不需要建立一個單獨的Parsoid實例.

另外，和也已附帶進MediaWiki. 它們將在你的wiki上強制啟用https链接，並建立一個標籤和接口以允許編者指定模板如何被引用. 前者会强制在wiki中添加链接；后者会添加和以允许编辑人员指定如何调用模板.



Action API 变化

 * 的 参数已被弃用. 无论有没有此参数，API 的行为都是相同的.  之前会在设置为时，会部分禁用API.  具体来说，它将拒绝携带此参数的内部前端请求，而接受其他请求.
 * Integer-type parameters are now validated for syntax rather than being interpreted in surprising ways. For example, the following will now return a badinteger error:
 * "1.9" - 以前解释为"1"
 * " 1" - 以前解释为"1"
 * "1e1" - 以前解释为"1"或"10"，具体取决于 PHP 版本
 * "1foobar" - 以前解释为"1"
 * "foobar" （以前解释为"0"） Ranges should be assumed to be enforced.
 * Many user-type parameters now accept a user ID, formatted like "#12345".
 * The  parameter used by all API modules now supports the value  . When specified, the API will return the 'assertanonfailed' error if the user is logged in.
 * action=edit now supports the 'baserevid' parameter for edit conflict detection, as an alternative to 'basetimestamp'. Note that self-conflicts will continue to be ignored if 'basetimestamp' is set, but not if only 'baserevid' is set.
 * A new module was added to change the content model of existing pages. Use action=changecontentmodel. Unlike Special:ChangeContentModel, the API module does not work for pages that do not already exist.
 * If is, the following API changes are made:
 * action=watch accepts a new 'expiry' parameter analagous to the expiry accepted by action=userrights, action=block, etc., except it must be no greater than, or an infinity value.
 * action=query&list=watchlistraw returns pages' watchlist expiry dates.
 * action=login will now return Failed rather than NeedToken on session loss.



Action API 变化

 * The Action API now uses the Wikimedia\ParamValidator library for parameter validation, which brings some new features and changes. For the most part existing module code should work as it did before, but see subsequent notes for changes.
 * The values for all ApiBase PARAM_* constants have changed. Code should have been using the constants rather than hard-coding the values.
 * Several ApiBase PARAM_* constants have been deprecated, see the in-class documentation for details. Use the equivalent ParamValidator constants instead.
 * The value returned for 'upload'-type parameters has changed from WebRequestUpload to Psr\Http\Message\UploadedFileInterface.
 * Validation of 'user'-type parameters is more flexible. PARAM constants exist to specify the type of "user" allowed and to request UserIdentity objects rather than name strings. The default is to accept all types (name, IP, range, and interwiki) that were formerly accepted.
 * Maximum limits are no longer ignored in "internal mode".
 * The $paramName to should now include the prefix.
 * meta=siteinfo&siprop=interwikimap no longer reports language or extralanglink when is false.