Hyperlinks: Difference between revisions

From RoDpedia
Jump to navigation Jump to search
Dunec (talk | contribs)
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…'
 
Blithe (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
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]]
[[Category:Scripts]]

Latest revision as of 05:46, 6 July 2023

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