Template:Cite journal

From Iron Chariots Wiki
(Difference between revisions)
Jump to: navigation, search
(+ note: see talk)
(encapsulate {doc})
 
(14 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly><cite style="font-style:normal">{{#if:{{{author|}}}{{{last|}}}
+
<includeonly><cite style="font-style:normal">{{if|test={{{author|}}}{{{last|}}}
   |{{#if:{{{authorlink|}}}
+
   |then={{if|test={{{authorlink|}}}
     |[[{{{authorlink}}}|{{#if:
+
     |then=[[{{{authorlink}}}|{{if|test={{{last|}}}
      {{{last|}}}
+
       |then={{{last}}}{{if|test={{{first|}}}
       |{{{last}}}{{#if:
+
         |then=,&#32;{{{first}}}
        {{{first|}}}
+
         |, {{{first}}}
+
 
       }}
 
       }}
       |{{{author}}}
+
       |else={{{author}}}
 
     }}]]
 
     }}]]
     |{{#if:{{{last|}}}
+
     |else={{if|test={{{last|}}}
       |{{{last}}}{{#if:
+
       |then={{{last}}}{{if|test={{{first|}}}
        {{{first|}}}
+
         |then=,&#32;{{{first}}}
         |, {{{first}}}
+
 
       }}
 
       }}
       |{{{author}}}
+
       |else={{{author}}}
 
     }}
 
     }}
 
   }}
 
   }}
}}{{#if:{{{author|}}}{{{last|}}}
+
}}{{if|test={{{author|}}}{{{last|}}}
   |{{#if:{{{coauthors|}}}
+
   |then={{if|test={{{coauthors|}}}
     | <nowiki>;</nowiki> {{{coauthors}}}
+
     |then=&#32;<nowiki>;</nowiki>&#32;{{{coauthors}}}
 
   }}
 
   }}
}}{{#if:{{{date|}}}
+
}}{{if|test={{{date|}}}
   |&#32;({{{date}}})
+
   |then=&#32;({{{date}}})
   |{{#if:{{{year|}}}
+
   |else={{if|test={{{year|}}}
     |{{#if:{{{month|}}}
+
     |then={{if|test={{{month|}}}
       |&#32;({{{month}}} {{{year}}})
+
       |then=&#32;({{{month}}}&#32;{{{year}}})
       |&#32;({{{year}}})
+
       |else=&#32;({{{year}}})
 
     }}
 
     }}
 
   }}
 
   }}
}}{{#if:{{{author|}}}{{{last|}}}
+
}}{{if|test={{{author|}}}{{{last|}}}
   | .
+
   |then=&#32;.
}}{{#if:{{{author|}}}{{{last|}}}{{{year|}}}{{{date|}}}
+
}}{{if|test={{{author|}}}{{{last|}}}{{{year|}}}{{{date|}}}
   | &#32;
+
   |then=&#32;
}}{{#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  
+
   |then=&#32;({{{format}}})
|  
+
}}{{if|test={{{journal|}}}
  | {{#if: {{{curly|}}}|”|"}}  
+
   |then=.&#32;''{{{journal}}}''
}}{{#if: {{{language|}}}  
+
}}{{if|test={{{volume|}}}
   | &#32;(in {{{language}}})
+
   |then=&#32;'''{{{volume}}}'''
}}{{#if: {{{format|}}}
+
}}{{if|test={{{issue|}}}
   | &#32;({{{format}}})
+
   |then=&#32;({{{issue}}})
}}{{#if:{{{journal|}}}
+
}}{{if|test={{{pages|}}}
   |. ''{{{journal}}}''
+
   |then=<nowiki>:</nowiki>&#32;{{{pages}}}
}}{{#if:{{{volume|}}}
+
}}{{if|test={{{doi|}}}  
   |&#32;'''{{{volume}}}'''
+
   |then=.&#32;[[Wikipedia:Digital_object_identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}]
}}{{#if:{{{issue|}}}
+
}}{{if|test={{{issn|}}}
   |&#32;({{{issue}}})
+
   |then=.&#32;[[Wikipedia:International_Standard_Serial_Number|ISSN]]&#32;[http://worldcat.org/issn/{{{issn}}} {{{issn}}}]
}}{{#if:{{{pages|}}}
+
}}{{if|test={{{pmid|}}}
   |<nowiki>:</nowiki> {{{pages}}}
+
   |then=.&#32;PMID&#32;{{{pmid}}}
}}{{#if: {{{doi|}}}  
+
}}{{if|test={{{id|}}}
   | . [[Wikipedia:Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}]
+
   |then=.&#32;{{{id}}}
}}{{#if:{{{issn|}}}
+
}}{{if|test={{{accessdate|}}}
   |. [[Wikipedia:International Standard Serial Number|ISSN]] [http://worldcat.org/issn/{{{issn}}} {{{issn}}}]
+
   |then=.&#32;Retrieved&#32;on&#32;{{{accessdate}}}{{if|test={{{accessyear|}}}
}}{{#if:{{{pmid|}}}
+
    |then=,&#32;{{{accessyear}}} }}
   |. PMID {{{pmid}}}
+
}}{{if|test={{{accessmonthday|}}}
}}{{#if:{{{id|}}}
+
   |then=&#32;Retrieved&#32;on&#32;{{{accessmonthday}}},&#32;{{{accessyear}}}
   |. {{{id}}}
+
}}{{if|test={{{accessdaymonth|}}}
}}{{#if:{{{accessdate|}}}
+
   |then=&#32;Retrieved&#32;on&#32;{{{accessdaymonth}}}&#32;{{{accessyear}}}
   |. Retrieved on {{{accessdate}}}{{#if: {{{accessyear|}}} | , {{{accessyear}}} }}
+
}}{{if|test={{{laysummary|}}}
}}{{#if: {{{accessmonthday|}}}
+
   |then=.&#32;[{{{laysummary}}}&#32;Lay&#32;summary]{{if|test={{{laysource|}}}
   | &#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}
+
    |then=&nbsp;&ndash;&nbsp;''{{{laysource}}}''
}}{{#if: {{{accessdaymonth|}}}
+
  }}
   | &#32;Retrieved on {{{accessdaymonth}}} {{{accessyear}}}
+
}}{{if|test={{{laydate|}}}
}}{{#if: {{{laysummary|}}}
+
   |then=&#32;({{{laydate}}})
   |. [{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}|&nbsp;&ndash;&nbsp;''{{{laysource}}}''}}
+
}}.{{if|test={{{quote|}}}
}}{{#if: {{{laydate|}}}
+
   |then=&#32;“{{{quote}}}”
   | &#32;({{{laydate}}})
+
}}</cite></includeonly><noinclude>{{doc}}
}}.{{#if: {{{quote|}}}
+
   | &#32;“{{{quote}}}”
+
}}</cite></includeonly><noinclude>Please see [[Wikipedia:Template:Cite journal]] for documentation of this template, which was copied directly from there.
+
 
+
'''Note that this template doesn't yet work here on Iron Chariots! See the [[Template talk:Cite journal|talk page]].'''
+
  
[[Category:Informational templates]]</noinclude>
+
[[Category:Informational templates|Cite journal]]
 +
</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