Extension:CreateRedirect

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
CreateRedirect

Release status:Extension status stable

Createredirect-v1.png
ImplementationTemplate:Extension#type Special page
DescriptionTemplate:Extension#description Adds a special page that eases creation of redirects via a simple form.
Author(s)Template:Extension#username Marco Zafra (Digikutalk)
Latest versionTemplate:Extension#version 1.0.1
MediaWikiTemplate:Extension#mediawiki 1.11+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU Lesser General Public License 3.0 or later
Download
Hooks usedTemplate:Extension#hook
SkinTemplateToolboxEndManual:Hooks/SkinTemplateToolboxEnd

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

Check usage and version matrix.

CreateRedirect is a special page extension that eases creation of redirects. It displays a form that only asks for the origin page and the destination page, and then saves the page. It also adds a menu item to the side "toolbox" menu as a shortcut, and is able to pass through the current article's title through that shortcut to fill in the destination field automatically. It's convenient and great for batch edits!

Installation[edit]

  • Download and place the file(s) in a directory called CreateRedirect in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/CreateRedirect/CreateRedirect.php";
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
  • The special page itself is accessible through Special:Createredirect.

Caveats[edit]

  • The page text is hardcoded in English right now; i18n messages aren't actually implemented at this time. All messages, however, are included in the i18n file.
  • This extension respects user permissions, but security is not thoroughly tested. It should work without a hitch, though. See source for details.
  • While this extension has not been thoroughly tested, it's proven sufficient for everyday use and is used live on my own wiki. Our wiki is relatively mid-low-traffic and your mileage may vary.
  • Although untested, this extension might work on previous MediaWiki versions.

Updates[edit]

May 11, 2007[edit]

  • No updates to the code itself, but the files above are back up and working. Sorry about that!

December 11, 2007[edit]

  • Minor
  • CreateRedirect.setup.php: Fixed "toolbox" menu link, where the link was directed to my server and wiki. Fixed to link locally to the Wiki that extension is installed on.

Licensing[edit]

CreateRedirect is released under the GNU Lesser General Public License version 3.