Extension:GlobalUserPage/zh
发行状态: 稳定版 |
|
|---|---|
| 实现 | 用户界面 |
| 描述 | Enables global (shared between wikis) user pages on a wiki farm. |
| 作者 | Jack Phoenix, Kunal Mehta |
| 最新版本 | 0.11.1 (2017-09-18) |
| 兼容性政策 | 快照跟随MediaWiki发布。 master分支不向后兼容。 |
| MediaWiki | 1.44+ |
| PHP | 5.5.9+ |
| 许可协议 | GNU通用公眾授權條款3.0或更新版本 |
| 下載 | |
| 帮助 | Help:Extension:GlobalUserPage/zh |
| 示例 | ShoutWiki |
|
|
| 前往translatewiki.net翻譯GlobalUserPage扩展 | |
| 問題 | 开启的任务 · 报告错误 |
The GlobalUserPage extension enables global (shared between wikis) user pages on a wiki farm.
This extension was developed by Jack Phoenix for ShoutWiki, originally based on the Extension:HelpPages by Kunal Mehta (the extensions no longer share any code).
文档
请参阅Help:扩展:全域用户页。
Caveats
Using this extension comes with a few security risks. You must absolutely trust the central wiki and its admins, as they can easily insert raw HTML into your wiki, opening up XSS holes and other bad things.
安裝
- 下载文件,并解压
GlobalUserPage文件夹到extensions/目录中。
开发者和代码贡献人员应改从Git安装此扩展,输入:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/GlobalUserPage
- 請新增下列代码到您的LocalSettings.php文件的底部:
wfLoadExtension( 'GlobalUserPage' );
- 完成 – 請导航至您的wiki上的Special:Version,以验证此扩展已成功安装。
配置
$wgGlobalUserPageAPIUrl- the URL to the central wiki'sapi.php. This URL is internally used to fetch the global user page's text.$wgGlobalUserPageCacheExpiry- controls how long to cache the rendered HTML for. The default is60 * 60 * 24 * 7(one week). The HTML is usually invalidated upon editing, but this is a worst case fallback.$wgGlobalUserPageDBname- the name of the database where global user page data is stored, i.e. usually this should be set to the same value as$wgSharedDB.$wgGlobalUserPageFooterKey- message key to add as a footer to the bottom of global user pages, or false if no footer should be added.$wgGlobalUserPageTimeout- Timeout for internal API requests, to use$wgHTTPTimeoutset this to the string "default".
| 此扩展用于一个或多个维基媒体项目。 这可能意味着扩展足够稳定、运作足够良好,可以用在这样的高流量的网站上。 请在维基媒体的CommonSettings.php和InitialiseSettings.php配置文件中查找此扩展的名称以查看哪些网站安装了该扩展。 特定wiki上的已安装的扩展的完整列表位于Special:Version页面。 |
| 此扩展在以下wiki农场/托管网站和/或软件包中提供: 這不是一份權威名單。 即使某些wiki农场/托管网站和/或软件包未在这里列出,它们也可能提供此扩展。 请检查你的wiki农场/托管网站或软件包以确认提供情况。 |
