DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:linksenhanced

linksenhanced Plugin

Compatible with DokuWiki

Hrun, Greebo

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

Last updated on
2019-05-29
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 !discontinued, links

:!: This plugin is no longer maintained.

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.

It is also possible to check external links for their status.

Installation

Copy the unzipped folder to your /lib/plugins directory and activate the plugin.

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.

If you want to check a link for availability, include check in the list of options or check^ if it's the only option you specify. You can also specify link checking for all links by enabling it in configuration settings and further restrict it to a certain namespace or namespaces, separated by ',' (the namespace setting only has effect when you enable link checking by default, i.e. it narrows it down). If you enable it by default, then your link syntax does not change at all.

The link check is indicated by a colored dot in front of the link:

  • orange = checking or unknown,
  • green = online,
  • red = offline.

There is no requirement on an external library, all checking is done internally.

Another syntax option ({{linksenhanced>}}) displays the link overview status on any wiki page. It can be limited to a given namespace(s) (attention: separate by semicolon!) by specifying the option {{linksenhanced>namespace=wiki;test}}.

Example

[[render^https://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^https://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
check Do an AJAX-call to check the link availability

Admin Component

The admin component can show an overview on the status of all external links in the wiki. Beware that this might take some time to load on large wiki and it creates a lot of request to your DokuWiki server (one per link!).

Limitations

  • linksenhanced only supports xhtml output, no other renderer plugin is currently supported.
plugin/linksenhanced.txt · Last modified: 2023-12-19 19:00 by andyboeh

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