Citations: Difference between revisions

From Wayne's Dusty Box of Words
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 8: Line 8:
|-
|-
! Wiki code !! Render
! Wiki code !! Render
|-
|- style="vertical-align:top;"
| style="width: 50%" | The Sun is pretty big.<code><nowiki><ref></nowiki></code>E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23–5.<code><nowiki></ref></nowiki></code> The Moon, however, is not so big.<code><nowiki><ref></nowiki></code>R. Smith, "Size of the Moon", ''Scientific American'', 46 (April 1978): 44–6.<code><nowiki></ref></nowiki></code>
| style="width: 50%" | The Sun is pretty big.<code><nowiki><ref></nowiki></code>E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23–5.<code><nowiki></ref></nowiki></code> The Moon, however, is not so big.<code><nowiki><ref></nowiki></code>R. Smith, "Size of the Moon", ''Scientific American'', 46 (April 1978): 44–6.<code><nowiki></ref></nowiki></code>


Line 26: Line 26:
|-
|-
! Wiki code !! Render
! Wiki code !! Render
|-
|- style="vertical-align:top;"
| style="width: 50%" | According to scientists, the Sun is pretty big <code><nowiki><ref></nowiki></code>E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23–5.<code><nowiki></ref></nowiki></code> In fact, it is very big <code><nowiki><ref group="footnotes"></nowiki></code> Take their word for it. Don't look directly at the sun!<code><nowiki></ref></nowiki></code>
| style="width: 50%" | According to scientists, the Sun is pretty big <code><nowiki><ref></nowiki></code>E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23–5.<code><nowiki></ref></nowiki></code> In fact, it is very big <code><nowiki><ref group="footnotes"></nowiki></code> Take their word for it. Don't look directly at the sun!<code><nowiki></ref></nowiki></code>


Line 47: Line 47:
== Pushing Details to References Section ==
== Pushing Details to References Section ==
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 <code><nowiki><references /></nowiki></code> section, to the place where they will actually appear to the reader.
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 <code><nowiki><references /></nowiki></code> section, to the place where they will actually appear to the reader.
{| class="wikitable"
|+ Pushing Details Example
|-
! Wiki code !! Render
|- style="vertical-align:top;"
| style="width: 50%;" | According to scientists, the Sun is pretty big.<code><nowiki><ref name="miller" /></nowiki></code> The Moon, however, is not so big.<code><nowiki><ref name="smith" /></nowiki></code><br />
<code><nowiki>==Notes==</nowiki></code><br />
<code><nowiki><references></nowiki></code><br />
<code><nowiki><ref name="miller">E. Miller, ''The Sun'', (New York: Academic Press, 2005), 23–5.<code><nowiki></ref></nowiki></code><br />
<code><nowiki><ref name="smith">R. Smith, "Size of the Moon", ''Scientific American'', 46 (April 1978): 44–6.<code><nowiki></ref></nowiki></code><br />
<code><nowiki></references></nowiki></code>
|| According to scientists, the Sun is pretty big.<ref name="miller" /> The Moon, however, is not so big.<ref name="smith" />
'''<nowiki>Notes</nowiki>'''
<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>
|}


== Citing different parts of the same source ==
== Citing different parts of the same source ==
'''NOTE:''' Beta feature not yet implemented here.<br />
When several parts from the same work are used as references in an article, you can cluster them in the reference section. This gives readers a way to identify which references originate from the same source. It also allows you to cite different parts of the same source without repeating the entire source every time.
When several parts from the same work are used as references in an article, you can cluster them in the reference section. This gives readers a way to identify which references originate from the same source. It also allows you to cite different parts of the same source without repeating the entire source every time.
{| class="wikitable"
|+ Multiple Citings Example
|-
! Wiki code !! Render
|- style="vertical-align:top;"
| style="width: 50%" | According to scientists, the Sun is pretty big. <code><nowiki><ref name="Miller"></nowiki></code>E. Miller, ''The Sun'', (New York: Academic Press, 2005)<code><nowiki></ref></nowiki></code> In fact, it is very big. <code><nowiki><ref extends="Miller">p. 123<code><nowiki></ref></nowiki></code> Take their word for it. Don't look directly at the sun! <code><nowiki><ref extends="Miller"></nowiki></code>p. 42<code><nowiki></ref></nowiki></code><br />
<code><nowiki>==References==</nowiki></code><br />
<code><nowiki><references /></nowiki></code>
|| According to scientists, the Sun is pretty big. <ref name="Miller">E. Miller, ''The Sun'', (New York: Academic Press, 2005)</ref> In fact, it is very big. <ref extends="Miller">p. 123</ref> Take their word for it. Don't look directly at the sun! <ref extends="Miller">p. 42</ref>
<nowiki>References</nowiki>
<references />
|}
[[Category:Knowledge Base]]
[[Category:MediaWiki]]

Latest revision as of 19:25, 15 January 2021

Basic <ref> tag

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 <references /> tag inserts the text of all the citations which have defined in <ref> tags up to that point in the page.


Basic <ref> Example
Wiki code Render
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 />

The Sun is pretty big.[1] The Moon, however, is not so big.[2]

Notes

  1. E. Miller, The Sun, (New York: Academic Press, 2005), 23–5.
  2. R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44–6.

Grouped References

Generates separate reference lists for citations and miscellaneous footnotes

Grouped References Example
Wiki code Render
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 />

According to scientists, the Sun is pretty big.[1] In fact, it is very big [footnotes 1]

Notes

  1. Take their word for it. Don't look directly at the sun!

References

  1. E. Miller, The Sun, (New York: Academic Press, 2005), 23–5.

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" />.

Pushing Details to References Section

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.

Pushing Details Example
Wiki code Render
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.<code><nowiki></ref>
<ref name="smith">R. Smith, "Size of the Moon", ''Scientific American'', 46 (April 1978): 44–6.<code><nowiki></ref>
</references>

According to scientists, the Sun is pretty big.[1] The Moon, however, is not so big.[2]

Notes

  1. E. Miller, The Sun, (New York: Academic Press, 2005), 23–5.
  2. R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44–6.

Citing different parts of the same source

NOTE: Beta feature not yet implemented here.
When several parts from the same work are used as references in an article, you can cluster them in the reference section. This gives readers a way to identify which references originate from the same source. It also allows you to cite different parts of the same source without repeating the entire source every time.

Multiple Citings Example
Wiki code Render
According to scientists, the Sun is pretty big. <ref name="Miller">E. Miller, The Sun, (New York: Academic Press, 2005)</ref> In fact, it is very big. <ref extends="Miller">p. 123<code><nowiki></ref> Take their word for it. Don't look directly at the sun! <ref extends="Miller">p. 42</ref>

==References==
<references />

According to scientists, the Sun is pretty big. [1] In fact, it is very big. Cite error: Invalid <ref> tag; invalid names, e.g. too many Take their word for it. Don't look directly at the sun! Cite error: Invalid <ref> tag; invalid names, e.g. too many

References

  1. E. Miller, The Sun, (New York: Academic Press, 2005)