Coloring links

From Copyright for Librarians
Jump to navigation Jump to search

This wiki supports the rel, rev and class attributes on links.

The syntax is a little unorthodox but is set using the following:

rel attribute

To set the rel attribute, place one or more tokens in double-parentheses at the end of the link title. e.g.:

[ Berkman((me home))]

The above would be converted to the following link:

<a href="" rel="me home" class="external">Berkman</a>

class attribute

To set the class attribute, the same syntax is used, but tokens which represent classes are prefixed with a dot:

[ Berkman((me .class1 home .class2))]


<a href="" rel="me home" class="external class1 class2">Berkman</a>

rev attrribute

Similar to the class attribute, prefixing with a tilde (~) sets the rev attribute.

removing attributes

Tokens may be prefixed by a minus sign (-) to indicate that you don't want to add the token, but remove it. For example:

[ Berkman((me -.external home))]


<a href="" rel="me home">Berkman</a>


Colorization of links only works on external links for the moment so internal wiki links in the form of:


will not work - these will need to be converted to external links in the form of:

[http://hostname.domainname.tld/Internal_Page Link((.class))]


[ This((.link_red))] is a link in red.
[ This((.link_green))] is a link in green.
[ This((.link_blue))] is a link in blue.
[ This((.link_yellow))] is a link in yellow.

[ This((.link_green))] is a green link.