1
edit
Changes
no edit summary
--[[User:twlai1|twlai1]] 17:24, 9 September 2008 (UTC)
---- <b>By Sid Kalra</b><br />Modified version of zenit/wiki search. This searches the zenit/wiki users
<pre>
CmdUtils.CreateCommand({
-- [[User:Crulshorukh|Crulshorukh]] 17:46, 9 September 2008 (UTC)
<pre>
CmdUtils.CreateCommand({
name: "wowhead search:",
homepage: "http://sidkalra.com/",
author: { name: "Sid Kalra" },
description: "Searches wowhead and sorts the results",
takes: {"search": noun_arb_text},
modifiers: {
sort: noun_arb_text
},
preview: function(pblock, search1, modifier){
var message = 'Searching for ${search} sorting by ${sort}';
},
execute: function(search, mods) {
var url = "http://www.wowhead.com/?search={QUERY}";
var query = search.text;
var urlString = url.replace("{QUERY}", query);
urlString += "#" + mods.sort.text;
Utils.openUrlInBrowser(urlString);
}
})
</pre>
-- [[User:Crulshorukh|Crulshorukh]] 00:48, 10 September 2008 (UTC)
----