Template:Reflist/doc
| 40x40px | Columns are currently supported only by newer versions of Gecko-based browsers (such as Mozilla Firefox) and WebKit-based browsers (such as Google Chrome and Safari). All versions of Internet Explorer through to version 8 and Opera through to version 10 do not support columns. See below for more information. |
| 40x40px | If you see a bigger font size than usual, it is because of a style change to reference lists in general. See this discussion. To restore the regular small font size, purge your cache. |
This template encapsulates the <references /> tag to show the list of references defined by <ref></ref> tags, with some formatting. It reduces the font size and has options for columns and groups. References can be defined within the body of the article or within the reference list.
The <ref></ref> and <references /> tags are part of the Cite.php MediaWiki extension.
{{Reflist}} may be used with {{Refbegin}} and {{Refend}} to format different styles of references.
Contents |
Usage
- Using only footnote-style references
== Content ==
Lorem ipsum.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
== References ==
{{Reflist}}
- Using only bibliographical style references
== Content ==
Lorem ipsum.
Lorem ipsum dolor sit amet.
== References ==
{{Refbegin}}
* reference 1
* reference 2
{{Refend}}
- Using both footnote-style and bibliography-style references
== Content ==
Lorem ipsum.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
Lorem ipsum.
Lorem ipsum dolor sit amet.
== References ==
{{Reflist}}
{{Refbegin}}
* reference 1
* reference 2
{{Refend}}
Font size
The font size should reduce to 90% for most browsers, but may appear to show at 100% for Internet Explorer and possibly other browsers.[1] As of December 21, 2010, the standard <references /> tag has the same font styling. The smaller font may be disabled through Special:Preferences → Gadgets → Disable smaller font sizes of elements such as Infoboxes, Navboxes and References lists.
Columns
Using {{Reflist|2}} will create a two-column reference list, and {{Reflist|3}} will create a three-column list, and so on. Choose the number of columns that is appropriate for the average width of the references on the page.
Using {{Reflist|30em}} will create columns with a minimum width of 30em, allowing the browser to automatically choose the number of columns based on the width of the web browser. Choose a column width that is appropriate for the average width of the references on the page.
Columns are currently supported only by Gecko-based browsers (such as Mozilla Firefox) and Webkit-based bowsers (such as Google Chrome and Safari). See below for more information.
Multiple uses
If {{Reflist}} is used multiple times without a parameter, each instance will include all of the previously defined references. To force the parser to close previous references, each use of {{Reflist}} must be forced as a new instance by the use of any parameter. Even an undefined parameter such as {{Reflist|close=1}} will force the references to close.
Grouped references
As of June 2008, the footnotes system supports the separation of references into groups. This allows groups for explanatory notes, table references and the like. See Wikipedia:Footnotes#Separating reference lists and explanatory notes.
The general format for the reference tag would be:
<ref group="groupname">
And for the reflist:
- {{Reflist|group="groupname"}}
- Where groupname would be a group identifier such as "note", "nb" or "label".
List-defined references
As of September 2009, references may be defined within {{Reflist}} using
Usage
This template is for giving examples of template parameter source code (useful in template documentation and talk page discussions of template code). It must have one or two parameters itself. The first is the name of the example parameter to display (this may be empty, but it must be present), and the second (optional) one is a value for the first example parameter, or (if the first {{para}} parameter is empty) an unnamed example parameter.
Examples
- {{para|name}}
- renders as
- Template loop detected: Template:Para
- {{para|title|<var>book title</var>}}
- renders as
- Template loop detected: Template:Para
- {{para| |section}}
- renders as
- Template loop detected: Template:Para
- (for unnamed parameters in the example code; note the empty first parameter in the {{para}} template)
- {{para|<var>parameter</var>|<var>value</var>}}
- renders as
- Template loop detected: Template:Para
When using literal, pre-specified values, simply provide the value (appearance as in example 3). When illustrating hypothetical, variable or user-definable values, use <var>value</var> (appearance as in example 2), and the same should be done for non-literal, example parameters (as in example 4).
See also
- Template:Tlx – for providing examples of entire-template code with included parameters
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||


Fantasy Football
Fantasy Baseball
Fantasy Basketball
Fantasy Hockey
Fantasy Cafe Wiki