User:John R. Brews/Sample2
See also Help:Index/Formatting/References
List-defined references (LDR) is a referencing method that moves the text of the references out of the main body of an article and into the References section at the bottom of the article.
LDR is a way to make references that do not clutter the edit page version of the main text. It is a method more easily understood by new users.
How LDR works
The basic templates used for bibliographic information are the same {{cite book}}, {{cite journal}} and {{cite web}} templates used with the <ref>-</ref> method.[Notes 1] However, these templates are placed not in the text, but at the end of the article following a References header using {{reflist}} and the format:
- {{reflist|refs= (notice the vertical separator and refs=)
- <ref name=Ref1> {{cite book ...}} </ref> (this is first reference)
- <ref name=Ref2> {{cite book ...}} </ref> (this is second reference, separated by a space)
- }} (these are additional final braces)
where the names "Ref1", "Ref2" are arbitrary creations of the writer. Connection to these definitions from the text is done with an insertion, such as <ref name=Ref1/>, but notice, with a forward slash.
Example
The References section for an article might appear as follows:
==References==- {{reflist|refs=
- <ref name=FirstRef> I love to use List-defined references. </ref>
- <ref name=SecondRef> They are easy to edit at the end of the article instead of searching all over for them. </ref>
- <ref name=ThirdRef> It's a win-win.</ref>
- }}
Using these references, this is how they appear on an edit page of an article using "List-Defined References" :
'''''List-defined references''''' are easy to set up.<ref name=FirstRef/> They do not clutter the main text,<ref name=SecondRef/> making editing easier.<ref name=ThirdRef/>
This is what the above coding produces on the article page :
List-defined references are easy to set up.[1] They do not clutter the main text,[2] making editing easier.[3] References
Real-world examples can be seen in the article Set (mathematics), which is formatted using the CZ:List-defined references methodology. The article Coriolis force also is formatted using the CZ:List-defined references method, but using the template {{reflist2}}, which works in exactly the same way, but results in a two-column format for the reference listing.
Notes
- ↑ For details and other templates, see CZ:Citation templates