如何启用扩展
跳到导航
跳到搜索
- 以启用Math扩展为例,主要参考 [1]
- (1)下载Math的扩展到[2] extension目录下
- (2)更改Localsettings.php,增加一行
require_once "$IP/extensions/Math/Math.php";
- (3)更新wiki程序,在mantiance目录下执行,或者执行http
- //example.org/w/mw-config/
$ php update.php
- (4)选择一个math的生成方法,以MathJax为例
在localsettings.php里增加
mediawiki版本(1.19 - 1.22)
$wgUseMathJax = true; // enabeling MathJax as rendering option $wgDefaultUserOptions['math'] = MW_MATH_MATHJAX; // setting MathJax as default rendering option (optional) /** * The default parser for MathJax is 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML' * If you don't want to or can't use the default and your run your own locally * replace the below url with something like: * $wgMathJaxUrl = '/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML';
- /
mediawiki版本(1.23+)
- Settings (Math 1.2 // MW 1.23+)
$wgUseMathJax = true; // enabeling MathJax as rendering option $wgDefaultUserOptions['mathJax'] = true; // setting MathJax as default rendering option (optional) $wgMathDisableTexFilter = true; // or compile "texvccheck"