Extension:AuthorProtect

From mediawiki.org
This page is a translated version of the page Extension:AuthorProtect and the translation is 36% 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
Quarterly downloads 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 リリースと関連付けられています。 最新のアルファ バージョンを含む「master」ブランチもあります (MediaWiki のアルファ バージョンが必要な場合用)。

スナップショットを展開して、MediaWiki インストレーション内の extensions/AuthorProtect/ ディレクトリに配置します。

git に馴染みがあり、かつサーバーにシェルでアクセスできる場合は、拡張機能を以下のようにして取得することもできます:

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

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のAuthorProtectという名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'AuthorProtect' );
    
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

関連項目