Each academic discipline adheres to a style of documentation used to format papers, cites sources, and create reference lists. There are several: APA, MLA, Chicago, Turabian.
History uses Chicago Style. Turabian is based on Chicago Style.
Here are a few citation builders/generators available on the Internet. Remember these are not perfect tools and are only as good as knowledge of the people who developed them. Always, proof citations created via these tools to make sure they are correct.
Also, many databases, including the Ebscohost Databases and ProQuest, now include citation functions.