DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:linksenhanced

linksenhanced Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" unknown
  • 2014-09-29 "Hrun" yes

plugin Enhance internal link syntax by allowing wiki markup in the title

Last updated on
2015-03-10
Provides
Syntax
Repository
Source

Tagged with links

This is a simple plugin that allows using Wiki markup within a link title. My use-case was the inclusion of a fontawesome symbol, generated by the fontawesome plugin, as link name. As this wasn't easily possible, I created this plugin. It is at a very early stage in development and not well tested, so please drop me a line if you encounter any problem.

Installation

Copy the unzipped folder to your /lib/plugins directory and activate the plugin. There are no configuration options.

Examples/Usage

Whenever you want the link title of any type of link to be passed through the DokuWiki renderer, prepend the URL with render^.

Additionally, if you want the plugin to remove any added paragraph, add the word noparagraph (note the space) in front of it.

Example

[[render^http://www.dokuwiki.org|<faicon fa fa-euro> Euro Symbol]]

This will render a Euro-Symbol using the fontawesome plugin. However, a paragraph will be added by DokuWiki. In order to prevent this, add noparagraph:

[[render noparagraph^http://www.dokuwiki.org|<faicon fa fa-euro> Euro Symbol w/o paragraph]]

Complete Options

render Trigger rendering as Wiki text
noparagraph Remove any paragraphs from the rendered wiki text
class=css_class Override the CSS class of the final link (only one class is allowed)
target=_blank Override the link target of the final link

Change Log

Discussion

plugin/linksenhanced.txt · Last modified: 2015-09-24 02:16 by Aleksandr