40,275
edits
m |
|||
* The <nowiki><references /></nowiki> tag
The easiest way to add a reference to an article is by adding <nowiki>{{ref|text=This is a reference}}</nowiki>.
It will appear like this {{ref|text=This is a reference}}
If you try and save the article now, you might get the following error:
<strong class=error><nowiki>Cite error: <ref> tags exist, but no <references/> tag was found</nowiki></strong>
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<nowiki>{{ref|name=NAME|text=this is a reference that gets used multiple times}}</nowiki>{{ref|name=NAME|text=this is a reference that gets used multiple times}}
This is another fact that needs the sane reference<nowiki>{{ref|name=NAME
If you add a named reference which doesn't include extra text with it, <nowiki>{{ref|name=NOTEXT}}</nowiki>, the following will happen.{{ref|name=NOTEXT}}
=== Notes ===
This is a statement which needs notating
<nowiki>{{ref|group=nb|text=And this is a notation}}</nowiki>{{ref|group=nb|text=And this is a notation}}
Where as this needs a reference
<nowiki>{{ref|text=This tag doesnt even have a group}}</nowiki>{{ref|text=This tag doesnt even have a group}}
=== Notes ===
<nowiki><references /></nowiki>
|