Manual:$wgActions

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil • ‎русский
Access: $wgActions
Array of allowed values for the "action" parameter for normal pages.
Introduced in version: 1.18.0 (r86041)
Removed in version: still in use
Allowed values: array mapping strings to boolean or string
Default value: (see below)

Other settings: Alphabetical | By Function

§Details[edit | edit source]

Array of allowed values for the "action" parameter for normal pages.

Syntax is:

  • 'foo' => 'ClassName' - Load the specified class which subclasses Action
  • 'foo' => true - Load the class FooAction which subclasses Action
  • 'foo' => false - The action is disabled; show an error message

Unsetting core actions will probably cause things to complain loudly.

§Default value[edit | edit source]

MediaWiki version: 1.19
$wgActions = array(
	'credits' => true,
	'delete' => true,
	'edit' => true,
	'history' => true,
	'info' => true,
	'markpatrolled' => true,
	'protect' => true,
	'purge' => true,
	'raw' => true,
	'render' => true,
	'revert' => true,
	'revisiondelete' => true,
	'rollback' => true,
	'submit' => true,
	'unprotect' => true,
	'unwatch' => true,
	'view' => true,
	'watch' => true,
);


MediaWiki version: 1.18
$wgActions = array(
	'credits' => true,
	'deletetrackback' => true,
	'info' => true,
	'markpatrolled' => true,
	'purge' => true,
	'revert' => true,
	'revisiondelete' => true,
	'rollback' => true,
	'unwatch' => true,
	'watch' => true,
);