Extension:AnchorHandler

Category:Unmaintained extensions#AnchorHandler Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
AnchorHandler
Release status: unmaintainedCategory:Unmaintained extensions
Implementation Tag Category:Tag extensions
Description Allows inserting <a> anchor tags into wikitext
Author(s) Ike Hecht (tosfostalk)
Latest version 0.2 (February 2018)
MediaWiki 1.29+Category:Extensions with manual MediaWiki version
PHP 5.3+
Database changes No
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
  • $wgAnchorNamespaces
Quarterly downloads 3 (Ranked 113rd)
Translate the AnchorHandler extension if it is available at translatewiki.net
Category:All extensions

The AnchorHandler extension allows inserting <a> anchor tags into wikitext. By default, it simply passes through the text within the <a>...</a> tags. It can be configured to actually parse and convert the anchor tags to working links in certain namespaces. This is especially helpful when importing raw HTML into a wiki.

Installation

  • Download and move the extracted AnchorHandler folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AnchorHandler
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'AnchorHandler' );
    
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

$egAnchorNamespaces

Tells the extension to actually convert the anchor tags to links in the specified namespaces. Example:

$egAnchorNamespaces = [ NS_MAIN ];
See this list of namespace constants.

See also

  • Extension:HTML Tags – Adds <htmltag></htmltag> tags, that can be used to display HTML tags within wiki pages that may otherwise be disallowed by the MediaWiki parser.
Category:Script embedding extensions
Category:All extensions Category:Extensions in Wikimedia version control Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:ParserFirstCallInit extensions Category:Script embedding extensions Category:Tag extensions Category:Unmaintained extensions