Basically, fill up a sink or a bucket with lukewarm water, add whatever shampoo you've got lying around (don't use too much) and work your fingers around the wig and through its fibers gently. You can add some conditioner if you like, in my experience it helps prevent tangles. Rinse it, and dry up the excess water with a towel. Let it dry out, maybe put it near a fan so it doesn't mildew. (This happened to me once, it was a pain!) Or, if the wig is heat resistant, you can use a blow dryer to dry it. Then you're done!
EDIT: Forgot to mention, if the wig is long, use the tub since it's got more room.
Tsumugi Kotobuki - Waitress Ver. [ K-ON! ] - 100%
Yuki Nagato - Disappearance Ver. [ The Disappearance of Haruhi Suzumiya ] - 100%
Lara Croft - Reboot Ver. [ Tomb Raider ] - 90%
Kyouko Sakura - Casual Ver. [ Puella Magi Madoka Magica ] - 100%
Makoto Sawatari [ Kanon ] - 100%
Charlotte - Human Ver. [ Puella Magi Madoka Magica ] - 40%
Ayu Tsukimiya [ Kanon ] - 10%