User:John R. Brews/Sample2: Difference between revisions
imported>John R. Brews (Created page with "''See also'' Help:Index/Formatting/References {{TOC|right}} '''List-defined references''' (LDR) is a referencing method that moves the text of the references out of the main ...") |
imported>John R. Brews |
||
Line 25: | Line 25: | ||
::<nowiki>{{reflist|refs=</nowiki> | ::<nowiki>{{reflist|refs=</nowiki> | ||
::<nowiki><ref name= | ::<nowiki><ref name=FirstRef></nowiki> I love to use List-defined references. </ref> | ||
::<nowiki><ref name= | ::<nowiki><ref name=SecondRef></nowiki> They are easy to edit at the end of the article instead of searching all over for them. </ref> | ||
::<nowiki><ref name= | ::<nowiki><ref name=ThirdRef></nowiki> It's a win-win.</ref> | ||
::<font color=green>}}</font> | ::<font color=green>}}</font> | ||
Line 34: | Line 34: | ||
:{|cellpadding=8 align=center style="background:#fffaf5; width:99%; border:1px dotted; margin:5px;" | :{|cellpadding=8 align=center style="background:#fffaf5; width:99%; border:1px dotted; margin:5px;" | ||
|'''''List-defined references''''' are easy to set up.<font color=green><nowiki><ref name= | |'''''List-defined references''''' are easy to set up.<font color=green><nowiki><ref name=FirstRef/></nowiki></font> They do not clutter the main text,<font color=green><nowiki><ref name=SecondRef/></nowiki></font> making editing easier. <font color=green><nowiki><ref name=ThirdRef/></nowiki> | ||
|} | |} | ||
</font> | </font> | ||
Line 41: | Line 41: | ||
:{|cellpadding=8 align=center style="background:#fffaf5; width:99%; border:1px dotted; margin:5px;" | :{|cellpadding=8 align=center style="background:#fffaf5; width:99%; border:1px dotted; margin:5px;" | ||
|'''''List-defined references''''' are easy to set up.<ref name= | |'''''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/> | ||
'''<big>References</big>''' | '''<big>References</big>''' | ||
Line 47: | Line 47: | ||
{{reflist|close=0|refs= | {{reflist|close=0|refs= | ||
<ref name= | <ref name=FirstRef> I love to use List-defined references. </ref> | ||
<ref name= | <ref name=SecondRef> They are easy to edit at the end of the article instead of searching all over for them. </ref> | ||
<ref name= | <ref name=ThirdRef> It's a win-win.</ref> | ||
}} | }} |
Revision as of 14:37, 19 May 2011
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