Manual:$wgEnableMagicLinks

From Linux Web Expert

Revision as of 07:35, 13 February 2023 by imported>MathXplore (Undid edits by 189.195.165.184 (talk) to last version by Shirayuki: unexplained content removal)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Parser</translate>: $wgEnableMagicLinks
Controls whether magic link functionality should be enabled
<translate> Introduced in version:</translate>1.28.0 (Gerrit change 309528; git #78debba3)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(array)
<translate> Default value:</translate>
[
	'ISBN' => false,
	'PMID' => false,
	'RFC' => false,
]

Controls whether magic link functionality should be enabled. As of MediaWiki 1.28, magic links are now disabled by default. It has been proposed to remove magic link functionality from MediaWiki in a future release, if you depend upon or use them it is requested that you comment at Requests for comment/Future of magic links.

Example

For example, to enable ISBN auto-linking, you can use:

$wgEnableMagicLinks['ISBN'] = true;

If auto-linking was previously disabled and you've enabled it as described above, you'll most likely need to purge the cache of the affected pages. For purging all pages in a given namespace or all pages in all namespaces, you can use the purgeList.php maintenance script.