Extension:LockAuthor/pl

From mediawiki.org
This page is a translated version of the page Extension:LockAuthor and the translation is 16% complete.
Outdated translations are marked like this.
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.
Podręcznik rozszerzeń MediaWiki
LockAuthor
Status wydania: stabilne
Realizacja Uprawnienia użytkownika
Opis Prevents users from editing pages they haven't created
Autor(zy) Vedmakadyskusja
Opiekun(owie) WikiTeq team
Ostatnia wersja 1.0
Polityka zgodności For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.
MediaWiki 1.35, 1.39
PHP 7.1+
Licencja GNU General Public License 2.0 or later
Pobieranie
README
  • $wgLockAuthorExcludedNamespaces
  • $wgLockAuthorActions
editall
Quarterly downloads 10 (Ranked 139th)
Przetłumacz rozszerzenie LockAuthor jeżeli jest dostępne na translatewiki.net
Problemy Otwarte zadania · Zgłoś błąd

LockAuthor is a MediaWiki extension that prevents users from editing pages they have not created.

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.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie LockAuthor w folderze extensions/.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LockAuthor
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'LockAuthor' );
    
  • Configure as required
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Konfiguracja

  • $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

Przykład

# 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;

Zobacz też