Extension:CreateRedirect

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
CreateRedirect
Release status: beta
Createredirect-v1.png
Implementation Special page
Description Adds a special page that eases creation of redirects via a simple form.
Author(s) Marco Zafra, Edward Chernenko
Latest version 1.4.0
MediaWiki 1.23+
Database changes No
License GNU Lesser General Public License 3.0 or later
Download
Translate the CreateRedirect extension if it is available at translatewiki.net
Check usage and version matrix.
Issues Open tasks · Report a bug

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:
    wfLoadExtension( 'CreateRedirect' );
    
  • Yes 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.

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.

January 2020[edit]

  • Major code rewrite
  • Autofocus of title autocompletion in "Redirect to:" field,
  • Post-submit success message has links to target page and redirect,
  • warn when redirect would overwrite an existing page, with checkbox to ignore this warning,
  • button "Enter more titles" turns "Page title" field into a textarea, allowing to create multiple redirects (to the same page) at once.
  • if target page is Template:Something, then "Page title" field would be populated with "Template:" string when the form is opened (because in most cases redirects to templates would also be in the same Template namespace). This applies to all namespaces.

Licensing[edit]

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