Compatibility/zh

MediaWiki致力于在包括当前版本和旧版本之间保持广泛的兼容性. 与此同时，不断发展的代码库以及最新MediaWiki开发的功能意味着无法无限期地保持与旧版软件的兼容性.

服务器软件
本节概述了运行MediaWiki的服务器所需的软件.

PHP
最后的MediaWiki稳定分支版本（）可在PHP 到PHP 7.3之间的任意版本运行. MediaWiki 1.34将要求PHP 7.2或更高版本. MediaWiki 1.31和更高的版本兼容于PHP 7.3.

数据库
MediaWiki兼容不同种类的数据库服务器. 建议使用MySQL或MariaDB.

不建議使用任何其他數據庫軟件進行生產使用. 支持不同於MediaWiki版本和MediaWiki版本，範圍從可疑到穩定. MediaWiki為PostgreSQL和SQLite提供了數據庫抽象層，這些層通常保持良好.

Web服务器
MediaWiki與所有可以調用兼容版本的PHP的主要Web服務器廣泛兼容. Apache是最经常使用且测试过的. Nginx也是不錯的選擇.

MediaWiki扩展
As long as an extension is properly maintained (which you can see at the top of the infobox on its description page), the master branch of the extension should be compatible with the master branch of MediaWiki. For determining compatibility with older MediaWiki versions, there are two common policies used by extensions:


 * master (key: master): the master branch of the extension is compatible with both current and older versions of MediaWiki. Back-compatibility hacks are added to the extension source code as needed.
 * release branches (key: rel): For every MediaWiki release, there is a corresponding branch in the extension. So e.g. if you use MediaWiki, you should use the branch of the extension.

The  field of the Extension infobox tells which policy is used by a given extension. Use the respective keys indicated above to specify the information.

Some extensions may have more specific compatibility policies, for instance:
 * MediaWiki Language Extension Bundle

General information
There is an ever-growing number of different web browsers in the world.

Too many to actively test and support each one. To guide our practices around browser support, we have three levels of support. Each tier represents a different category of browsers.

Modern (Grade A)
This group (also known as Grade A) represents the highest level of support. Features take advantage of capabilities in modern browsers, while allowing a graceful fallback for older browsers. All features provided by the software (whether or not in a degraded form) must work in these browsers.

Browsers in this category are known (listed below) and actively tested against. Problems users perceive in these browsers are addressed with high priority.

Basic (Grade C)
The group (also known as Grade C) is provided the core functionality of the MediaWiki platform. Our HTTP responses are compatible with these browsers (e.g. HTTP features we rely on, character encoding, and image formats used by the content; must work in these browsers). In the front-end this means content is presented in a readable manner, and to some extent user actions can be performed, but these browsers do not get JavaScript features.

Browsers in this category are known (listed below) and identified via a feature test suite and a blacklist in the startup module.

Unknown (Grade X)
This group (also known as Grade X) represents all other browsers. This includes browsers that are no longer developed or browsers not popular enough to justify the added maintenance cost for software development.

Browsers not included in any other group belong to this category.

Problems users perceive in these browsers only are given low priority.

MediaWiki handles these browsers the same as Modern (Grade A) browsers and they are thus assumed to be capable. This principle provides various important benefits:
 * New versions of modern browsers may temporarily be considered Unknown if they are not yet tested against by us. Treating Unknown browsers as capable ensures optimal user experience in these browsers.
 * Users of new and evolving browsers are given a chance to have a modern experience.
 * Users of less popular browsers based on, or derived from, known modern browsers are not negatively impacted (e.g. Iceweasel).

In practice the only difference between Unknown and Modern browsers is that we don't actively test against Unknown browsers.

These browsers are given the full feature set. However, no JavaScript support is provided if basic JavaScript functionality required for modern run-time is unavailable.

Desktop
(Last updated: October 2019)

While the principles and different grades described above apply to MediaWiki core and extensions alike, the below browser support matrix applies to MediaWiki core only (and extensions that decide to follow it). Individual extensions may have their own support matrix distributing browsers among the different levels of support. See also analytics user agent breakdown dashboard for desktop.

Mobile
(Last updated: March 2017)

The Web team at the Wikimedia Foundation uses a different support matrix for mobile-specific skins e.g. Minerva skin and/or extensions designed to run on mobile devices e.g. MobileFrontend. The support matrix is compiled from the data provided by the analytics user agent breakdown dashboard. Where browser usage is over 5% a modern experience is supported. Basic support is provided for anything over 0.1% over the 12 months. In mobile we strive to provide a Grade B. Users of grade B may or may not get JavaScript and we do not test to the same level as A, thus we prioritize bug fixes lower.