User:Lil devil/Sandbox:Extension:ExternalLinkTarget
{{Extension|templatemode = |name = ExternalLinkTarget |status = beta |type1 = tag |type2 = |hook1 = ParserFirstCallInit |hook2 = |username = Lil_devil |author = Brian Renken |description = New tags, <base> and <link>, to modify the target of external links. |image = |imagesize = |version = 1.0 |update = 5/28/2010 |mediawiki = 1.15.x |php = |license = [http://creativecommons.org/licenses/by-nc-sa/3.0/ CC by-nc-sa] |download = [[#code|See below]] |readme = |changelog = |parameters = |tags = <base>, <link> |rights = |example = |compatibility = }}
This extension adds support for the standard tag <base target="(value)" />
to change the external link target on a per-page basis.
Example:
<base target="_blank" />
Installation[edit]
Add the following to LocalSettings.php:
require_once("$IP/extensions/ExternalLinkTarget/ExternalLinkTarget.php");