Help:References: Difference between revisions

From Halopedia, the Halo wiki

No edit summary
(Created page with "Halopedia now supports referencing sources right in the article. After the information that needs referencing, use the following format to create a reference: <pre><ref>[http://...")
Line 1: Line 1:
On Halopedia you can add ref tags when citing sources. This uses the HTML <nowiki><ref></ref></nowiki> code.
Halopedia now supports referencing sources right in the article. After the information that needs referencing, use the following format to create a reference:


==Basic Concept==
<pre><ref>[http://www.website.com/ Name of article or source]</ref></pre>
===Format===
When citing sources, make sure that the URL/Source is formatted as so:
*<code><nowiki><ref>[http://ADD_URL_HERE '''{Media Title}''']: {Article/Chapter Title}, {Pages}</ref></nowiki></code>


For articles within Halopedia, make sure it is formatted as so:
Then add the following to the bottom of the article to create the list of sources:
*<code><nowiki><ref>[[ARTICLE TITLE|'''{Media Title}''']]: {Article/Chapter Title (Optional)}, {Pages}</ref></nowiki></code>


===Reference Tags===
<pre>== References ==
The basic concept of the <nowiki><ref></nowiki> tag is that it inserts the text enclosed by the ref tags as a footnote in a designated section, which you indicate with the this tag <nowiki><references/></nowiki>.
<references/></pre>


If you don't include <nowiki><references/></nowiki> at the end of the article, none of the footnotes will appear.
That's all there is to it! For a live example, see [[Halo (series)]].


This page itself uses footnotes, such as the one at the end of this sentence.<ref>An example source</ref> If you view the Wikicode of this page by clicking "Edit this page", you can see a working example of footnotes.
[[Category:Help|{{PAGENAME}}]]
 
*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>R. Smith, "Size of the Moon", Scientific American, 46 (April 1978): 44-6.</ref>
 
===Multiple uses of the same footnote===
 
To give a footnote a unique identifier, use <nowiki><ref name="name"/></nowiki>. You can then refer to the same footnote again by using a ref tag with the same name. The text inside the second tag doesn't matter, because the text already exists in the first reference. You can either copy the whole footnote, or you can use a terminated empty ref tag that looks like this: <nowiki><ref name="name"/></nowiki>.
 
In the following example, the same source is cited three times.
 
This is an example of multiple references to the same footnote.<ref name="multiple">Remember that when you refer to the same footnote multiple times, the text from the first reference is used.</ref>
 
Such references are particularly useful when citing sources, if different statements come from the same source.<ref name="multiple">This text is superfluous, and won't show up anywhere. We may as well just use an empty tag.</ref>
 
A concise way to make multiple references is to use empty ref tags, which have a slash at the end. Although this may reduce redundant work, please be aware that if a future editor removes the first reference, this will result in the loss of all references using the empty ref tags.<ref name="multiple" />
 
===Sources===
<references/>
 
===Columns===
If you have a lot of references they can be placed in columns to save space and ease reading. Just add the following code:
<code><nowiki>{{reflist|NUMBER OF COLUMNS}}</nowiki></code>
 
==External Links==
*[http://www.mediawiki.org/wiki/Extension:Cite/Cite.php Cite Code]
 
{{Helplist}}
 
[[Category: Help]]

Revision as of 13:58, August 6, 2010

Halopedia now supports referencing sources right in the article. After the information that needs referencing, use the following format to create a reference:

<ref>[http://www.website.com/ Name of article or source]</ref>

Then add the following to the bottom of the article to create the list of sources:

== References ==
<references/>

That's all there is to it! For a live example, see Halo (series).