Extension:LockAuthor/ja
From Linux Web Expert
<translate> This extension is professionally maintained by the WikiTeq team.</translate>
<translate> WikiTeq provides official support for [[<tvar name=1>Special:MyLanguage/Version lifecycle</tvar>|MediaWiki LTS releases only]].</translate> <translate> It may work with other MediaWiki releases.</translate>
LockAuthor リリースの状態: 安定 |
|
---|---|
実装 | 利用者権限 |
説明 | Prevents users from editing pages they haven't created |
作者 | Vedmakatalk |
メンテナー | WikiTeq team |
互換性の方針 | 長期間サポート リリースであるすべての MediaWiki リリースについて、拡張機能に対応するブランチが存在します。 |
MediaWiki | 1.35, 1.39 |
PHP | 7.1+ |
ライセンス | ライセンス未指定 |
ダウンロード | README |
editall |
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
translatewiki.net で翻訳を利用できる場合は、LockAuthor 拡張機能の翻訳にご協力ください | |
問題点 | 未解決のタスク · バグを報告 |
LockAuthor is a MediaWiki extension that prevents users from editing pages they have not created.
It does not itself allow users to edit pages that they have created; for that, you will have to make sure the standard "edit" right is correctly set.
This extension is a drop-in replacement for the EditOwn extension, which was archived in 2018.
This extension was created for WikiWorks.
インストール
- <translate> [[<tvar name=2>Special:ExtensionDistributor/LockAuthor/ja</tvar>|Download]] and move the extracted <tvar name=name>
LockAuthor/ja
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LockAuthor%2Fja - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'LockAuthor/ja' );
- 必要に応じて設定します
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
設定
$wgLockAuthorExcludedNamespaces
- array of namespaces to be excluded from checks$wgLockAuthorActions
- array of actions to be checked (既定値:[ 'edit', 'create' ]
)
権限:
editall
- grant this right to a group to allow bypassing extension's restrictions
セットアップ例
# Prevent anonymous editing
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
# Allow regular users to edit pages
$wgGroupPermissions['user']['edit'] = true;
$wgGroupPermissions['user']['createpage'] = true;
wfLoadExtension( 'LockAuthor' );
// LockAuthor will limit users edit right only to pages created by them
# Allow sysop to edit all pages
$wgGroupPermissions['sysop']['editall'] = true;
関連項目
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
Categories:
- Pages with script errors
- Pages with broken file links
- Extensions by WikiTeq/ja
- Stable extensions/ja
- User rights extensions/ja
- Extensions with manual MediaWiki version
- Extensions with no license specified/ja
- Extensions in Wikimedia version control/ja
- Extensions which add rights/ja
- All extensions/ja
- Extensions not in ExtensionJson