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:





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';

 



 

posted @ 2016-09-17 23:26  微信公众号--共鸣圈  阅读(239)  评论(0)    收藏  举报