Extension:ChangeAuthor
![]() リリースの状態: 安定 |
|
---|---|
実装 | 特別ページ |
説明 | Allows for changing the author of a revision. |
作者 | Roan Kattouw |
メンテナー | WikiTeq team |
最新バージョン | 1.3.0 (2022-01-07) |
互換性の方針 | 長期間サポート リリースであるすべての MediaWiki リリースについて、拡張機能に対応するブランチが存在します。 |
MediaWiki | 1.35, 1.39 |
ライセンス | GNU 一般公衆利用許諾書 3.0 以降 |
ダウンロード | |
changeauthor |
|
四半期ごとのダウンロード数 | 4 (Ranked 136th) |
translatewiki.net で翻訳を利用できる場合は、ChangeAuthor 拡張機能の翻訳にご協力ください | |
問題点 | 未解決のタスク · バグを報告 |
ChangeAuthor is an extension that allows for changing the author of a revision, e.g. an edit made by Alice can be changed to look like it was made by Bob instead. Of course, only privileged users can do this, and all changes are logged.
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のChangeAuthor
という名前のディレクトリ内に配置します。
開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ChangeAuthor - 以下のコードを LocalSettings.php ファイルの末尾に追加します:
wfLoadExtension( 'ChangeAuthor' );
- 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
権限
You will probably not want to allow every user to use this extension. To control who can and who can't use ChangeAuthor, two approaches can be used:
Using existing groups
Add any of the following lines to LocalSettings.php to allow existing groups of users to use ChangeAuthor:
$wgGroupPermissions['sysop']['changeauthor'] = true; // Only sysops can use ChangeAuthor. This is the recommended setup
$wgGroupPermissions['bureaucrat']['changeauthor'] = true; // Only bureaucrats can use ChangeAuthor
If you have created any custom groups in LocalSettings.php, you can allow these groups to use ChangeAuthor by adding
$wgGroupPermissions['groupname']['changeauthor'] = true;
to LocalSettings.php (replace 'groupname' with the name of your custom group).
NOTE: If a user is in multiple groups, they will be able to use ChangeAuthor even if that's allowed for only one of those groups. E.g.: if group A can't use ChangeAuthor but group B can, a user in both group A and B will be allowed to use ChangeAuthor.
Creating a new group
You can also create a separate group for users who can use ChangeAuthor. To do this, add the following line to LocalSettings.php:
$wgGroupPermissions['changeauthor']['changeauthor'] = true;
This creates a new group named 'changeauthor'. Only users in that group can use ChangeAuthor. You can add users to the changeauthor group using the Special:Userrights special page.
Use
You can change a revision's author using the Special:ChangeAuthor special page. First, enter the name of a page in the input box and click the "Go" button. You will now see a list of the last 50 revisions of the target page. Note that all usernames are in textboxes. To change the author of a revision, simply change the username in the associated textbox. Add a comment in the comment textbox (optional), click the "Change author(s)" button and you're done. If the revision whose author you want to change isn't among the 50 latest, you need to access it by its revision ID. You can find out a revision's ID by looking it up in the page history and click the link stating the date and time the revision was made. In your address bar, you will now see a URL that ends in:
index.php?title=Pagename&oldid=12345
Here, 12345 is the revision ID. You can now enter the revision ID (12345) in Special:ChangeAuthor's input box and follow the normal procedure. As a shortcut, you can also go to Special:ChangeAuthor/Main_Page or Special:ChangeAuthor/12345 and bypass the input box altogether. NOTE: In the event you have both a page called 12345 and a revision ID 12345, you will need to access the page using :12345 (i.e. prepend a colon).
Logs
A log of all author changes is maintained at Special:Log/changeauth. All author changes also appear in recent changes.
Licensing and downloads
The extension is available under the GNU General Public License version 3 or later, and can be downloaded from Git.
The software is provided as-is. Updates will be made where critical vulnerabilities are discovered.
Translating ChangeAuthor
If ChangeAuthor hasn't been translated to your language (completely), feel free to help out. Visit translatewiki.net for more information.
Contact
ChangeAuthor is currently maintained by WikiTeq. If you have any questions, complaints, feature requests, found a bug, or any other reason, use the discussion page.