Help

Difference between revisions of "Citations"

From Beachapedia

(Created page with 'These are instructions for including citations and references in Beachapedia. These instructions were copied from the documentation for the Cite extension at [http://www.mediawi...')
 
Line 1: Line 1:
These are instructions for including citations and references in Beachapedia.  These instructions were copied from the documentation for the Cite extension at [http://www.mediawiki.org/w/index.php?title=Extension:Cite/Cite.php&action=edit Mediawiki.org] There are more options, but this should cover most instances that are needed on our site.
+
These are instructions for including citations and references in Beachapedia.  These instructions were copied from the documentation for the Cite extension at [http://www.mediawiki.org/w/index.php?title=Extension:Cite/Cite.php&action=edit Mediawiki.org] There are more options, but this should cover most instances that are needed on our site.
 +
 
 +
Also, visit [http://citationmachine.net/index2.php?start=# Son of Citation Machine] to simply enter your information into this online tool. This tool collects all the necessary information for crediting a source in various formats.
  
  

Revision as of 11:36, 30 August 2010

These are instructions for including citations and references in Beachapedia. These instructions were copied from the documentation for the Cite extension at Mediawiki.org There are more options, but this should cover most instances that are needed on our site.

Also, visit Son of Citation Machine to simply enter your information into this online tool. This tool collects all the necessary information for crediting a source in various formats.



Usage

The basic concept of the <ref> tag is that it inserts the text enclosed by the ref tags as a footnote in a designated section, which you indicate with the placeholder tag <references/>. The new format cannot be used interchangeably with the old format — you must pick one or the other.


If you forget to include <references/> in the article, the footnotes will not appear, but a red error message will be displayed at the end of the page.

This page itself uses footnotes, such as the one at the end of this sentence.[1] If you view the source of this page by clicking "Edit this page", you can see a working example of footnotes.

Example

According to scientists, the Sun is pretty big.<ref>E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.</ref>
The Moon, however, is not so big.<ref>R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44-6.</ref>

==Notes==
<references/>

Multiple uses of the same footnote

To give a footnote a unique identifier, use <ref name="name">. 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 following example, the same source is cited three times.

This is an example of multiple references to the same footnote.<ref name="multiple">Remember that when you refer to the same footnote multiple times, the text from the first reference is used.</ref>

Such references are particularly useful when citing sources, if different statements come from the same source.<ref name="multiple">This text is superfluous, and won't show up anywhere. We may as well just use an empty tag.</ref>

A concise way to make multiple references is to use empty ref tags, which have a slash at the end. Although this may reduce redundant work, please be aware that if a future editor removes the first reference, this will result in the loss of all references using the empty ref tags.<ref name="multiple" />

==Notes==
<references/>

The text above gives the following result in the article (see also section below):

This is an example of multiple references to the same footnote.[2]

Such references are particularly useful when citing sources, when different statements come from the same source.[2]

A concise way to make multiple references is to use empty ref tags, which have a slash at the end. Although this may reduce redundant work, please be aware that if a future editor removes the first reference, this will result in the loss of all references using the empty ref tags.[2]

Note: name= identifiers require alphabetic characters; solely relying on numerals will generate an error message

<references/>

Placing <references/> inserts the full text of all pending inline citations defined by <ref>, anywhere on the page. For example, based on the citations above, the code:

<references/>

will yield:

  1. This footnote is used as an example in the "How to use" section.
  2. 2.0 2.1 2.2 Remember that when you refer to the same footnote multiple times, the text from the first reference is used. Cite error: Invalid <ref> tag; name "multiple" defined multiple times with different content

In some language editions of Wikipedia, long reference lists may be placed using the template {{Reflist}}, which incorporates <references/>. It provides an optional parameter to display the reference list in multiple columns. For instance, the English, Hindi and Interlingua Wikipedias use the css selector references-small to make the reference text smaller than normal text.

In the case of multiple references-tags on a page, each gives the references defined in the ref-tags from the previous references-tag. In the case that these references-tags are produced by templates, each gives the references defined in the ref-tags before the first references-tag, and there is an error message that there is a ref-tag but not a references-tag.

Grouped references

This may be disabled by $wgAllowCiteGroups = false; if desired. However, it is enabled on the foundation wikis.


The following example generates separate reference lists for citations and miscellaneous footnotes:

According to scientists, the Sun is pretty big <ref>E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.</ref>.
In fact, it is very big <ref group="footnotes">Take their word for it. Don't look directly at the sun!</ref>.

==Notes==
<references group="footnotes"/>
==References==
<references/>

The anonymous group works as before, while the named group reference will show up as [footnotes 1], and the references will look like this:

  1. Test of the group argument

Separating references from text

In-text references make it easy to copy the text to another page; on the other hand, they make it hard to read. References containing a lot of data, quotes or elaborate citation templates can make up a significantly larger fraction of the source than the text that will actually be visible. To avoid this, recent versions of the extension allow moving some or all of the references into the <references/> section, to the place where they will actually appear to the reader. Thus,


According to scientists, the Sun is pretty big.<ref name="miller"/>
The Moon, however, is not so big.<ref name="smith"/>

==Notes==
<references>
<ref name="miller">E. Miller, The Sun, (New York: Academic Press, 2005), 23-5.</ref>
<ref name="smith">R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44-6.</ref>
</references>

will have the same output as the first example above.