Adding Sources

From Albany Hilltowns
Jump to: navigation, search

How To Add Sources To A Page

Sources can be used to reference information within a page and to appear footnotes. Two things need to be done to add sources to your page.

1. ADD YOUR SOURCES
To add your sources use the <ref> tag before the name of the source and </ref> directly after. Put the first tag directly after the information you want referenced.

For Example: if you wanted to source the birth information in the below paragraph put the first reference tag <ref> immediately following his birth sentence and the second reference tag </ref> at the end of the source information.

John Smith was born January 7, 1849, in Berne.<ref>Smith Family Bible, Original at The Old Stone Fort, Schoharie NY</ref> He was a farmer his entire life. He owned a dairy farm on Helderberg Trail. In the early days, he had a wagon which he used to travel through the nearby hamlets delivering milk. John never married. He died on March 22, 1898 in Westerlo.

Continue sourcing throughout your page adding sources where needed.

2. ADD THE "FOOTNOTE LIST" CODE TO THE PAGE In order to have your sources listed on the bottom of the page the following MUST to be added near the bottom of the page above the Category Coding. If you forget to include <references /> at the end of the article, none of the footnotes will appear.

'''Sources'''

<references />


A NOTE ON MULTIPLE USES OF THE SAME FOOTNOTE
If you are going to reference the same footnote in the page, give the source a unique identifier, use <ref name="name"> instead of the first <ref> tag used before. You can then refer to the same footnote again by using a ref tag with the same name. The text inside the second tag doesn't matter, because the text already exists in the first reference. You can either copy the whole footnote, or you can use a terminated empty ref tag that looks like this: <ref name="name" />.

In the below example we want the source of Smith Family Bible to also be the source for this persons death information. So as to not create an additional footnote with the same name, we changing the first <ref> tag used in the above examples to <ref name="Bible">. Then, because the source for the death information is the same we can simply put <ref name="Bible" />. after the death information.

John Smith was born January 7, 1849, in Berne.<ref name="Bible">Smith Family Bible, Original at The Old Stone Fort, Schoharie NY</ref> He was a farmer his entire life. He owned a dairy farm on Helderberg Trail. In the early days, he had a wagon which he used to travel through the nearby hamlets delivering milk. John never married. He died on March 22, 1898 in Westerlo.<ref name="Bible" />



Note: In some cases the Source List coding listed as 2. on this page may already be in the page. If it is you do not need to add it again.