This page is protected against editing.

Template:Reflist

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Reflist/doc.


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>JSON</templatedata> ./. {{TemplateBox}}
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.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

A reference list, with options for setting columns, groups, extra references etc.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Column Count1

no description

Default
1
Numberoptional
Column Widthcolwidth

no description

Stringoptional
List Styleliststyle

Specifies the style used when the reference list is enumerated; accepts any valid CSS value defined for “list-style-type”.

Suggested values
decimal lower-alpha lower-greek lower-roman upper-alpha upper-roman
Default
decimal
Stringoptional
Group namegroup

The name of the references group.

Stringoptional
List of referencesrefs

Provides a space to define named references for use in the article.

Contentsuggested

See also

References

  1. CSS3 Multi-Column Thriller (2005-12-30). Retrieved on 2006-11-24.
  2. CSS3 module: Multi-column layout. W3C (2005-12-15). Retrieved on 2006-11-24.