Changes

Jump to: navigation, search

Template:Reflist/doc

712 bytes added, 21:58, 7 March 2011
no edit summary
Use this template to create a footnote-style reference list in an article. The advantage to doing this using the Ref tag is that the wiki will take care of numbering and managing the references list, editors will not need to renumber an entire references list just to add one footnote mid-article.
== Usage ==
If used with no parameters, it will simply produce a reference list in a small font. === Multiple columns === Using <tt><nowiki>{{reflist|2}}</nowiki></tt> will create a two-column reference list, and <tt><nowiki>{{reflist|3}}</nowiki></tt> will create a three-column list. Using <tt><nowiki>{{reflist|colwidth=30em}}</nowiki></tt> will allow the browser to automatically choose the number of columns based on the width of the web browser. Choose a column width that's appropriate for the average width of the references on the page. '''Note''': Multiple columns may not render properly in all browsers, as there are compatibility issues. Due to this please refrain from using columns, its listed here in the doc for the sake of comprehensiveness and possible future broad use. === Four options for usage === ==== Option 1 (only specific/unique references) ====
=== Option 1 (only specific/unique references) ===
<pre>
== Content ==
{{reflist}}
</pre>
This will create an uniquely numbered footnote at the end of each sentence, which will be a working link to the references list at the end of the article. The references themselves can also be links to other pages on the wiki, or even external pages.
==== Option 2 (repeat references) ====
=== Option 2 (repeat references) ===
<pre>
== Content ==
{{reflist}}
</pre>
This will make numbered footnotes at the end of each sentence, but the number for the second and third footnotes would be the same since they refer to the same source material. The advantage of doing this is less typing and therefore smaller page file size, especially when the reference is itself a link. Note that reference ''name'' ''' cannot ''' be just an integer, ie. 501, it must start with an alphabetical character.
==== Option 3 (only general references) ====
=== Option 3 (only general references) ===
<pre>
== Content ==
{{refend}}
</pre>
This makes a list of references at the end of the article, without any footnotes citing the references to specific text in the article.
==== Option 4 (both specific and general references) ====
=== Option 4 (both specific and general references) ===
<pre>
== Content ==
{{refend}}
</pre>
This combines both general references with in-article footnoted references.
 
 
== Multiple columns ==
Using <tt><nowiki>{{reflist|2}}</nowiki></tt> will create a two-column reference list, and <tt><nowiki>{{reflist|3}}</nowiki></tt> will create a three-column list.
Using <tt><nowiki>{{reflist|colwidth=30em}}</nowiki></tt> will allow the browser to automatically choose the number of columns based on the width of the web browser. Choose a column width that's appropriate for the average width of the references on the page.
 
'''Note''': Multiple columns may not render properly in all browsers, as there are compatibility issues. Due to this please refrain from using columns, its listed here in the doc for the sake of comprehensiveness and possible future broad use.
<includeonly>
[[Category:Templates]]
</includeonly>
451
edits

Navigation menu