Citations: Difference between revisions

From Wayne's Dusty Box of Words
No edit summary
Line 21: Line 21:
== Grouped References ==
== Grouped References ==
Generates separate reference lists for citations and miscellaneous footnotes
Generates separate reference lists for citations and miscellaneous footnotes
{| class="wikitable"
|+ Grouped References Example
|-
! Wiki code !! Render
|-
| 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>
<code><nowiki>==Notes==</nowiki></code><br />
<code><nowiki><references group="footnotes" /></nowiki></code>
<code><nowiki>==References==</nowiki></code><br />
<code><nowiki><references /></nowiki></code>
|| 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> 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 />
|}

Revision as of 16:12, 21 October 2020

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] The Moon, however, is not so big.Cite error: Closing </ref> missing for <ref> tag

Notes

References

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