How do I add Wikipedia as a search provider for the Safari search bar?
There's a plugin for Safari called Glims that lets you add different search engines (including Wikipedia) to the search bar among other tweaks. You can read about and download it here.

Here's a post on someone's blog that details how to install it and set your search engines to what you want.

Hope that helps!