CMud WikiSearch
Jump to navigation
Jump to search
Save the following code as an .xml file, and import it into Cmud:
<?xml version="1.0" encoding="ISO-8859-1" ?> <cmud> <class name="wikisearch"> <alias name="wiki"> <value>#URL http://avatar.melanarchy.info/index.php/Special:Search?search=%1</value> </alias> <menu priority="290"> <caption>Search for '%selword' on AvatarWiki</caption> <value>#URL http://avatar.melanarchy.info/index.php/Special:Search?search=%selword</value> </menu> <menu priority="300"> <caption>Search for '%selected' on AvatarWiki</caption> <value>#VAR wikistring %selected; #IF {%begins( @wikistring, "an ")} {#VAR wikistring %remove( "an ", @wikistring)}; #IF %begins( @wikistring, "a ") {#VAR wikistring %remove( "a ", @wikistring)}; #IF {%begins( @wikistring, "the ")} {#VAR wikistring %remove( "the ", @wikistring)}; #IF %begins( @wikistring, "A ") {#VAR wikistring %remove( "A ", @wikistring)}; wiki @wikistring</value> </menu> <var name="wikistring"> </var> </class> </cmud>