Manual:$wgExternalLinkTarget
From MediaWiki.org
(Redirected from Manual:Opening external links in a new window)
| Parser: $wgExternalLinkTarget | |
|---|---|
| Set a default target for external links. |
|
| Introduced in version: | 1.14.0 (r41333) |
| Removed in version: | still in use |
| Allowed values: | string or false |
| Default value: | false |
Other settings: Alphabetical | By Function
[edit] Details
Set a default target for external links. Add the following entry to your "LocalSettings.php" file in order to open links in a new window.
$wgExternalLinkTarget = '_blank';
If the value is set to false, then no target attribute is used with external links (This behaviour is the same as _self).
Note: When changing the value, page views must be refreshed in order to make the setting effective.
[edit] See also
| Language: | English • 日本語 • Polski • Русский • Tiếng Việt |
|---|