Extension:MetadataEdit
From MediaWiki.org
|
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 |
Download snapshot (Git master)
Git [?]: repo summary • tree • code changes SVN [?]: checkout-url • tree • code changes |
||
|
|||
|
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");
[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 );
Categories:
- Experimental extensions
- User interface extensions
- Extensions in Wikimedia version control
- EditFormInitialText extensions
- EditPage::importFormData extensions
- EditPage::attemptSave extensions
- EditPage::showEditForm:fields extensions
- EditPageGetPreviewText extensions
- EditPageGetDiffText extensions
- All extensions
- 2012 Q1 Extension Page Review Drive
