Input (grade 4): See Wikipedia: Citing sources for the relevant style guidelines.
Output (grade 5): See Wikipedia: Citing sources for the relevant guideline.