Template:Reflist
Usage
Use this template to create a reference list in an article.
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 currently render properly only in Mozilla Firefox,[1] though the feature is included in CSS3, so it should work for a larger number of browsers in the future.[2]
Three options for usage
Option 1 (only specific references) - see w:The Rule
== Content == Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist}}
Option 2 (only general references) - see w:National Publications
== Content == Lorem ipsum. Lorem ipsum dolor sit amet. == References == {{refbegin}} * general reference 1 * general reference 2 {{refend}}
Option 3 (both specific and general references) - see w:Elephant
== 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}} * general reference 1 * general reference 2 {{refend}}
TemplateData
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1
or useTemplateData=only
on the /doc
subpage and transcluding it with {{Documentation}} into the template. <nowiki>
-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>
-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
A reference list, with options for setting columns, groups, extra references etc.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Column Count | 1 | no description
| Number | optional |
Column Width | colwidth | no description | String | optional |
List Style | liststyle | Specifies the style used when the reference list is enumerated; accepts any valid CSS value defined for “list-style-type”.
| String | optional |
Group name | group | The name of the references group. | String | optional |
List of references | refs | Provides a space to define named references for use in the article. | Content | suggested |
See also
- w:Wikipedia:Citing sources
- w:Wikipedia:Footnotes
- Templates recommended for use with Reflist
- Similar-functioning templates
References
- ↑ CSS3 Multi-Column Thriller (2005-12-30). Retrieved on 2006-11-24.
- ↑ CSS3 module: Multi-column layout. W3C (2005-12-15). Retrieved on 2006-11-24.