Jump to content

Extension:GlobalUserPage/zh

From mediawiki.org
This page is a translated version of the page Extension:GlobalUserPage and the translation is 25% complete.
MediaWiki扩展手册
GlobalUserPage
发行状态: 稳定版
实现 用户界面
描述 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.42+
PHP 5.5.9+
许可协议 GNU通用公眾授權條款3.0或更新版本
下載
帮助 Help:Extension:GlobalUserPage/zh
示例 ShoutWiki
  • $wgGlobalUserPageAPIUrl
  • $wgGlobalUserPageTimeout
  • $wgGlobalUserPageDBname
  • $wgGlobalUserPageFooterKey
  • $wgGlobalUserPageCacheExpiry
季度下載量 25 (Ranked 115th)
正在使用的公开wiki数 2,011 (Ranked 198th)
前往translatewiki.net翻譯GlobalUserPage扩展
問題 开启的任务 · 报告错误

GlobalUserPage

2020 Coolest Tool
Award Winner

in the category
Reusable


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' );
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

配置

  • $wgGlobalUserPageAPIUrl - the URL to the central wiki's api.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 is 60 * 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 $wgHTTPTimeout set this to the string "default".