Extension:CustomLogs/de

Category:Extensions with invalid or missing type/deCategory:GPL licensed extensions/de
MediaWiki-Erweiterungen
CustomLogs
Freigabestatus: stabilCategory:Stable extensions/de
Beschreibung Allows the user to add custom log types by editing LocalSettings.php and the MediaWiki namespace
Autor(en) Megan Cutrofello (RheingoldRiverDiskussion)
Letzte Version 1.1.1 (2023-04-21)
MediaWiki 1.25+Category:Extensions with manual MediaWiki version/de
Datenbankänderungen Nein
Lizenz GNU General Public License 2.0 oder neuer
Herunterladen Category:Extensions in GitHub version control/de
readme
  • $wgCustomLogsLogs
  • $wgCustomLogsMaxCustomParams
  • writecustomlogs
Category:All extensions/de

Installation

  • Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens CustomLogs im Ordner extensions/ ablegen.
    Entwickler und Code-Beitragende sollten stattdessen die Erweiterung von Git installieren, mit:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/CustomLogs
    
  • Folgenden Code am Ende deiner LocalSettings.php -Datei einfügen:
    wfLoadExtension( 'CustomLogs' );
    
  • Yes Erledigt – Navigiere zu Special:Version in deinem Wiki, um zu überprüfen, ob die Erweiterung erfolgreich installiert wurde.

Konfigurationsparameter

$wgCustomLogsLogs - A list of the log types to add to the wiki. Zum Beispiel:

$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. Parameter enthalten:

  • logtype - the type of log, as specified in wgCustomLogsLogs
  • title - the title of the page associated with the action (cannot be used with pageid)
  • pageid - the pageid of the page associated with the action (cannot be used with title)
  • 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 changes
  • custom1 - etc as many as specified by $wgCustomLogsLogs
Category:All extensions/de Category:Extensions in GitHub version control/de Category:Extensions included in Fandom/de Category:Extensions with invalid or missing type/de Category:Extensions with manual MediaWiki version/de Category:GPL licensed extensions/de Category:Stable extensions/de