Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎Nederlands • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎Tiếng Việt
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

Details[edit | edit source]

Set a default target for external links. Add the following entry to LocalSettings.php file in order to open links in a new window / tab.

 $wgExternalLinkTarget = '_blank';

If the value is set to false, then no target attribute is used with external links (This behavior is the same as _self).

When changing the value, page views must be refreshed in order to make the setting effective.

See also[edit | edit source]