Template:Reflist

From RationalWiki
Jump to navigation Jump to search

[edit] [purge] Documentation

This template has a sandbox (edit) for editors to experiment.
Warning icon orange.svg This template is used on a large number of pages.

In order to prevent unnecessary server load, edits should be kept to a minimum. Please experiment in the template's /sandbox or /testcases subpage, or in your own sandbox, and consider discussing your changes on the talk page before applying them.

Information icon.svg Editing a template causes all pages that use the template to be re-rendered. If the template is used often, this can put a lot of load on the server since it fills up the job queue.

Usage

Use this template to create a more flexible reference list. When a normal list is more appropriate on an article, use <references/> instead.

If used with no parameters, it will produce a reference list with a single column.

Multiple columns

Using {{reflist|2}} will create a two-column reference list, and {{reflist|3}} will create a three-column list. Three-column lists are inaccessible to users with smaller/laptop monitors and should be avoided.

Using {{reflist|colwidth=30em}} will allow the browser to automatically choose the number of columns based on the width of the browser window. Choose a column width that's appropriate for the average width of the references on the page.

Note: multiple columns render properly in Firefox (and other Gecko-based browsers), Webkit-based browsers (Chrome, Safari etc.), Opera 11.1 or later, and Internet Explorer 10. Other browsers will display a single column.

See Wikipedia for more details.

Font size

When using more than one column, you can set the font size of the entire list with the second parameter: For example, use {{reflist|2|80%}} to get a two-column list with a size of 80%.

Groups

To use this template with a specific group of references (see here), simply use {{reflist|group="groupname"}} along with any other parameters you may need.