Extension:MetadataEdit

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
MetadataEdit

Release status: experimental

Implementation User interface
Description Put categories, language links and allowed templates in a separate text box while editing pages
Author(s) Magnus Manske and IAlex
MediaWiki 1.16+
License GNU GPL version 2 or higher
Download
Hooks used
EditFormInitialText

EditPage::importFormData
EditPage::attemptSave
EditPage::showEditForm:fields
EditPageGetPreviewText
EditPageGetDiffText

Check usage (experimental)

The MetadataEdit create a separate text box while editing pages that contains categories, language links and allowed template. It replaces MediaWiki core's $wgUseMetadataEdit.

[edit] Installation

As is standard with other MediaWiki extensions, you may install this extension by extracting the extension in the extensions folder and adding

require_once("$IP/extensions/MetadataEdit/MetadataEdit.php");


to LocalSettings.php.

[edit] Options

$wgMetadataWhitelist
Full name (including namespace) of the page containing templates names that will be allowed as metadata (ie. "MediaWiki:MetadataWhitelist"). This page should contain a list of template names (without the "Template:" prefix) and kept 1 per line starting with a "*" (no space).

Example:

# LocalSettings.php:
$wgMetadataWhitelist = "MediaWiki:MetadataWhitelist";
 
# Wiki-page [[MediaWiki:MetadataWhitelist]]:
*MyMetaTemplate
*Infobox

Any instances of {{MyMetaTemplate}} and {{Infobox}} will be put in the Metadata-part.

$wgMetadataNamespaces (since r72583)
Restrict function to one or more namespaces.

Example:

# LocalSettings.php:
$wgMetadataNamespaces = array( NS_MAIN, NS_USER );
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox