Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Mirc script

From HalfLife 2 Knowledge Base

Jump to: navigation, search

A mirc script to make [[X]] hotlinkable to the referring page on the HL2World wiki.

Example: someone types [[G-Man]], in mirc you can double-click on this word and it will take you to the page on this wiki about the G-Man.

In mIRC, click the green icon with "/a" in it and then press the "remote" tab. Paste the code beneath into that window and voila.

on ^*:HOTLINK:*[[*:#hl2world:{ return }
on ^*:HOTLINK:*]]*:#hl2world:{ return }
on *:HOTLINK:*:#hl2world:{
  tokenize 32 $remove($1,[[,]],{{,}})
  set -u0 %regmatchhl2 (.*\[\[(.*? $+ $1 $+ .*?)\]\].*|.*(\{\{.*? $+ $1 $+ .*?)\}\}.*)
  if ($regex($hotline,%regmatchhl2)) {
    url $+(http://,$iif(%wiki-langhl2,$ifmatch,www),.hl2world.com/wiki/index.php/,$replace($regml(2),{{,Template:,$chr(32),_))
  }
} 
Personal tools