Citations: Difference between revisions

From Wayne's Dusty Box of Words
No edit summary
Line 34: Line 34:
<code><nowiki><references /></nowiki></code>
<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>
|| 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==
==Notes==

Revision as of 16:13, 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] 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.