Extension:ArticleCreationWorkflow
Stav rozšíření: stabilní |
|
---|---|
Implementace | Uživatelské rozhraní |
Popis | Pomáhá uživatelům vytvářet nové stránky. |
Autoři | |
Zásady kompatibility | Vydání snímků současně s MediaWiki. Hlavní vývojová větev není zpětně kompatibilní. |
MediaWiki | 1.30+ |
Licence | Licence MIT |
Stáhnout | |
|
|
|
|
Přeložte rozšíření ArticleCreationWorkflow, používá-li lokalizaci z translatewiki.net | |
Problémy | Otevřené úkoly · Nahlásit chybu |
ArticleCreationWorkflow helps users create new pages, intercepting article creation for new users and giving them wiki-configurable options such as using the Article wizard or creating a draft as a user subpage.
Installation
- Stáhněte soubor/y a vložte je do adresáře pojmenovaného
ArticleCreationWorkflow
ve vaší složceextensions/
.
Vývojáři a přispěvatelé kódu by si místo toho měli nainstalovat rozšíření from Git pomocí:cdextensions/ gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/ArticleCreationWorkflow
- Na konec vašeho souboru LocalSettings.php přidejte následující kód:
wfLoadExtension( 'ArticleCreationWorkflow' );
- Yes Dokončeno – Přejděte na stránku Special:Version vaší wiki a zkontrolujte, zda bylo rozšíření úspěšně nainstalováno.
Instalace Vagrant:
- Pokud používáte Vagrant , instalujte s těmito parametry
vagrant roles enable articlecreationworkflow --provision
Required configuration
In order for users to be intercepted, they must have the createpage
right, must not have the createinmainns
right, the page they are trying to create must be in the main namespace (and not yet exist) and the page pointed to by $wgArticleCreationLandingPage
must exist.
For example, to intercept page creation for unregistered and non-autoconfirmed users (refer to Příručka:Uživatelská práva for more options):
$wgGroupPermissions['*']['createpagemainns'] = false; $wgGroupPermissions['user']['createpagemainns'] = false;
The default value of $wgArticleCreationLandingPage
is "Project:Article wizard".
This page must be created to intercept page creation for these users.
Configuration settings
$wgArticleCreationLandingPage
(string): the name of the wiki page to which users should be redirected if intercepted.
$wgUseCustomLandingPageStyles
(bool): Whether to load custom CSS for the landing page.
User right
The extension adds a new user right called createpagemainns
which permits users to create new pages in the main namespace.
This right is given by default to all users.
Users without this right are prohibited from creating main namespace pages, and when they attempt to (by clicking on a red link, for example) they're redirected to the Article Creation Workflow landing page.
- Stable extensions/cs
- User interface extensions/cs
- MIT licensed extensions/cs
- Extensions in Wikimedia version control/cs
- BeforeDisplayNoArticleText extensions/cs
- GetActionName extensions/cs
- TitleQuickPermissions extensions/cs
- All extensions/cs
- Extensions used on Wikimedia/cs
- Extensions included in Miraheze/cs
- Extensions included in WikiForge/cs
- Workflow extensions/cs