User Post images?

Wondering how would users post images in a Wiki article. What's the code to embed external images and is there a way to allow them to upload their own images, and avoid being spammed at the same time? What would you guys recommend?