Extension:LockAuthor/it

From mediawiki.org
This page is a translated version of the page Extension:LockAuthor and the translation is 5% complete.
This extension is professionally maintained by the WikiTeq team.
WikiTeq provides official support for MediaWiki LTS releases only. It may work with other MediaWiki releases.
Manuale sulle Estensioni MediaWiki
LockAuthor
Stato della release: stabile
Implementazione Diritti utente
Descrizione Prevents users from editing pages they haven't created
Autore(i) Vedmakadiscussione
Mantenuta da WikiTeq team
Versione 1.0
Politica di compatibilità Per ogni versione di MediaWiki LTS (supporto a lungo termine) c'è un branch corrispondente nell'estensione
MediaWiki 1.35, 1.39
PHP 7.1+
Licenza GNU General Public License 2.0 or later
Scaricare
README
  • $wgLockAuthorExcludedNamespaces
  • $wgLockAuthorActions
editall
Quarterly downloads 5 (Ranked 149th)
Traduci l'estensione LockAuthor se è disponibile su translatewiki.net
Problemi Compiti aperti · Riportare un bug

LockAuthor è un estensione di MediaWiki per prevenire che gli utenti modifichino pagine che non hanno creato.

It does not itself allow users to edit pages that they have created; for that, you will have to make sure the standard "edit" right is correctly set.

This extension is a drop-in replacement for the EditOwn extension, which was archived in 2018.

This extension was created for WikiWorks.

Installation

  • Download and move the extracted LockAuthor folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LockAuthor
  • Aggiungi il seguente codice al tuo $LocalSettings (preferibilmente alla fine):
    wfLoadExtension( 'LockAuthor' );
    
  • Configure as required
  • Yes Done – Naviga in Special:Version nella tua wiki per verificare che l'estensione sia stata installata correttamente.

Configuration

  • $wgLockAuthorExcludedNamespaces - array of namespaces to be excluded from checks
  • $wgLockAuthorActions - array of actions to be checked (Default: [ 'edit', 'create' ])

Rights:

  • editall - grant this right to a group to allow bypassing extension's restrictions

Example setup

# Prevent anonymous editing
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;

# Allow regular users to edit pages
$wgGroupPermissions['user']['edit'] = true;
$wgGroupPermissions['user']['createpage'] = true;

wfLoadExtension( 'LockAuthor' );
// LockAuthor will limit users edit right only to pages created by them

# Allow sysop to edit all pages
$wgGroupPermissions['sysop']['editall'] = true;

See also