Extension:ArticleCreationWorkflow

From MediaWiki.org
Jump to: navigation, search
Translate this page; This page contains changes which are not marked for translation.

Other languages:
български • ‎Deutsch • ‎English • ‎español • ‎日本語 • ‎polski • ‎sicilianu • ‎中文
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
ArticleCreationWorkflow

Release status:Extension status experimental

ImplementationTemplate:Extension#type User interface
DescriptionTemplate:Extension#description Helps users create new pages.
Author(s)Template:Extension#username
MediaWikiTemplate:Extension#mediawiki 1.30+
LicenseTemplate:Extension#license MIT License
Download
Hooks usedTemplate:Extension#hook
CustomEditorManual:Hooks/CustomEditor
ShowMissingArticleManual:Hooks/ShowMissingArticle
BeforePageDisplayManual:Hooks/BeforePageDisplay
EventLoggingRegisterSchemasManual:Hooks/EventLoggingRegisterSchemas

Translate the ArticleCreationWorkflow extension if it is available at translatewiki.net

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

ArticleCreationWorkflow helps users create new pages, intercepting article creation for new users and giving them the wiki-configurable options such as using the Article wizard, creating a draft as a user subpage.

Installation[edit]

Manual installation

  • Download and place the file(s) in a directory called ArticleCreationWorkflow in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'ArticleCreationWorkflow' );
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration settings[edit]

  • $wgArticleCreationLandingPage: the name of the wiki page to which users should be redirected if intercepted.
  • $wgArticleCreationWorkflows: lists conditions when attempts to create a page should be redirected to Special:CreatePage. Any condition matching is enough to redirect.

Format:

[
	condition 1,
	condition 2,
	. . .
]

Condition format:

[
	'namespaces' => [ namespace 1, namespace 2, ... ],
	'excludeRight' => 'some right',
]
  • 'namespaces' (required) - namespaces you want to redirect from.
  • 'excludeRight' (optional) - don't redirect users with this right.

Example configuration:

$wgArticleCreationWorkflows = [
	[
		'namespaces' => [ NS_MAIN ],
		'excludeRight' => 'autoconfirmed',
	],
];