Hyperlinks

From RoDpedia
Revision as of 05:46, 6 July 2023 by Blithe (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A small trigger, yes, but ever so helpful. This figures out when text is a URL and makes it a clickable link.

#TRIGGER {(%q)({http://|ftp://|telnet://|www}%x)(%q)} {#SUBSTITUTE {~<A '%quote(%2)'>%1%2%3~</A>}}

That way, when you see something on the mud like:

His homepage can be found at http://www.nelkum.com

It becomes a link! You can click it!

His homepage can be found at http://www.nelkum.com