Difference between revisions of "Help:Cite"

From The Coppermind
Jump to navigation Jump to search
Line 22: Line 22:
   
 
== Reference Templates ==
 
== Reference Templates ==
The different references templates help encode different types of reference easily. The most common are the {{t|chapter ref}} and {{t|qa ref}} templates, which link to chapter summaries and [[Theoryland Interview Database]] Q&A entries respectively. Other useful templates are {{t|bws ref}}, {{t|tor ref}} and {{t|17s ref}} which help link to Brandon's site, Tor.com and the 17th Shard fansite respectively.
+
The different references templates help encode different types of reference easily. The most common are the {{t|book ref}} and {{t|qa ref}} templates, which link to chapter summaries and [[Theoryland Interview Database]] Q&A entries respectively. Other useful templates are {{t|bws ref}}, {{t|tor ref}} and {{t|17s ref}} which help link to Brandon's site, Tor.com and the 17th Shard fansite respectively.
 
* General urls can be linked to using {{t|url ref}}
 
* General urls can be linked to using {{t|url ref}}
 
* Tweets can be linked with {{t|tweet ref}}
 
* Tweets can be linked with {{t|tweet ref}}

Revision as of 16:09, 29 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


Reference Templates

The different references templates help encode different types of reference easily. The most common are the {{book ref}} and {{qa ref}} templates, which link to chapter summaries and Theoryland Interview Database Q&A entries respectively. Other useful templates are {{bws ref}}, {{tor ref}} and {{17s ref}} which help link to Brandon's site, Tor.com and the 17th Shard fansite respectively.

  • General urls can be linked to using {{url ref}}
  • Tweets can be linked with {{tweet ref}}
  • Brandon's chapter annotations can be accessed through {{annotation ref}}
  • If you want to cite a map, use {{map ref}}
  • Any other file on the wiki can be cited with {{file ref}}
  • Epigraphs can be directly referenced with {{epigraph ref}}
  • Glossary pages can be accessed through {{glossary ref}}
  • Other pages on the wiki use {{article ref}}

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