Here’s a link about how to cite URIs using BIBTEX http://www.tex.ac.uk/cgi-bin/texfaq2html?label=citeURL
And it might be interesting to read about natbib http://merkel.zoneo.net/Latex/natbib.php — the different ways to cite using that package should be inspirational. jurabib http://sourceforge.net/projects/jurabib might also be of interest.
Here’s a link to something you might consider interesting. It’s related to what your Wikipublisher does.
Just to confuse you furhter http://wiki.lyx.org/BibTeX/Background
Reinventing the wheel…