mediawiki 的使用 2
要想外部电脑能访问你的网站,网站部署好后,在LocalSettings.php 里将这句 $wgServer = "http://localhost"; 改成 $wgServer = "http://your_domain";
要想显示某个链接的Special:SpecialPages的地址,可以先将 LocalSettings.php 里的 $wgLanguageCode 改成:
$wgLanguageCode = "en";
这时,鼠标悬停在某个Special page 的地方,会提示英文的地址。如最近修改的条目显示在首页可以这样:
在首页里直接加入:
{{Special:RecentChanges}}
或设置显示的条数:
{{Special:RecentChanges/5}}
若要想使用更多的Special page:
Go to Special:SpecialPages of a given wiki, and check if it has Special:PopularPages; example:
- http://en.wikipedia.org/wiki/Special:SpecialPages - doesn't have it
- http://www.alsa-project.org/main/index.php/Special:SpecialPages - has it
If you want to have your wiki in a certain language and not allow users to change this setting, there is a new variable in 1.16 and above, $wgHiddenPrefs:
// disable language selection $wgHiddenPrefs[] = 'language'; // if you want to disable variants as well $wgHiddenPrefs[] = 'variant'; $wgHiddenPrefs[] = 'noconvertlink'; $wgLanguageCode = 'pt-br';
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
支付宝扫一扫捐赠
支付宝扫一扫捐赠
微信公众号: 共鸣圈
欢迎讨论,邮件: 924948$qq.com 请把$改成@
QQ群:263132197
QQ: 924948
浙公网安备 33010602011771号