Template:Cite journal
From Iron Chariots Wiki
(Difference between revisions)
(PARTIAL conversion to our {if} template -- not finished; back later...) |
(encapsulate {doc}) |
||
| (13 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><cite style="font-style:normal">{{if|test={{{author|}}}{{{last|}}} | <includeonly><cite style="font-style:normal">{{if|test={{{author|}}}{{{last|}}} | ||
| − | |{{if|test={{{authorlink|}}} | + | |then={{if|test={{{authorlink|}}} |
| − | |[[{{{authorlink}}}|{{if| | + | |then=[[{{{authorlink}}}|{{if|test={{{last|}}} |
| − | + | |then={{{last}}}{{if|test={{{first|}}} | |
| − | |{{{last}}}{{if| | + | |then=, {{{first}}} |
| − | + | ||
| − | |, {{{first}}} | + | |
}} | }} | ||
| − | |{{{author}}} | + | |else={{{author}}} |
}}]] | }}]] | ||
| − | |{{if|test={{{last|}}} | + | |else={{if|test={{{last|}}} |
| − | |{{{last}}}{{if| | + | |then={{{last}}}{{if|test={{{first|}}} |
| − | + | |then=, {{{first}}} | |
| − | |, {{{first}}} | + | |
}} | }} | ||
| − | |{{{author}}} | + | |else={{{author}}} |
}} | }} | ||
}} | }} | ||
}}{{if|test={{{author|}}}{{{last|}}} | }}{{if|test={{{author|}}}{{{last|}}} | ||
| − | |{{if|test={{{coauthors|}}} | + | |then={{if|test={{{coauthors|}}} |
| − | | <nowiki>;</nowiki> {{{coauthors}}} | + | |then= <nowiki>;</nowiki> {{{coauthors}}} |
}} | }} | ||
}}{{if|test={{{date|}}} | }}{{if|test={{{date|}}} | ||
| − | | ({{{date}}}) | + | |then= ({{{date}}}) |
| − | |{{if|test={{{year|}}} | + | |else={{if|test={{{year|}}} |
| − | |{{if|test={{{month|}}} | + | |then={{if|test={{{month|}}} |
| − | | ({{{month}}} {{{year}}}) | + | |then= ({{{month}}} {{{year}}}) |
| − | | ({{{year}}}) | + | |else= ({{{year}}}) |
}} | }} | ||
}} | }} | ||
}}{{if|test={{{author|}}}{{{last|}}} | }}{{if|test={{{author|}}}{{{last|}}} | ||
| − | | . | + | |then= . |
}}{{if|test={{{author|}}}{{{last|}}}{{{year|}}}{{{date|}}} | }}{{if|test={{{author|}}}{{{last|}}}{{{year|}}}{{{date|}}} | ||
| − | |   | + | |then=  |
| − | }}<!--{{#ifeq:{{{quotes|}}} | + | }}<!--{{#ifeq:{{{quotes|}}} | no | | {{#if: {{{curly|}}}|“|-->"<!--}} |
| − | + | }}-->{{if|test={{{url|}}} | |
| − | + | |then=[{{{url}}} {{{title}}}] | |
| − | | {{#if: {{{curly|}}}|“|"}} | + | |else={{{title}}} |
| − | + | }}<!--{{#ifeq:{{{quotes|}}} | no | | {{#if: {{{curly|}}}|”|-->"<!--}} | |
| − | |[{{{url}}} {{{title}}}] | + | }}-->{{if|test={{{language|}}} |
| − | |{{{title}}} | + | |then= (in {{{language}}}) |
| − | }}{{#ifeq:{{{quotes|}}} | + | }}{{if|test={{{format|}}} |
| − | + | |then= ({{{format}}}) | |
| − | + | ||
| − | | {{#if: {{{curly|}}}|”|"}} | + | |
| − | + | ||
| − | |  (in {{{language}}}) | + | |
| − | }} | + | |
| − | |  ({{{format}}}) | + | |
}}{{if|test={{{journal|}}} | }}{{if|test={{{journal|}}} | ||
| − | |. ''{{{journal}}}'' | + | |then=. ''{{{journal}}}'' |
| − | }}{{if|{{{volume|}}} | + | }}{{if|test={{{volume|}}} |
| − | | '''{{{volume}}}''' | + | |then= '''{{{volume}}}''' |
| − | }}{{if|{{{issue|}}} | + | }}{{if|test={{{issue|}}} |
| − | | ({{{issue}}}) | + | |then= ({{{issue}}}) |
}}{{if|test={{{pages|}}} | }}{{if|test={{{pages|}}} | ||
| − | |<nowiki>:</nowiki> {{{pages}}} | + | |then=<nowiki>:</nowiki> {{{pages}}} |
}}{{if|test={{{doi|}}} | }}{{if|test={{{doi|}}} | ||
| − | | . [[Wikipedia: | + | |then=. [[Wikipedia:Digital_object_identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doilabel|}}}}}} {{{doi}}}] |
}}{{if|test={{{issn|}}} | }}{{if|test={{{issn|}}} | ||
| − | |. [[Wikipedia: | + | |then=. [[Wikipedia:International_Standard_Serial_Number|ISSN]] [http://worldcat.org/issn/{{{issn}}} {{{issn}}}] |
}}{{if|test={{{pmid|}}} | }}{{if|test={{{pmid|}}} | ||
| − | |. PMID {{{pmid}}} | + | |then=. PMID {{{pmid}}} |
}}{{if|test={{{id|}}} | }}{{if|test={{{id|}}} | ||
| − | |. {{{id}}} | + | |then=. {{{id}}} |
}}{{if|test={{{accessdate|}}} | }}{{if|test={{{accessdate|}}} | ||
| − | |. Retrieved on {{{accessdate}}}{{if|test={{{accessyear|}}} | , {{{accessyear}}} }} | + | |then=. Retrieved on {{{accessdate}}}{{if|test={{{accessyear|}}} |
| + | |then=, {{{accessyear}}} }} | ||
}}{{if|test={{{accessmonthday|}}} | }}{{if|test={{{accessmonthday|}}} | ||
| − | |  Retrieved on {{{accessmonthday}}}, {{{accessyear}}} | + | |then= Retrieved on {{{accessmonthday}}}, {{{accessyear}}} |
}}{{if|test={{{accessdaymonth|}}} | }}{{if|test={{{accessdaymonth|}}} | ||
| − | |  Retrieved on {{{accessdaymonth}}} {{{accessyear}}} | + | |then= Retrieved on {{{accessdaymonth}}} {{{accessyear}}} |
}}{{if|test={{{laysummary|}}} | }}{{if|test={{{laysummary|}}} | ||
| − | |. [{{{laysummary}}} Lay summary]{{if|test={{{laysource|}}}| – ''{{{laysource}}}''}} | + | |then=. [{{{laysummary}}} Lay summary]{{if|test={{{laysource|}}} |
| + | |then= – ''{{{laysource}}}'' | ||
| + | }} | ||
}}{{if|test={{{laydate|}}} | }}{{if|test={{{laydate|}}} | ||
| − | |  ({{{laydate}}}) | + | |then= ({{{laydate}}}) |
}}.{{if|test={{{quote|}}} | }}.{{if|test={{{quote|}}} | ||
| − | |  “{{{quote}}}” | + | |then= “{{{quote}}}” |
| − | }}</cite></includeonly><noinclude> | + | }}</cite></includeonly><noinclude>{{doc}} |
| − | + | ||
| − | + | ||
| − | [[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.