Template:Cite journal

From Iron Chariots Wiki
(Difference between revisions)
Jump to: navigation, search
(documentation conversion in progress -- back later to finish)
(encapsulate {doc})
 
(9 intermediate revisions by one user not shown)
Line 30: Line 30:
 
}}{{if|test={{{author|}}}{{{last|}}}{{{year|}}}{{{date|}}}
 
}}{{if|test={{{author|}}}{{{last|}}}{{{year|}}}{{{date|}}}
 
   |then= 
 
   |then= 
}}<!--{{#ifeq:{{{quotes|}}}  
+
}}<!--{{#ifeq:{{{quotes|}}} | no |  | {{#if: {{{curly|}}}|“|-->"<!--}}
| no  
+
}}-->{{if|test={{{url|}}}
|  
+
   |then=[{{{url}}} {{{title}}}]
  | {{#if: {{{curly|}}}|“|"}}  
+
   |else={{{title}}}
}}{{#if:{{{url|}}}
+
}}<!--{{#ifeq:{{{quotes|}}} | no |  | {{#if: {{{curly|}}}|”|-->"<!--}}
   |[{{{url}}} {{{title}}}]
+
}}-->{{if|test={{{language|}}}
   |{{{title}}}
+
   |then=&#32;(in&#32;{{{language}}})
}}{{#ifeq:{{{quotes|}}}  
+
}}{{if|test={{{format|}}}
| no  
+
|  
+
  | {{#if: {{{curly|}}}|”|"}}  
+
}}{{#if: {{{language|}}}  
+
   | &#32;(in {{{language}}})
+
}}-->{{if|test={{{format|}}}
+
 
   |then=&#32;({{{format}}})
 
   |then=&#32;({{{format}}})
 
}}{{if|test={{{journal|}}}
 
}}{{if|test={{{journal|}}}
 
   |then=.&#32;''{{{journal}}}''
 
   |then=.&#32;''{{{journal}}}''
}}{{if|{{{volume|}}}
+
}}{{if|test={{{volume|}}}
 
   |then=&#32;'''{{{volume}}}'''
 
   |then=&#32;'''{{{volume}}}'''
}}{{if|{{{issue|}}}
+
}}{{if|test={{{issue|}}}
 
   |then=&#32;({{{issue}}})
 
   |then=&#32;({{{issue}}})
 
}}{{if|test={{{pages|}}}
 
}}{{if|test={{{pages|}}}
 
   |then=<nowiki>:</nowiki>&#32;{{{pages}}}
 
   |then=<nowiki>:</nowiki>&#32;{{{pages}}}
 
}}{{if|test={{{doi|}}}  
 
}}{{if|test={{{doi|}}}  
   |then=.&#32;[[Wikipedia:Digital_object_identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}}&#32;{{{doi}}}]
+
   |then=.&#32;[[Wikipedia:Digital_object_identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}]
 
}}{{if|test={{{issn|}}}
 
}}{{if|test={{{issn|}}}
   |then=.&#32;[[Wikipedia:International_Standard_Serial_Number|ISSN]]&#32;[http://worldcat.org/issn/{{{issn}}}&#32;{{{issn}}}]
+
   |then=.&#32;[[Wikipedia:International_Standard_Serial_Number|ISSN]]&#32;[http://worldcat.org/issn/{{{issn}}} {{{issn}}}]
 
}}{{if|test={{{pmid|}}}
 
}}{{if|test={{{pmid|}}}
 
   |then=.&#32;PMID&#32;{{{pmid}}}
 
   |then=.&#32;PMID&#32;{{{pmid}}}
Line 76: Line 70:
 
}}.{{if|test={{{quote|}}}
 
}}.{{if|test={{{quote|}}}
 
   |then=&#32;“{{{quote}}}”
 
   |then=&#32;“{{{quote}}}”
}}</cite></includeonly><noinclude>
+
}}</cite></includeonly><noinclude>{{doc}}
Please see [[Wikipedia:Template:Cite journal]] for documentation on this template, which was modified from that original to work (eventually?) on this wiki.
+
  
'''Please note that this template doesn't yet work here on Iron Chariots! See the [[Template talk:Cite journal|talk page]] for information about this.'''
+
[[Category:Informational templates|Cite journal]]
 
+
</noinclude>
== Usage ==
+
 
+
; Blank template (horizontal), common parameters only
+
: <tt><nowiki>{{cite journal | last= | first= | authorlink= | coauthors= | year= | month= | title= | journal= | volume= | issue= | pages= | id= | url= | accessdate= | quote= }}</nowiki></tt>
+
 
+
; Blank template (vertical, with coments), all parameters
+
: Replace or delete material in &lt;angle brackets> when using the template in an article.
+
: Indented items are alternatives to last no-indented item above them.
+
: <pre><nowiki>
+
{{cite journal
+
| title = <title of article>
+
| author = <full name of author>
+
  | last = <last name of author>
+
  | first = <first name of author>
+
| authorlink = <link author's name to this wiki article>
+
| coauthors = <list of coauthors>
+
| date = <YYYY-MM-DD>
+
  | year = <publication year>
+
  | month = <publication month>
+
| journal = <journal title>
+
| volume = <volume of journal>
+
| issue = <issue of journal>
+
| pages = <pages on which article appears>
+
| issn = <ISSN of journal>
+
| id = <unique identifier (specify type)>
+
  | pmid = <PubMed Unique Identifier>
+
  | doi = <digital object identifier>
+
| url = <>
+
| language = <>
+
| format = <>
+
| accessdate = <>
+
| laysummary = <>
+
| laysource = <>
+
| laydate = <>
+
| quote = <>
+
}}
+
</nowiki></pre>
+
 
+
; Notes:
+
* Please use the following format for <tt>accessdate</tt>: {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}
+
* Use ''either'' <tt>author=</tt> ''or'' <tt>last=|first=</tt>, but not both.
+
 
+
* '''quotes''': Specify "quotes=no" to disable the quotes around the title. If "quotes" is not defined or set to the empty string, the template emits quotes around the title (default).
+
* '''author''': Author
+
** '''last''' works with '''first''' to produce <code>last, first;</code>
+
** '''authorlink''' works either with '''author''' or with '''last''' & '''first''' to link to the appropriate article ([[Wikipedia:Interwikimedia link|interwiki link]])
+
** '''coauthors''': allows additional authors
+
* '''date''': ''<nowiki>[[January 1]], [[2006]]</nowiki>''. Full [[Wikipedia:Date#Dates|date]] of publication.
+
** '''year''': ''2006''. Year of publication (ignored if the ''date'' field is used).
+
*** '''month''': ''January''. Month of publication (ignored if the ''date'' field is used, or if the ''year'' field is ''not'' used).
+
* '''title''': Title of article. '''''This is the only required parameter. All other parameters are optional.'''''
+
* '''journal''': Name of the journal.
+
* '''volume''': Volume number of the journal in which the article is found
+
* '''issue''': Issue number of the journal in which the article is found
+
* '''pages''': ''<nowiki>45&ndash;47</nowiki>'': first page, and optional last page.
+
* '''issn''': The publication's [[International Standard Serial Number]] such as ''1111-2220''
+
* '''pmid''': The document's [[PMID|PubMed Unique Identifier]], such as ''15128012''
+
* '''doi''': A [[digital object identifier]] for the document, such as ''<nowiki>10.1016/j.coi.2004.08.001</nowiki>''
+
**'''doilabel''': If the doi contains some characters that must be [[Percent-encoding|escaped]], use "doilabel" for the unescaped version. See {{tl|doi}}: "id" is equivalent to "doi" and "label" is "doilabel"
+
* '''id''': A [[unique identifier]], used if none of the above are applicable.  In this case, you need to specify the kind of identifier you are using, preferably with a template like {{tl|US patent}}.  (Use one of the more specialized parameters if possible; they are linked automatically.  In other words, don't use <code><nowiki>id = PMID 15128012</nowiki></code> anymore.  Use <code>pmid = 15128012</code>.)
+
* '''url''': URL of a copy of the article, if available online.
+
** '''format''': Format, i.e. PDF. Don't specify for HTML (implied as default).
+
**: Specify as'' 'fee required' ''if free access no longer available.
+
**: Specify as'' 'Reprint' ''if a full original version but not hosted by the original publisher.
+
* '''accessdate''': Full date when URL was accessed, in [[ISO 8601]] YYYY-MM-DD format, for example "accessdate = {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}". ''Must not be wikilinked''
+
''For producing a non-wikilinked date of retrieval:''
+
:* '''accessmonthday''' and '''accessyear''': Month and day when item was accessed, for example "accessmonthday = May 10", <u>and</u> year when item was accessed, for example "accessyear = 2005". Produces: ''Retrieved on May 10, 2006.''
+
:* '''accessdaymonth''' and '''accessyear''': Month and day when item was accessed, for example "accessmonthday = 10 May", <u>and</u> year when item was accessed, for example "accessyear = 2005". Produces: ''Retrieved on 10 May 2006.''
+
*'''laysummary''': URL of a lay summary, which could be in a popular science magazine or newspaper.
+
**'''laysource''': Name of the source, e.g. ''The Guardian'' (UK newspaper) or ''New Scientist''.
+
**'''laydate''': Date of publication or, where this is not available, date of retrieval of the lay summary.
+
* '''quote''': Relevant excerpt from the journal.
+
<!--
+
 
+
DOCUMENTATION TO BE MODIFIED FOR THIS VERSION OF TEMPLATE AND THIS WIKI
+
 
+
An alternate method of adding one or more references to common media (preferably in [[Layman's terms]]) from the related journal citation can be specified ''within'' a single <code><nowiki><ref>...</ref></nowiki></code> tag using other [[:Category:Citation templates|citation templates]]; for example:
+
:<tt>''Text in the article.'''''&lt;ref&gt;'''<nowiki>{{cite journal | ... }}<br/></nowiki><br/><nowiki>
+
'''Related news articles:'''</nowiki><br/><nowiki>
+
*{{cite news | ... }}</nowiki><br/><nowiki>
+
*{{cite web | ... }}</nowiki>'''&lt;/ref&gt;'''</tt>
+
 
+
== Examples ==
+
;Formal citation
+
:<tt><nowiki>
+
{{cite journal
+
|last=Smith
+
|first=Joseph III
+
|title=Last Testimony of Sister Emma
+
|journal=The Saints' Herald
+
|volume=26
+
|year=1879
+
|month=October
+
|pages=289
+
}}
+
</nowiki></tt>
+
:→ {{cite journal
+
|last=Smith
+
|first=Joseph III
+
|title=Last Testimony of Sister Emma
+
|journal=The Saints' Herald
+
|volume=26
+
|year=1879
+
|month=October
+
|pages=289
+
}}
+
 
+
;Include URL link to free-article, pre-print or abstract
+
:<tt><nowiki>
+
{{cite journal
+
|last=Smith
+
|first=Joseph III
+
|title=Last Testimony of Sister Emma
+
|journal=The Saints' Herald
+
|volume=26
+
|issue=19
+
|date=[[October 1]], [[1879]]
+
|pages=289
+
|url=http://www.lavazone2.com/dbroadhu/IL/sain1872.htm#100179
+
|accessdate=2006-03-23
+
}}
+
</nowiki></tt>
+
:→ {{cite journal
+
|last=Smith
+
|first=Joseph III
+
|title=Last Testimony of Sister Emma
+
|journal=The Saints' Herald
+
|volume=26
+
|issue=19
+
|date=[[October 1]], [[1879]]
+
|pages=289
+
|url=http://www.lavazone2.com/dbroadhu/IL/sain1872.htm#100179
+
|accessdate=2006-03-23
+
}}
+
 
+
;Specify the [[DOI]] to provide a permanent and direct link to the article from the publisher:
+
:<tt><nowiki>
+
{{cite journal
+
|last=Giles
+
|first=Jim
+
|title=Preprint Server Seeks Way to Halt Plagiarists
+
|url=http://www.nature.com/nature/journal/v426/n6962/full/426007a.html
+
|journal=Nature
+
|date=6 November 2003
+
|pages=7
+
|doi=10.1038/426007a
+
}}
+
</nowiki></tt>
+
:→ {{cite journal
+
|last=Giles
+
|first=Jim
+
|title=Preprint Server Seeks Way to Halt Plagiarists
+
|url=http://www.nature.com/nature/journal/v426/n6962/full/426007a.html
+
|journal=Nature
+
|date=6 November 2003
+
|pages=7
+
|doi=10.1038/426007a
+
}}
+
 
+
;Other examples
+
*<tt><nowiki>
+
{{cite journal
+
|last=Fowler
+
|first=Martin
+
|authorlink=Martin Fowler
+
|coauthors=Kent Beck
+
|title=Last Testimony of Sister Emma
+
|journal=The Saints' Herald
+
|volume=26
+
|year=1879
+
|month=October
+
|pages=289
+
}}
+
</nowiki></tt>
+
:→ {{cite journal
+
|last=Fowler
+
|first=Martin
+
|authorlink=Martin Fowler
+
|coauthors=Kent Beck
+
|title=Last Testimony of Sister Emma
+
|journal=The Saints' Herald
+
|volume=26
+
|year=1879
+
|month=October
+
|pages=289
+
}}
+
 
+
*<tt><nowiki>
+
{{cite journal
+
|first=W. Hugh
+
|last=Woodin
+
|title=The Continuum Hypothesis, Part I
+
|journal=Notices of the AMS
+
|volume=48
+
|issue=6
+
|year=2001
+
|pages=567–576
+
|url=http://www.ams.org/notices/200106/fea-woodin.pdf
+
|language=Greek
+
|format=PDF
+
}}
+
</nowiki></tt>
+
:→ {{cite journal
+
|first=W. Hugh | last = Woodin
+
|title=The Continuum Hypothesis, Part I
+
|journal=Notices of the AMS
+
|volume=48
+
|issue=6
+
|year=2001
+
|pages=567–576
+
|url=http://www.ams.org/notices/200106/fea-woodin.pdf
+
|language=Greek
+
|format=PDF
+
}}
+
 
+
*<tt><nowiki>{{cite journal
+
|title=Disney Releases 10 Titles on Laser Videodisc
+
|year=1982
+
|journal=VIDEODISC/VIDEOTEX
+
|volume=2
+
|issue=3
+
|pages=175
+
}}</nowiki></tt>
+
:→ {{cite journal
+
|title=Disney Releases 10 Titles on Laser Videodisc
+
|year=1982
+
|journal=VIDEODISC/VIDEOTEX
+
|volume=2
+
|issue=3
+
|pages=175
+
}}
+
 
+
==Useful links==
+
* [[Zotero]] - find articles in [[Mozilla Firefox]] and easily paste them into Wikipedia as citation templates with Ctrl-Alt-C
+
* [[User:Verisimilus|Verisimilus]]'s [http://www.srcf.ucam.org/~ms609/Wiki/Wiki Cite generator] - find articles using built-in [[Google Scholar]] interface and automatically produce an appropriate cite template. Also features a [[BibTeX]] to <nowiki>{{cite}}</nowiki> converter.
+
 
+
-->
+
[[Category:Informational templates]]</noinclude>
+

Latest revision as of 12:49, 29 October 2008

The documentation for this template is transcluded from Template:Cite journal/doc. Please edit that page if you want to change something in the documentation. Do not edit this page unless you know what you're doing.

Contents

Purpose

To provide a consistent formatting to journal citations in references.

Note

This template was copied and modified from the original at Wikipedia:Template:Cite journal. The quotes and curly parameters are not used in this version.

Usage

Blank template, horizontal format, common parameters only
{{cite journal | last= | first= | authorlink= | coauthors= | year= | month= | title= | journal= | volume= | issue= | pages= | id= | url= | accessdate= | quote= }}
Blank template, vertical format, with comments, all parameters
  • Replace or delete any <angle-bracketed text> below when using the template in an article.
  • Indented items are alternatives to the last non-indented item above them.
  • doi is used in a URL to link to information at doi.org. If the document identifier has characters that need to be "percent-escaped" (such as "%26" in place of "&"), then doilabel should contain the raw, "unescaped" version.
{{cite journal
| author = <full name of author>
  | last = <last name of author>
  | first = <first name of author>
| authorlink = <link author's name to this wiki article>
| coauthors = <list of coauthors>
| date = <date of publication>
  | year = <publication year>
  | month = <publication month>
| title = <title of article>
| journal = <journal title>
| volume = <volume of journal>
| issue = <issue of journal>
| pages = <page(s) on which article appears>
| issn = <ISSN of journal>
| id = <unique identifier (specify type)>
  | pmid = <PubMed Unique Identifier>
  | doi = <digital object identifier>
  | doilabel = <digital object identifier label (see note below)>
| url = <URL for online version of article>
| format = <format for URL document, if not HTML>
| language = <language article is written in, if not English>
| accessdate = <date URL was accessed>
  | accessyear = <year URL was accessed>
  | accessmonthday = <month and day URL was accessed>
    | accessdaymonth = <day and month URL was accessed>
| laysummary = <popular/simplified summary of article>
| laysource = <source of lay summary>
| laydate = <date of lay source>
| quote = <quote from article>
}}

Examples

Formal citation
{{cite journal | last=Smith | first=Joseph III | title=Last Testimony of Sister Emma | journal=The Saints' Herald | volume=26 | year=1879 | month=October | pages=289 }}
Smith, Joseph III (October 1879) . "Last Testimony of Sister Emma". The Saints' Herald 26: 289.
Including links to author article on Wikipedia and text of source
{{cite journal | last=Smith | first=Joseph III | authorlink=Wikipedia:Joseph Smith III | title=Last Testimony of Sister Emma | journal=The Saints' Herald | volume=26 | issue=19 | date=October 1, 1879 | pages=289 | url=http://www.lavazone2.com/dbroadhu/IL/sain1872.htm#100179 | accessdate=2006-03-23 }}
Smith, Joseph III (October 1, 1879) . "Last Testimony of Sister Emma". The Saints' Herald 26 (19): 289. Retrieved on 2006-03-23.
Specifying the DOI to provide a permanent link to the article from the publisher
{{cite journal | last=Giles | first=Jim | title=Preprint Server Seeks Way to Halt Plagiarists | url=http://www.nature.com/nature/journal/v426/n6962/full/426007a.html | journal=Nature | date=6 November 2003 | pages=7 | doi=10.1038/426007a }}
Giles, Jim (6 November 2003) . "Preprint Server Seeks Way to Halt Plagiarists". Nature: 7. DOI:10.1038/426007a.
Another example
  • {{cite journal | first=W. Hugh | last=Woodin | title=The Continuum Hypothesis, Part I | journal=Notices of the AMS | volume=48 | issue=6 | year=2001 | pages=567–576 | url=http://www.ams.org/notices/200106/fea-woodin.pdf | language=Greek | format=PDF }}
Woodin, W. Hugh (2001) . "The Continuum Hypothesis, Part I" (in Greek) (PDF). Notices of the AMS 48 (6): 567–576.
Personal tools
Namespaces
Variants
Actions
wiki navigation
IronChariots.Org
Toolbox