User:PerfektesChaos/js/createdDeletedAgain

JavaScript gadget – heads up if an article (in main space) is arriving which has been deleted before.

The goal of this tool is to notify if articles arrive again in main space which were deleted in the past:

If any page with deletion log has been detected

  • a button like DeletedLog which is linked with a list of all deletions and other events related to this article (opened in a new browser tab) is appended to each entry;
  • on top of the page a banner is inserted which is linked to each detected single item.

Basically it is permitted to create deleted articles again, but they are suspicious and need investigation whether the reason for deletion has been overcome now.

Usage

edit
  • If your project has registered this as a gadget, just activate on your Preferences page.
  • Otherwise include the following block into your common.js, global.js etc.:
if ( mw.config.get( "wgNamespaceNumber" ) === -1 ) {
   mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/createdDeletedAgain/r.js&action=raw&bcache=1&maxage=86400&ctype=text/javascript" );
}

Special pages

edit

The following two links shall narrow to recent articles which are tagged as “Recreated”:

Codes

edit
Source code
ResourceLoader
  • ext.gadget.createdDeletedAgain for mw:Extension:Gadgets
  • Dependencies:
    • None required (self-completing)
    • mediawiki.api mediawiki.Title (when required)
Namespaces Special
Actions view
Cookies None
mw.libs createdDeletedAgain (reserved, but currently unused)
mw.hook
  • createdDeletedAgain.ready
    When code has been loaded.
    Tells implementation metadata.
MediaWiki MW 1.22
JavaScript 1.5 (2000)