Manual:$wgEnableMagicLinks

From MediaWiki.org
Jump to: navigation, search

Other languages:
English • ‎español • ‎日本語 • ‎polski • ‎中文
Parser: $wgEnableMagicLinks
Controls whether magic link functionality should be enabled
Introduced in version: 1.28.0 (Gerrit change 309528; git #78debba3)
Removed in version: still in use
Allowed values: array
Default value: [ 'ISBN' => false, 'PMID' => false, 'RFC' => false ]
Other settings: Alphabetical | By function


Controls whether magic link functionality should be enabled.

Example[edit]

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.phpManual:purgeList.php maintenance script.