It's better when it's simple

User Tools

Site Tools


Target Link Plugin

Compatible with DokuWiki

Greebo, 2018-04-22

plugin Make links with specified targets not depending on the configuration. e.g.: The links usual open in the same tab, but this link opens in a new tab.

Last updated on

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with links, target

:!: このページを日本語でご覧頂けます。(This page is also available in Japanese.)
:!: I’m not a native English speaker, so this page may contain some mistakes in English sentences.


By using this plugin, you can specify targets to the links, not depending on the configuration of your wiki.


Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.


For example, if the conf target>>wiki is null:

[[page1|This link]] opens in the same tab, but [[+tab|page2|this one]] opens in the new tab, and so does [[target=_blank|page2|this one]].

If the conf target»extern is “_blank”:

[[|This link]] opens in the new tab, but [[target=_self||this one]] opens in the same tab.

Currently this plugin works with internal, external, interwiki, and windows share links.

See the plugin in action here (sorry but this page is available only in Japanese).


[[+tab|pagename]] (opens in the new tab)
[[+tab|pagename|linkname]] (opens in the new tab)
[[target=targetname|pagename]] (opens in the specified target)
[[target=targetname|pagename|linkname]] (opens in the specified target)


Change Log

  • 2018-07-02
    • Initial release (but I published this page in July 17, because I was lazy)
  • 2018-08-08
    • Updated (defined the function when the rendering mode is metadata)
  • 2019-03-13
    • Bug fix

Known Bugs and Issues

(Currently none)

ToDo and Wishlist

I'll do my best if you think this leaves something to be desired

Contact Me

If you find some problems in this plugin, you can make issue topics on the GitHub page, or if you wanna contact me for other things, you can contact me by:


plugin/targetlink.txt · Last modified: 2019-03-13 06:44 by hokkaidoperson

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki