Zmud WikiSearch

From AvatarWiki
Revision as of 19:51, 24 March 2006 by JonDooger (talk | contribs) (Updated Script)
Jump to navigation Jump to search

This trigger opens your web browser to an AvatarWiki search of your selected text when you choose an option from the right-click menu. It also removes articles (the, an, a) at the beginning of search terms as per wiki standards.
Wikisearch.jpg

Code

Copy each line individually and then paste them into zMud:

#ALIAS wiki {#URL http://avatar.melanarchy.info/wiki/Special:Search?search=~"%1~"} "wikisearch"
#MENU {Search for '%selword' on AvatarWiki} {#URL http://avatar.melanarchy.info/wiki/Special:Search?search=~"%selword~"} "wikisearch"
#MENU {Search for '%selected' on AvatarWiki} {#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)};wiki @wikistring} "wikisearch"

Usage

Just select some text in the mud, right click on it and choose the "Search for 'x' on AvatarWiki" option. For single word searches, just right click the word, no need to select it.

You can also do manual searches by typing wiki followed by your search term in quotations.
EX: wiki "search requirements"

How It Works