Extension:LinkTitles

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

Release status:Extension status stable

ImplementationTemplate:Extension#type Page action
DescriptionTemplate:Extension#description Automatically adds links to words that match titles of existing pages.
Author(s)Template:Extension#username Daniel Kraus (bovendertalk)
Latest versionTemplate:Extension#version 5.0.5 (2017-10-17)
MediaWikiTemplate:Extension#mediawiki 1.25+
PHPTemplate:Extension#php 5.3+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
README.md
What's new?
ParametersTemplate:Extension#parameters

see README.md

TagsTemplate:Extension#tags
autolinks, noautolinks
Added rightsTemplate:Extension#rights

linktitles-batch

Hooks usedTemplate:Extension#hook
PageContentSaveManual:Hooks/PageContentSave
InternalParseBeforeLinksManual:Hooks/InternalParseBeforeLinks
GetDoubleUnderscoreIDsManual:Hooks/GetDoubleUnderscoreIDs

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

Check usage and version matrix.

The LinkTitles extension automatically adds links to existing page titles that occur on a given page. This will automatically cross-reference your wiki for you. The extension can operate in three ways that can be used independently:

  1. Whenever a page is edited and saved, the extension will look if any existing page titles occur in the text, and automatically add links ([[...]]]) to the corresponding pages.
  2. Links may also be added on the fly whenever a page is rendered for display. Most of the time, MediaWiki will fetch previously rendered pages from cache upon a page request, but whenever a page is refreshed, the LinkTitles extension can add its page links. These links are not hard-coded in the Wiki text. The original content will not be modified.
  3. Batch mode enables Wiki administrators to process all pages in a Wiki at once. Batch processing can either be started from a special page, or from the server's command line (see below).

Installation[edit]

  • Download, extract and place the file(s) in a directory called LinkTitles in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'LinkTitles' );
    
  • Configure as required.
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'LinkTitles' );, you need to use:

require_once "$IP/extensions/LinkTitles/LinkTitles.php";

Usage and configuration[edit]

Starting with version 5.0.0, detailed usage and configuration information was moved to the README.md file in the extension's repository.

(This enables me to use an offline text editor to edit the file, and it keeps the file under the same version control as the code.)