Extension:NonsaCodeJanitor

From Linux Web Expert

Revision as of 22:58, 14 April 2024 by imported>Pppery
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki extensions manual
NonsaCodeJanitor
Release status: unknown
Author(s) Ostrzyciel
Latest version 0.2.0
MediaWiki >= 1.35.0
License GNU General Public License 2.0 or later
Download

GitLab:

<translate> Note:</translate>
<translate> No [[<tvar name=1>Special:MyLanguage/Localisation#Translation resources</tvar>|localisation]] updates are
provided by <tvar name=twn>translatewiki.net </tvar>.</translate>

Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').

The NonsaCodeJanitor extension cleans up wikitext before saving. The specific cleanups it does are:

  • <references /> -> {{Przypisy}}
  • Various tweaks to image syntax.

The first of these makes sense on one specific wiki, such as https://nonsa.pl (although it doesn't appear to be installed there)

Installation

  • <translate> Download and place the file(s) in a directory called <tvar name=name>NonsaCodeJanitor</tvar> in your <tvar name=ext>extensions/</tvar> folder.</translate>
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'NonsaCodeJanitor' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

See also