What does sic mean? Using [sic] in a quote, and quoting dialect

What [sic] means, where it goes and whether it is italicised in APA, MLA, Chicago and Harvard, and how to quote dialect, old spelling and speech fairly.