Manual:$wgVersion/zh

详情
目前的MediaWiki版本（例如）. 您不应该有任何更改此选项的想法；它用于内部用途.

示例代码
If you're implementing a new feature that only works in MediaWiki 1.19 or later, but you want to maintain backwards compatibility, you could use a test such as the following:

However, it is typically recommended that you use feature detection to see whether the method or class you wish to use is available instead of depending upon raw version strings.

参见

 * Special:Version – view the version number of a MediaWiki installation (plus much more information) from the web interface
 * 升级