Template:Cite journal

From Iron Chariots Wiki
(Difference between revisions)
Jump to: navigation, search
(more modifying; maaaybe ready to test; back later to try...)
(encapsulate {doc})
 
(12 intermediate revisions by one user not shown)
Line 7: Line 7:
 
       |else={{{author}}}
 
       |else={{{author}}}
 
     }}]]
 
     }}]]
     |{{if|test={{{last|}}}
+
     |else={{if|test={{{last|}}}
 
       |then={{{last}}}{{if|test={{{first|}}}
 
       |then={{{last}}}{{if|test={{{first|}}}
 
         |then=, {{{first}}}
 
         |then=, {{{first}}}
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 70: Line 64:
 
}}{{if|test={{{laysummary|}}}
 
}}{{if|test={{{laysummary|}}}
 
   |then=.&#32;[{{{laysummary}}}&#32;Lay&#32;summary]{{if|test={{{laysource|}}}
 
   |then=.&#32;[{{{laysummary}}}&#32;Lay&#32;summary]{{if|test={{{laysource|}}}
     |then=&nbsp;&ndash;&nbsp;''{{{laysource}}}''}}
+
     |then=&nbsp;&ndash;&nbsp;''{{{laysource}}}''
 +
  }}
 
}}{{if|test={{{laydate|}}}
 
}}{{if|test={{{laydate|}}}
 
   |then=&#32;({{{laydate}}})
 
   |then=&#32;({{{laydate}}})
 
}}.{{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]]</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