Hyperlinks: Difference between revisions
Jump to navigation
Jump to search
Created page with 'A small trigger, yes, but ever so helpful. This figures out when text is a URL and makes it a clickable link. <nowiki>#TRIGGER {(%q)({http://|ftp://|telnet://|www}%x)(%q)} {#SU…' |
No edit summary |
||
| Line 10: | Line 10: | ||
His homepage can be found at [http://www.nelkum.com http://www.nelkum.com] | His homepage can be found at [http://www.nelkum.com http://www.nelkum.com] | ||
[[Category:Tokai]] | |||
[[Category:Triggers]] | |||
Revision as of 05:09, 7 April 2010
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