Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rheingoldriver/customlogs
MediaWiki extension that allows users to create custom log types by editing LocalSettings and pages in the MediaWiki namespace
https://github.com/rheingoldriver/customlogs
Last synced: 7 days ago
JSON representation
MediaWiki extension that allows users to create custom log types by editing LocalSettings and pages in the MediaWiki namespace
- Host: GitHub
- URL: https://github.com/rheingoldriver/customlogs
- Owner: RheingoldRiver
- License: gpl-2.0
- Created: 2019-04-09T08:51:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-22T01:22:49.000Z (over 1 year ago)
- Last Synced: 2024-10-08T22:21:41.444Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 25.4 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Usage
## Creating Custom Logs
* Set $wgCustomLogsLogs in localsettings as a list of log names/keys.
* For this example we'll say you want to create a log named "kittens"
* Create the page MediaWiki:Log-name-kittens with the name of the log, for example "Kitten Log"
* Create the page MediaWiki:Logentry-kittens-kittens with the display text for the log
* You may specify parameters $1, $2, etc
* $1 is User (with markup)
* $2 is User
* $3 is Page
* $4 etc may be specified by you, the limit is given by $wgCustomLogsMaxCustomParams (default 3, so $4 through $6)
## Writing Custom Logs
* This can be done via the api action customlogswrite
* Ability to write custom logs is governed by the right writecustomlogs, default available to anyone
* For different logs, parameters custom1, custom2, etc may have different meanings, but this numbering system was chosen to avoid retaining deprecated API parameters for logs that are no longer in use
* Can decide to publish the log in recent changes or not# Development
Planned is eventually to have an interface similar to Tags where you can add and remove logs, and stop using MediaWiki namespace for things; this would also allow for a right for creating and removing logs separate from sysop. However the extension is functional as-is so that's not high priority currently.