Extension:AuthorProtect/zh

This page is a translated version of the page Extension:AuthorProtect and the translation is 27% complete.
MediaWiki扩展手册
AuthorProtect
发行状态: 穩定版
实现 用户权限 , 页面操作
描述 Allows the author of a page to protect it from other users
作者 Ryan Schmidt (Skizzerz讨论)
最新版本 1.4.0 (2017-11-25)
MediaWiki 1.29+
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
  • $wgRestrictionLevels
季度下載量 14 (Ranked 146th)
前往translatewiki.net翻譯AuthorProtect扩展

The AuthorProtect extension allows page authors to protect pages from non-authors on a page-by-page basis. Authors with the 'authorprotect' permission will gain a protect tab on pages that gives them (author) access to this interface. Because logs and anonymous users don't mix very well (as with the fact that all anonymous users share the same user id), anonymous users are unable to use this extension regardless of if they have the 'authorprotect' right or not.

Do not assign the author right via GroupPermissions (except to those who you want to be able to edit author-protected pages)! This right is automatically assigned to the author of the page. Assigning this right via $wgGroupPermissions gives that group the ability to edit all author-protected pages, regardless of if they are the author of the page or not (by default user group administrators have this right).

下載

此扩展可直接从Git检索到 [?]:

  • 浏览代码
  • 部分扩展有稳定版本标签。
  • 每个分支与过去的MediaWiki发布版本相关联。 这里也有一个“主线”分支,包含最新alpha版本(可能需要MediaWiki的alpha版本)。

提取快照,并将它放置在您的MediaWiki安装副本的extensions/AuthorProtect/目录中。

如果您对git熟悉,并且拥有您服务器的shell访问权,您也可以通过以下方法获得扩展:

cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AuthorProtect.git

安裝

  • 下载文件,并将其放置在您extensions/文件夹中的AuthorProtect目录内。
  • 将下列代码放置在您的LocalSettings.php 的底部:
    wfLoadExtension( 'AuthorProtect' );
    
  •   完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

參見