Rozszerzenie:CustomLogs
Appearance
Status wydania: stabilne |
|
|---|---|
| Opis | Allows the user to add custom log types by editing LocalSettings.php and the MediaWiki namespace |
| Autor(zy) | Megan Cutrofello (RheingoldRiverdyskusja) |
| Ostatnia wersja | 1.1.1 (2023-04-21) |
| MediaWiki | 1.25+ |
| Zmiany w bazie danych | Nie |
| Licencja | Licencja GNU General Public License 2.0 lub nowsza |
| Pobieranie | GitHub:
Uwaga: readme |
|
|
|
|
|
Instalacja
- Pobierz i umieść plik(i) w katalogu o nazwie
CustomLogsw folderzeextensions/.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CustomLogs
- Dodaj poniższy kod na dole twojego pliku LocalSettings.php:
wfLoadExtension( 'CustomLogs' );
Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
Parametry konfiguracyjne
$wgCustomLogsLogs - A list of the log types to add to the wiki. Na przykład:
$wgCustomLogsLogs = ["ro-news","ro-tournament"]
$wgCustomLogsMaxCustomParams - The maximum number of custom params you will be allowed to specify when writing a custom log. Domyślna to 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- whether or not to publish in recent changescustom1- etc as many as specified by$wgCustomLogsLogs
| To rozszerzenie jest dołączone do następujących farm/hostów wiki lub pakietów: |
