Jump to content

User:Lil devil/Sandbox:Extension:ExternalLinkTarget: Difference between revisions

From mediawiki.org
Content deleted Content added
Lil devil (talk | contribs)
No edit summary
Lil devil (talk | contribs)
Wrap template in <nowiki> to prevent categorization.
 
Line 1: Line 1:
{{Extension|templatemode =
<nowiki>{{Extension|templatemode =
|name = ExternalLinkTarget
|name = ExternalLinkTarget
|status = beta
|status = beta
|type1 =
|type1 = tag
|type2 =
|type2 =
|hook1 =
|hook1 = ParserFirstCallInit
|hook2 =
|hook2 =
|username = Lil_devil
|username = Lil_devil
Line 24: Line 24:
|example =
|example =
|compatibility =
|compatibility =
}}</nowiki>
}}


This extension adds support for the standard tag <code><base target="(value)" /></code> to change the external link target on a per-page basis.
This extension adds support for the standard tag <code><base target="(value)" /></code> to change the external link target on a per-page basis.

Latest revision as of 04:44, 29 May 2010

{{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 | edit source]

Add the following to LocalSettings.php:

  require_once("$IP/extensions/ExternalLinkTarget/ExternalLinkTarget.php");

Requirements

[edit | edit source]

See Also

[edit | edit source]