CZ:List-defined references: Difference between revisions
imported>Milton Beychok m (Creating new how-to article) |
imported>David Finn (removing stray space) |
||
Line 9: | Line 9: | ||
The user creates a short unique <font color=green>id</font> (identifier or name) for each individual reference which is formatted like this: | The user creates a short unique <font color=green>id</font> (identifier or name) for each individual reference which is formatted like this: | ||
:<font color=green><nowiki><ref name=id/ | :<font color=green><nowiki><ref name=id/></nowiki></font> Note the forward slash ( <font color=green>/</font> ) at the end of the <font color=green>id</font>. | ||
To cite a reference as the source for a word or statement in the main body of the article, the user places '''''only''''' the <font color=green>id</font> of that reference just to the right of the statement. An <font color=green>id</font> for any specific reference may be used in multiple locations in an article if the same reference is used for multiple words or statements in the article. | To cite a reference as the source for a word or statement in the main body of the article, the user places '''''only''''' the <font color=green>id</font> of that reference just to the right of the statement. An <font color=green>id</font> for any specific reference may be used in multiple locations in an article if the same reference is used for multiple words or statements in the article. |
Revision as of 00:25, 10 May 2011
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 much simpler and with a great deal less cluttering of the article's main body text in the edit page. That will make reading of the edit page and making revisions much easier. Creating LDR is not only simpler than the previous methods, 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.
To cite a reference as the source for a word or statement in the main body of the article, the user places only the id of that reference just to the right of the statement. An id for any specific reference may be used in multiple locations in an article if the same reference is used for multiple words or statements in the article.
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 text. Quotation marks enclosing the ( / ) are not needed.
Note that the forward slash ( / ) is not included after the id for the listed full-text references in "References" section.
Some rules
- When a comma or a period is located immediately to the right of a word or statement where the user wants to locate a reference id (e.g., <ref name=id/ >), the id should be located immediately to the right of the comma or the period and should be separated from the next word or next sentence by a single blank character space.
- A blank, line space must be provided between each listed reference.
Example
This is how to code the edit page of an article using "List-Defined References" :
The Sun is a dwarf star<ref name=Jones2005p35/> in our solar system which has 8 planets and other celestial bodies revolving around it.<ref name=Jones2005p23/> It is extremely hot, with surface temperatures in excess of 5,000 °C and a central core temperature greater than 10,000,000 °C.<ref name=Jones2005p23/>
Since the Sun is about 150,000,000 kilometers from the Earth,<ref name=Jones2005p35/> 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=Kelly2001/> ==References== {{reflist|refs= <ref name=Jones2005p23>{{cite book | author=Edward Jones, William Smith and George Jackson | title=The Solar System's Sun | edition= 4th Edition | publisher=Thompson Publishing Co. | date=September 1998 | pages=pp. 23-28 | id=ISBN 4-3782-5673-1}}</ref> <ref name=Jones2005p35>{{cite book | author=Edward Jones, William Smith and George Jackson | title=The Solar System's Sun | edition= 4th Edition | publisher=Thompson Publishing Co. | date=September 1998 | pages=pp. 35-45 | id=ISBN 4-3782-5673-1}}</ref> <ref name=Kelly2001>{{cite journal | author=Thomas Page, William Wood and John Isher | title= Lunar Surface Temperatures and the Stability of Polar Ice Deposits | journal= Solar System Astronomy | volume=32 | issue=4 |pages=pp. 179-195 | date= February 2001}}</ref> |
This is what the above coding produces on the article page :
The Sun is a large dwarf star[1] in our solar system which has 8 planets and other celestial bodies revolving around it.[2] It is extremely hot, with surface temperatures in excess of 5,000 °C and a central core temperature greater than 10,000,000 °C.[2]
Since the Sun is about 150,000,000 kilometers from the Earth,[1] 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.[3] ==References==
|
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.