Difference between revisions of "Template:Reflist"
Pichulator (Talk | contribs) |
m (cat added) |
||
Line 20: | Line 20: | ||
| #default = decimal}}}}};"> | | #default = decimal}}}}};"> | ||
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude> | {{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude> | ||
− | {{ | + | {{Documentation}}[[Category:Citation Templates]]</noinclude> |
Latest revision as of 09:52, 20 October 2014
This template encapsulates the single tag to show the list of references defined by 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.
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}}
Example
Lorem ipsum.[1] Lorem ipsum dolor sit amet.[2]
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.
List-defined references
A list of references may be defined within {{Reflist}} using the refs parameter, just like including named <ref name=". . ."> elements inside the <references> container.
Example
This is reference 1.<ref name="refname1" /> This is reference 2.<ref name="refname2" /> {{Reflist|refs= <ref name="refname1">content1</ref> <ref name="refname2">content2</ref> }}
Result
This is reference 1.[LDR 1] This is reference 2.[LDR 2]
The “LDR” group text is to avoid conflicts with other groups of references in this documentation and would not be present in real use.
See also
- Wikipedia:Citing sources – style guide for the citation of sources
- Wikipedia:Manual of Style (footnotes) – style guide for footnotes and inline citations
- Wikipedia:Citation templates – templates for use with references
- {{Refbegin}} and {{Refend}} – format reference lists