Jump to content

Help:Citations: Difference between revisions

From SeptemWiki
m Shawn moved page Citations to Help:Citations
No edit summary
Line 1: Line 1:
= Putting a Bibliography on a Page =
== Putting a Bibliography on a Page ==


# Near the end of the page, you should create a Notes section.
# Near the end of the page, you should create a Notes section.
Line 7: Line 7:
# 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.


== Example ==
=== 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 <code>Source:</code> page, and Walton's ''The South Pennsylvania Railroad'', which definitely is.
In this example, we'll make a reference to a book by Shawn which isn't interesting enough to break out into its own <code>Source:</code> page, and Walton's ''The South Pennsylvania Railroad'', which definitely is.
Line 18: Line 18:
</nowiki>
</nowiki>


= Inserting a Footnote =
== Inserting a Footnote ==


Once you've set up a bibliography, a single footnote is easy.  Simply insert a <code><nowiki><ref name="foo"/></nowiki></code> tag wherever you want to use it.  Use the same "foo" you used in the bibliography for that source.
Once you've set up a bibliography, a single footnote is easy.  Simply insert a <code><nowiki><ref name="foo"/></nowiki></code> tag wherever you want to use it.  Use the same "foo" you used in the bibliography for that source.
Line 24: Line 24:
Do '''not''' forget the slash there; it makes the tag self-closing.  If you forget it, much of your page after it will not render.
Do '''not''' forget the slash there; it makes the tag self-closing.  If you forget it, much of your page after it will not render.


== Example ==
=== Example ===


  <nowiki>And as Shawn says in his book,<ref name="k"/> Walton's book on the South Penn<ref name="w"/> is one of the best sources we have.
  <nowiki>And as Shawn says in his book,<ref name="k"/> Walton's book on the South Penn<ref name="w"/> is one of the best sources we have.
</nowiki>
</nowiki>


= Adding a new Source to the Wiki =
== Adding a new Source to the Wiki ==


# Create a page in the <code>Source:</code> 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 page <code>Source:Walton SPRR</code>.
# Create a page in the <code>Source:</code> 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 page <code>Source:Walton SPRR</code>.
# In that page, put the text you wish to appear in a references list: the bibliography citation.
# In that page, put the text you wish to appear in a references list: the bibliography citation.


= Sources Currently Set Up =
== Sources Currently Set Up ==


Remember to put the prefix <code>Source:</code> in front of each of these names if using them in your page.
Remember to put the prefix <code>Source:</code> in front of each of these names if using them in your page.
Line 40: Line 40:
{{Special:PrefixIndex/Source:}}
{{Special:PrefixIndex/Source:}}


= Results of the Examples =
== Results of the Examples ==


And as Shawn says in his book,<ref name="k"/> Walton's book on the South Penn<ref name="w"/> is one of the best sources we have.
And as Shawn says in his book,<ref name="k"/> Walton's book on the South Penn<ref name="w"/> is one of the best sources we have.

Revision as of 16:18, 19 March 2016

Putting a Bibliography on a Page

  1. Near the end of the page, you should create a Notes section.
  2. In the Notes section, you will use the <references>...</references> tag.
  3. Within the <references> tag pair you can put a <ref>...</ref> line for each individual source.
  4. 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.
  5. 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>

Inserting a Footnote

Once you've set up a bibliography, a single footnote is easy. Simply insert a <ref name="foo"/> tag wherever you want to use it. Use the same "foo" you used in the bibliography for that source.

Do not forget the slash there; it makes the tag self-closing. If you forget it, much of your page after it will not render.

Example

And as Shawn says in his book,<ref name="k"/> Walton's book on the South Penn<ref name="w"/> is one of the best sources we have.

Adding a new Source to the Wiki

  1. 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 page Source:Walton SPRR.
  2. 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.


Results of the Examples

And as Shawn says in his book,[1] Walton's book on the South Penn[2] is one of the best sources we have.

  1. Cite error: Invalid <ref> tag; no text was provided for refs named k
  2. Cite error: Invalid <ref> tag; no text was provided for refs named w