Extension:DeleteOwn

From Linux Web Expert

Revision as of 10:00, 7 July 2023 by imported>淮南皓月 (→‎See also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MediaWiki extensions manual
DeleteOwn
Release status: unmaintained
Implementation Page action , User rights
Description Allows users to delete pages only they edited.
Author(s) Tyler Romeo (Parent5446talk)
Latest version 1.2.0 (2017-08-18)
MediaWiki 1.23+
PHP 5.3+
License GNU General Public License 2.0 or later
Download
$wgDeleteOwnExpiry
deleteown
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').
Translate the DeleteOwn extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The DeleteOwn extension add a user right deleteown which, if granted, allows users to delete pages that they authored, are the only editor on (excluding minor and bot edits), and have not been moved to another namespace. Also, a configuration option allows this permission to expire, i.e., after the page reaches a certain age the author cannot delete it, even if they are still the only editor.

Download

<translate> The extension can be retrieved directly from Git</translate> [?]:

  • <translate> Browse code</translate>
  • <translate> Some extensions have tags for stable releases.</translate>
  • <translate> Each branch is associated with a past MediaWiki release.</translate> <translate> There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).</translate>

<translate> Extract the snapshot and place it in the <tvar name=name>extensions/DeleteOwn/</tvar> directory of your MediaWiki installation.

If you are familiar with Git and have shell access to your server, you can also obtain the extension as follows: </translate>

cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DeleteOwn.git

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/DeleteOwn</tvar>|Download]] and move the extracted <tvar name=name>DeleteOwn</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DeleteOwn
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    require_once "$IP/extensions/DeleteOwn/DeleteOwn.php";
    
  • Configure as required.
  • 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>

Configuration

$wgDeleteOwnExpiry
Sets how young (in seconds) a page must be for the author to still be able to delete it if they are the only editor. The value can be an integer, which is applied to all pages, or an array mapping namespaces to expiries. Using a value of 0 (or if a namespace is left out of the array in the latter case) has the effect of disabling the expiry.

User rights

deleteown
Gives users the right to delete pages that
  1. they authored,
  2. they are the only editor for (except minor and bot edits),
  3. have not been moved to another namespace, and
  4. are younger than the configured expiry, if applicable.

See also