What to wear to a wedding? Also, what makes a good wedding gift?

Wear a black suit, with some sort of conservative Tie.

And to really spruce it up: Take the crusty towel your mother uses to wipe my pecker juice from her forehead as a makeshift hanky.