mediawiki 的使用 2
2024-08-26 11:29:27
要想外部电脑能访问你的网站,网站部署好后,在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';
最新文章
- Skyfree退休公告
- --查询nvarchar(max)的表和字段
- 获取MS SQL TABLE列名列表
- Chrome Crx 插件下载
- jQuery Easy UI 开发笔记
- C#调用百度云存储接口上传文件
- C#关于AutoResetEvent的使用介绍(用AutoResetEvent实现同步)
- 中美HTML5市场发展的简单对比
- POJ 2593 Max Sequence
- Selenium2 (python)
- 让程序跳转到绝对地址0x100000去执行
- 09_组件三大属性(3)_refs和事件处理
- .netcore-FreeSql的使用-搭建context
- 洛谷 P2224 [HNOI2001]产品加工 解题报告
- WCF 客户端调用服务操作的两种方法
- bzoj1084&;&;洛谷2331[SCOI2005]最大子矩阵
- MVC使用StructureMap实现依赖注入Dependency Injection
- STM32 SPI接口的NSS引脚
- Python里seed()函数
- 《effective c++》读书笔记(上)