DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:linksenhanced

This is an old revision of the document!


linksenhanced Plugin

Compatible with DokuWiki

Hrun

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

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

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

Similar to xtern

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.1426531570.txt.gz · Last modified: 2015-03-16 19:46 by Aleksandr

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