This is fairly easily done already with many sites, if they accept an HTTP GET argument, using bookmark keywords... you can set up a bookmark to say, http://en.wikipedia.org/wiki/%s and then visit "w Firefox" to go to the Firefox Wikipedia page...
I'm not sure its useful for anything beyond search or direct navigation though...