Extension:CustomLogs/ru
Appearance
Статус релиза: стабильно |
|
|---|---|
| Описание | 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+ |
| Изменения в БД | Нет |
| Лицензия | GNU General Public License 2.0 или позднее |
| Скачать | GitHub: Note: readme |
|
|
|
|
|
Установка
- Скачайте и распакуйте файл(ы) в папку с названием
CustomLogsв вашей папкеextensions/.
Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CustomLogs
- Добавьте следующий код в конце вашего файла LocalSettings.php:
wfLoadExtension( 'CustomLogs' );
Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.
Параметры конфигурации
$wgCustomLogsLogs - Список типов журналов, добавляемых в вики. Например:
$wgCustomLogsLogs = ["ro-news","ro-tournament"]
$wgCustomLogsMaxCustomParams - The maximum number of custom params you will be allowed to specify when writing a custom log. По умолчанию 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 inwgCustomLogsLogstitle- 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- опубликовывать ли в свежих правкахcustom1- etc as many as specified by$wgCustomLogsLogs
| Это расширение включено в следующие вики-фермы/хостинги и/или пакеты: Это не исчерпывающий список. Некоторые вики-фермы/хостинги и/или пакеты могут содержать это расширение, даже если они не перечислены здесь. Всегда сверяйтесь со своими вики-фермами/хостингами или комплектами/бандлами для подтверждения. |
