Extension:CustomLogs/ja
![]() リリースの状態: 安定Category:Stable extensions/ja |
|
---|---|
説明 | Allows the user to add custom log types by editing LocalSettings.php and the MediaWiki namespace |
作者 | Megan Cutrofello (RheingoldRiverトーク) |
最新バージョン | 1.1.1 (2023-04-21) |
MediaWiki | 1.25+Category:Extensions with manual MediaWiki version/ja |
データベースの変更 | いいえ |
ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
ダウンロード | Category:Extensions in GitHub version control/ja readme |
|
|
|
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のCustomLogs
という名前のディレクトリ内に配置します。
開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CustomLogs
- 以下のコードを LocalSettings.php ファイルの末尾に追加します:
wfLoadExtension( 'CustomLogs' );
完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
構成パラメーター
$wgCustomLogsLogs - A list of the log types to add to the wiki. For example:
$wgCustomLogsLogs = ["ro-news","ro-tournament"]
$wgCustomLogsMaxCustomParams - The maximum number of custom params you will be allowed to specify when writing a custom log. Default is 3.
Writing logs
This is governed by the user right writecustomlogs
.
By default all logged-in users have this right, but you can configure it like any user right.
The API action is customlogswrite
.
Parameters include:
logtype
- the type of log, as specified inwgCustomLogsLogs
title
- the title of the page associated with the action (cannot be used withpageid
)pageid
- the pageid of the page associated with the action (cannot be used withtitle
)summary
- a text summary, which may have custom parameters substituted into it. Custom parameters are sent to the summary in order beginning with$4
. See the readme on GitHub for additional documentation. If blank, the default summary for the log will be used.tags
- a list of tags (these must actually exist on the wiki)publish
- whether or not to publish in recent changescustom1
- etc as many as specified by$wgCustomLogsLogs
![]() | この拡張機能は以下のウィキ ファーム/ウィキ ホスト/パッケージに含まれています: これは正式な一覧ではありません。 一部のウィキ ファーム/ウィキ ホスト/パッケージは、ここに記載されていなくてもこの拡張機能を含んでいる場合があります。 必ずご利用のウィキ ファーム、ウィキ ホスト、バンドルで確認してください。 |