Extension:GlobalUserPage/zh

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:GlobalUserPage and the translation is 25% complete.
Other languages:
English • ‎Türkçe • ‎français • ‎čeština • ‎中文 • ‎日本語 • ‎한국어
MediaWiki扩展手册
OOjs UI icon advanced.svg
GlobalUserPage
发布状态: 稳定版
实现 用户界面
描述 Enables global (shared between wikis) user pages on a wiki farm.
作者 Jack Phoenix, Kunal Mehta
最新版本 0.11.1 (2017-09-18)
MediaWiki 1.34+
PHP 5.5.9+
许可协议 GNU通用公眾授權條款3.0或更新版本
下载
例子 ShoutWiki
  • $wgGlobalUserPageAPIUrl
  • $wgGlobalUserPageTimeout
  • $wgGlobalUserPageDBname
  • $wgGlobalUserPageFooterKey
  • $wgGlobalUserPageCacheExpiry
翻译GlobalUserPage扩展如果在translatewiki.net可用
检查使用和版本矩阵。
问题 开放的工作 · 报告错误

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.

安装

  • 下载文件,并将其放置在您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".