Difference between revisions of "Help:Cite"

From The Coppermind
Jump to navigation Jump to search
m (updated to use {{ref}}})
m
Line 3: Line 3:
   
 
There are a few items you will need to know about:
 
There are a few items you will need to know about:
  +
* The [[:Category: Reference templates|reference templates]]
* The {{T|ref}} template
 
 
* The <nowiki><references /></nowiki> tag
 
* The <nowiki><references /></nowiki> tag
   

Revision as of 06:52, 20 August 2014

This help article explains how to add a reference or footnote to an article.

There are a few items you will need to know about:

The easiest way to add a reference to an article is by adding {{ref|This is a reference}}. It will appear like this Cite error: Invalid <ref> tag; refs with no name must have content If you try and save the article now, you might get the following error:

Cite error: <ref> tags exist, but no <references/> tag was found

This is because it wants to add a list of all the references you've added to the article, but you havent told it where to do this. The best and most preferred place for them is at the end of the article in a section called Notes, along with any Categories and Information tables. To do this, add a section at the end as follows

== Notes ==
<references />
info tables
categories

This will produce a list as follows

Notes


Named references

If you want to reuse a reference, say two parts of the article refer to the same chapter, you can add a name to the reference which allows you to reuse it somewhere else. This is done as follows

This is the first fact{{ref|name=NAME|this is a reference that gets used multiple times}}[1]

This is another fact that needs the sane reference{{ref|name=NAME|empty=true}}[1] or <ref name=NAME />[1] The empty=true argument is optional, and should only be used to defer the text to a following named reference.{{ref|name=NAME}}[1]

Notes

  1. a b c d Cite error: Invalid <ref> tag; no text was provided for refs named NAME

Notes versus References

Some articles have points which aren't references, but still need to be notation rather than part of the article proper. This can be accomplished with the group tag.

This is a statement which needs notating

{{ref|group=nb|And this is a notation}}Cite error: Invalid <ref> tag; refs with no name must have content

Where as this needs a reference

{{ref|This tag doesnt even have a group}}Cite error: Invalid <ref> tag; refs with no name must have content

Notes

<references />
notations
<references group=nb />