Help:Citations: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
# Near the end of the page, you should create a Notes section. | # Near the end of the page, you should create a Notes section. | ||
# In the Notes section, you will use the <code><nowiki><references>...</references></nowiki></code> tag. | # In the Notes section, you will use the <code><nowiki><references>...</references></nowiki></code> tag. | ||
# Within the <code><references></code> tag pair you can put a <code><ref>...</ref></code> line for each individual source. | # Within the <code><nowiki><references></nowiki></code> tag pair you can put a <code><nowiki><ref>...</ref></nowiki></code> line for each individual source. | ||
# Each individual source can either be spelled out for your page, or a <code>Source:</code> page (see below) can be made for it, in which case, you will use <code>{{ }}</code> to include it as with any other template. | # Each individual source can either be spelled out for your page, or a <code>Source:</code> page (see below) can be made for it, in which case, you will use <code><nowiki>{{ }}</nowiki></code> to include it as with any other template. | ||
# In the opening tag of each source, you will need to include a <code>name="foo"</code> attribute. The "foo" can be any convenient name you like, and is only used on this single page. But you will have to use it later whenever you make a footnote which uses it. So if you only have one or two sources on a page, you might just stick with the first initial, or first few letters, of the author's name. | # In the opening tag of each source, you will need to include a <code>name="foo"</code> attribute. The "foo" can be any convenient name you like, and is only used on this single page. But you will have to use it later whenever you make a footnote which uses it. So if you only have one or two sources on a page, you might just stick with the first initial, or first few letters, of the author's name. | ||
Revision as of 15:40, 19 March 2016
Putting a Bibliography on a Page
- Near the end of the page, you should create a Notes section.
- In the Notes section, you will use the
<references>...</references>
tag. - Within the
<references>
tag pair you can put a<ref>...</ref>
line for each individual source. - Each individual source can either be spelled out for your page, or a
Source:
page (see below) can be made for it, in which case, you will use{{ }}
to include it as with any other template. - In the opening tag of each source, you will need to include a
name="foo"
attribute. The "foo" can be any convenient name you like, and is only used on this single page. But you will have to use it later whenever you make a footnote which uses it. So if you only have one or two sources on a page, you might just stick with the first initial, or first few letters, of the author's name.
Example
In this example, we'll make a reference to a book by Shawn which isn't interesting enough to break out into its own Source:
page, and Walton's The South Pennsylvania Railroad, which definitely is.
= Notes = <references> <ref name="k">Knight, Shawn (2016). ''Obscure Things That Only I Care About.'' Pittsburgh, Pennsylvania: A Little Knight Reading, Ltd. <ref name="w">{{Source:Walton SPRR}} </references>
Adding a new Source
- Create a page in the
Source:
namespace. Give it a name which is not too long, but descriptive enough of author and title. For example, Walter F. Walton's The South Pennsylvania Railroad is the only text by him we have as a source, so we named the pageSource:Walton SPRR
. - In that page, put the text you wish to appear in a references list: the bibliography citation.
Sources Currently Set Up
Remember to put the prefix Source:
in front of each of these names if using them in your page.