CZ:List-defined references: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>John R. Brews
(separating types of footnotes)
imported>John R. Brews
 
(11 intermediate revisions by 2 users not shown)
Line 52: Line 52:
|The '''Sun''' is the dwarf star<font color=green><nowiki><ref name=Weissman2007p71/></nowiki></font> at the center of the Solar System. There are eight major planets and other celestial bodies orbiting it.<font color=green><nowiki><ref name=Weissman2007p3/></nowiki></font> It is extremely hot, with surface temperatures in excess of 6,000 K and a central core temperature of about 15,700,000 K.<font color=green><nowiki><ref name=Weissman2007p72/></nowiki></font>  
|The '''Sun''' is the dwarf star<font color=green><nowiki><ref name=Weissman2007p71/></nowiki></font> at the center of the Solar System. There are eight major planets and other celestial bodies orbiting it.<font color=green><nowiki><ref name=Weissman2007p3/></nowiki></font> It is extremely hot, with surface temperatures in excess of 6,000 K and a central core temperature of about 15,700,000 K.<font color=green><nowiki><ref name=Weissman2007p72/></nowiki></font>  


Since the Sun is about 150,000,000 kilometers away,<font color=green><nowiki><ref name=Weissman2007p72/></nowiki></font> only a very small amount of its heat and light reach the Earth. By contrast, the Earth's Moon is very much smaller and very much colder.<font color=green><nowiki><ref name=Vasavada1999/></nowiki></font>
Since the Sun is about 150,000,000 kilometers away,<font color=green><nowiki><ref name=Weissman2007p72/></nowiki></font> only a very small amount of its heat and light reach the Earth. Because the Earth's Moon is very much smaller than Earth, it also is very much colder.<font color=green><nowiki><ref name=Vasavada1999/></nowiki></font>


<nowiki>==References==</nowiki>
<nowiki>==References==</nowiki>
Line 77: Line 77:
|The '''Sun''' is the dwarf star<ref name=Weissman2007p71/> at the center of the Solar System. There are eight major planets and other celestial bodies orbiting it.<ref name=Weissman2007p3/> It is extremely hot, with surface temperatures in excess of 6,000 K and a central core temperature of about 15,700,000 K.<ref name=Weissman2007p72/>
|The '''Sun''' is the dwarf star<ref name=Weissman2007p71/> at the center of the Solar System. There are eight major planets and other celestial bodies orbiting it.<ref name=Weissman2007p3/> It is extremely hot, with surface temperatures in excess of 6,000 K and a central core temperature of about 15,700,000 K.<ref name=Weissman2007p72/>


Since the Sun is about 150,000,000 kilometers away,<ref name=Weissman2007p72/> only a very small amount of its heat and light reach the Earth. By contrast, the Earth's Moon is very much smaller and very much colder.<ref name=Vasavada1999/>
Since the Sun is about 150,000,000 kilometers away,<ref name=Weissman2007p72/> only a very small amount of its heat and light reach the Earth. Because the Earth's Moon is very much smaller than Earth, it also is very much colder.<ref name=Vasavada1999/>


'''<big>References</big>'''
'''<big>References</big>'''
Line 93: Line 93:
}}
}}
|}
|}
Additional examples can be seen in [[Set (mathematics)#References]], which is formatted using the ''CZ:List-defined references'' methodology.


Additional 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 {{tl|reflist2}}, which works in exactly the same way, but results in a two-column format for the reference listing.
===Columns and font size===
The approach using <font color=green>{{nowrap|<nowiki>{{</nowiki>reflist<nowiki>|</nowiki>refs<nowiki>=</nowiki> xxx <nowiki>}}</nowiki>}}</font> results in a single column of references, one to a line, in a smaller font size than the main text. Two other approaches are available: <font color=green>{{nowrap|<nowiki>{{reflist2|refs= xxx }}</nowiki>}}</font> results in a double column of references, also in a reduced font size. See [[Coriolis force#Notes]], for example.  Another alternative is <font color=green>{{nowrap|<nowiki>{{reflist3 test|refs= xxx }}</nowiki>}}</font>, which results in a double column of references in the same font size as the main text. See [[Reality#References]] for an example.


===A style note===
===A style note===
Line 151: Line 153:


==Separating types of footnotes==
==Separating types of footnotes==
The {{tl|Reflist}} template also allows different categories of footnotes to be listed separately. For example, one can place notes separate from citations of sources. That is accomplished by introducing a group name along with the footnote name, for example: <font color=green><nowiki><ref name=MyNote group=Notes></nowiki></font> is inserted in the text, and then at the end of the article the section for these notes is identified as <font color=green><nowiki>{{Reflist|group=Notes|refs= xxx }}</nowiki></font>, where <font color=green>xxx</font> is the list of notes in the format already described using <font color=green><nowiki><ref name=MyNote> ... </ref></nowiki></font>. An example on this page is the note at the bottom. An article using this feature with both references and notes is [[Pole splitting]].
The {{tl|Reflist}} template also allows different categories of footnotes to be listed separately. For example, one can place explanatory notes separate from citations of sources. That is accomplished by introducing a group name along with the footnote name, for example: <font color=green><nowiki><ref name=MyNote group=Notes</nowiki>/<nowiki>></nowiki></font> is inserted in the text, and then at the end of the article the section for these notes is identified as <font color=green><nowiki>{{Reflist|group=Notes|refs= xxx }}</nowiki></font>, where <font color=green>xxx</font> is the list of notes in the format already described using <font color=green><nowiki><ref name=MyNote group=Notes> ... </ref></nowiki></font> with blank lines between entries. An example on this page is the note at the bottom. Articles using this feature for providing both references and notes are [[Pole splitting]] and [[AUSTAL2000]].
 
 
==Notes==
==Notes==
{{Reflist|group=Notes|refs=
{{Reflist|group=Notes|refs=

Latest revision as of 11:36, 3 August 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 referencing of article contents with a great deal less cluttering of the article's main body text in the edit page. Reduced clutter makes reading and revising text in the edit page much easier, and it also makes it possible to edit all the citations directly in the References section, instead of searching for them individually through the text. Creating LDR is not only cleaner than previous methods such as the <ref>-</ref> method, it is a method that will be more easily understood by new users.

Overview of how LDR works

This section explains the steps and coding to be used in the edit page of a Citizendium article in order to cite references as the sources for words or statements (sentences or paragraphs) in the main body of the article.

The user creates a short unique id (identifier or name) for each individual reference which is formatted like this:

<ref name=id/>   Note the forward slash ( / ) at the end of the id.

The id is arbitrary, but must be one word, and cannot include punctuation marks or letters like à or ö with diacritical marks.

To cite a reference in the main body of the article, the user places <ref name=id/> for that reference immediately to the right of the statement. The same insertion may be used in multiple locations in an article however many times that reference is needed.

Then in the References section at the bottom of the article, the user lists each reference formatted like this:

<ref name=id>xxxx</ref>  Where xxxx is the reference's full description. Quotation marks enclosing the id are not needed.

Note that the forward slash ( / ) is not included after the id in the References section.

Some rules

  • Where the user wants to locate a reference for text that is followed by punctuation like a period or a comma, the insertion <ref name=id/> should be located immediately to the right of that punctuation, and should be separated from the next word or next sentence by a single blank character space.
  • In the References section, a blank line space must be provided between each listed reference.
  • Note that the list in the References section is within a template. The list must start with {{reflist|refs= and it must end with }} exactly as shown in the example coding below.

Putting it together

To summarize, 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, but cannot include punctuation marks or letters like à or ö with diacritical marks. Connection to these definitions from the text is done with an insertion, such as <ref name=Ref1/>, but notice, with a forward slash.

Although not necessary to its functionality, for ease in editing, the list of named notes in the References section can be put in alphabetical order. That makes finding the note in this list easier in the event the note should be edited, for example to update a link or add to descriptive material.

Example

This is how to code the edit page of an article using "List-Defined References" :

The Sun is the dwarf star<ref name=Weissman2007p71/> at the center of the Solar System. There are eight major planets and other celestial bodies orbiting it.<ref name=Weissman2007p3/> It is extremely hot, with surface temperatures in excess of 6,000 K and a central core temperature of about 15,700,000 K.<ref name=Weissman2007p72/>

Since the Sun is about 150,000,000 kilometers away,<ref name=Weissman2007p72/> only a very small amount of its heat and light reach the Earth. Because the Earth's Moon is very much smaller than Earth, it also is very much colder.<ref name=Vasavada1999/>

==References==

{{reflist|refs=

<ref name=Vasavada1999>{{ cite journal | author=Ashwin R. Vasavadaa, David A. Paige and Stephen E. Wood | title= Near-Surface Temperatures on Mercury and the Moon and the Stability of Polar Ice Deposits | journal= Icarus | volume=141 | issue=2 |pages=pp. 179-193 | date= October 1999 |doi=10.1006/icar.1999.6175 }}</ref>

<ref name=Weissman2007p3>{{ cite book | author=Paul R Weissman |url=http://books.google.com/books?id=G7UtYkLQoYoC&pg=PA3 | title=Encyclopedia of the solar system |chapter=Chapter 1: The solar system and its place in the galaxy| edition= 2nd Edition |editor=Lucy-Ann McFadden, Paul Robert Weissman, Torrence V. Johnson, editors | publisher=Academic Press | year=2007 | pages= pp. 3 ff |isbn= 0120885891 }}</ref>

<ref name=Weissman2007p71>{{ cite book | author=Markus J Aschwanden |url=http://books.google.com/books?id=G7UtYkLQoYoC&pg=PA71 | title=Encyclopedia of the solar system |chapter=Chapter 4: The Sun | edition= 2nd Edition |editor=Lucy-Ann McFadden, Paul Robert Weissman, Torrence V. Johnson, editors | publisher=Academic Press | year=2007 | pages= pp. 71 ff | isbn= 0120885891 }}</ref>

<ref name=Weissman2007p72>{{ cite book | author=Markus J Aschwanden |url=http://books.google.com/books?id=G7UtYkLQoYoC&pg=PA72 | title=Encyclopedia of the solar system |chapter=Table 1: Basic physical properties of the sun | edition= 2nd Edition |editor=Lucy-Ann McFadden, Paul Robert Weissman, Torrence V. Johnson, editors | publisher=Academic Press | year=2007 | pages= p. 72 | isbn= 0120885891 }}</ref>

}}


This is what the above coding produces on the article page :

The Sun is the dwarf star[1] at the center of the Solar System. There are eight major planets and other celestial bodies orbiting it.[2] It is extremely hot, with surface temperatures in excess of 6,000 K and a central core temperature of about 15,700,000 K.[3]

Since the Sun is about 150,000,000 kilometers away,[3] only a very small amount of its heat and light reach the Earth. Because the Earth's Moon is very much smaller than Earth, it also is very much colder.[4]

References

  1. Markus J Aschwanden (2007). “Chapter 4: The Sun”, Lucy-Ann McFadden, Paul Robert Weissman, Torrence V. Johnson, editors: Encyclopedia of the solar system, 2nd Edition. Academic Press, pp. 71 ff. ISBN 0120885891. 
  2. Paul R Weissman (2007). “Chapter 1: The solar system and its place in the galaxy”, Lucy-Ann McFadden, Paul Robert Weissman, Torrence V. Johnson, editors: Encyclopedia of the solar system, 2nd Edition. Academic Press, pp. 3 ff. ISBN 0120885891. 
  3. 3.0 3.1 Markus J Aschwanden (2007). “Table 1: Basic physical properties of the sun”, Lucy-Ann McFadden, Paul Robert Weissman, Torrence V. Johnson, editors: Encyclopedia of the solar system, 2nd Edition. Academic Press, p. 72. ISBN 0120885891. 
  4. Ashwin R. Vasavadaa, David A. Paige and Stephen E. Wood (October 1999). "Near-Surface Temperatures on Mercury and the Moon and the Stability of Polar Ice Deposits". Icarus 141 (2): pp. 179-193. DOI:10.1006/icar.1999.6175. Research Blogging.

Additional examples can be seen in Set (mathematics)#References, which is formatted using the CZ:List-defined references methodology.

Columns and font size

The approach using {{reflist|refs= xxx }} results in a single column of references, one to a line, in a smaller font size than the main text. Two other approaches are available: {{reflist2|refs= xxx }} results in a double column of references, also in a reduced font size. See Coriolis force#Notes, for example. Another alternative is {{reflist3 test|refs= xxx }}, which results in a double column of references in the same font size as the main text. See Reality#References for an example.

A style note

Note that the {{cite book}} and {{cite journal}} templates used in the above coding example are formatted with the cells in a horizontal style rather than a vertical style where the cells are in a vertical column. The horizontal style looks neater and definitely uses less space. However, the horizontal style is only a suggestion, it is not mandatory.

The information fields in the templates do not have to be filled in in any particular order (the template puts them in standard order automatically), and fields can be left blank. For readers looking for sources, the url links that the template imbeds in the titles of books and papers are helpful, and isbn or doi entries will assist readers even if the url links expire.

Of course, in the References section one just can type in the information xxx in <ref name = MyRefName> xxx </ref>, but an alternative is to copy and paste one of the listings below and fill it in by copying and pasting the information.

{{cite book}}  
°°°°°°°°°°°°°°°°°°°°
{{cite book
| author =
| editor =
| title =
| chapter =
| edition =
| publisher =
| year =
| pages =
| url =
| isbn =
}}

{{cite journal}}
°°°°°°°°°°°°°°°°°°°°
{{cite journal
| author=
| title =
| journal =
| volume =
| issue =
| pages =
| date =
| url =
| doi =
}}

{{cite web}}
°°°°°°°°°°°°°°°°°°°°
{{cite web
| author =
| title =
| work =
| publisher =
| date =
| url =
| doi =
| accessdate =
}}

One fills in the fields one wants to use, and leaves the rest blank. Other fields can be found in CZ:Citation templates.

Separating types of footnotes

The {{Reflist}} template also allows different categories of footnotes to be listed separately. For example, one can place explanatory notes separate from citations of sources. That is accomplished by introducing a group name along with the footnote name, for example: <ref name=MyNote group=Notes/> is inserted in the text, and then at the end of the article the section for these notes is identified as {{Reflist|group=Notes|refs= xxx }}, where xxx is the list of notes in the format already described using <ref name=MyNote group=Notes> ... </ref> with blank lines between entries. An example on this page is the note at the bottom. Articles using this feature for providing both references and notes are Pole splitting and AUSTAL2000.

Notes

  1. For details and other templates, see CZ:Citation templates