Difference between revisions of "Template:Reflist/doc"

From Super-wiki
Jump to: navigation, search
Line 11: Line 11:
 
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.
 
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.
+
'''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 ===
 
=== Four options for usage ===

Revision as of 11:24, 21 January 2011

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 {{reflist|2}} will create a two-column reference list, and {{reflist|3}} will create a three-column list.

Using {{reflist|colwidth=30em}} 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)

== Content ==

Lorem ipsum.<ref>season, episode, etc.</ref>

Lorem ipsum dolor sit amet.<ref>season, episode, etc.</ref>

== References ==

{{reflist}}

Option 2 (repeat references)

== Content ==

Lorum ipsum.<ref>season, episode, etc.</ref>

Lorum ipsum dolor sit amet.<ref name="five01">season, episode, etc.</ref>

Lorum ipsum.<ref name"five01" />

== References ==

{{reflist}}

Note that reference name cannot be just an integer, ie. 501.

Option 3 (only general references)

== Content ==

Lorem ipsum.

Lorem ipsum dolor sit amet.

== References ==

{{refbegin}}
* general reference 1
* general reference 2
{{refend}}

Option 4 (both specific and general references)

== Content ==

Lorem ipsum.<ref>season, episode, etc.</ref>

Lorem ipsum dolor sit amet.<ref>season, episode, etc.</ref>

Lorem ipsum.

Lorem ipsum dolor sit amet.

== References ==

{{reflist}}

{{refbegin}}
* general reference 1
* general reference 2
{{refend}}