Template:Cite journal: Difference between revisions

Template page
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>{{#invoke:Citation/CS1|citation
<includeonly><cite style="font-style:normal">{{#if:{{{author|}}}{{{last|}}}
|CitationClass=journal
  |{{#if:{{{authorlink|}}}
}}</includeonly>
    |[[{{{authorlink}}}|{{#if:
      {{{last|}}}
      |{{{last}}}{{#if:
        {{{first|}}}
        |, {{{first}}}
      }}
      |{{{author}}}
    }}]]
    |{{#if:{{{last|}}}
      |{{{last}}}{{#if:
        {{{first|}}}
        |, {{{first}}}
      }}
      |{{{author}}}
    }}
  }}
}}{{#if:{{{author|}}}{{{last|}}}
  |{{#if:{{{coauthors|}}}
    | <nowiki>;</nowiki> {{{coauthors}}}
  }}{{#if:{{{date|}}}
    |&#32;({{{date}}})
    |{{#if:{{{year|}}}
      |{{#if:{{{month|}}}
        |&#32;({{{month}}} {{{year}}})
        |&#32;({{{year}}})
      }}
    }}
  }}
}}{{#if:{{{author|}}}{{{last|}}}
  | .
}}{{#if:{{{author|}}}{{{last|}}}{{{year|}}}{{{date|}}}
  | &#32;
}}{{#ifeq:{{{quotes|}}}
| no
|
| {{#if: {{{curly|}}}|“|"}}
}}{{#if:{{{url|}}}{{{pmc|}}}
  |{{#ifeq:{{{title|}}}||<span class="error">Citation is missing a title.</span>&#32;}}[{{#if:{{{url|}}}|{{{url|}}}|http://www.pubmedcentral.gov/articlerender.fcgi?tool=pmcentrez&artid={{{pmc}}}}} {{{title}}}]
  |{{{title}}}
}}{{#ifeq:{{{quotes|}}}
| no
|
| {{#if:{{{curly|}}}|”|"}}
}}{{#if:{{{language|}}}
  | &#32;(in {{{language}}})
}}{{#if:{{{format|}}}
  | &#32;({{{format}}})
}}{{#if:{{{author|}}}{{{last|}}}
  |
  | &#32;{{#if:{{{date|}}}
    |&#32;({{{date}}})
    |{{#if:{{{year|}}}
      |{{#if:{{{month|}}}
        |&#32;({{{month}}} {{{year}}})
        |&#32;({{{year}}})
      }}
    }}
  }}
}}{{#if:{{{journal|{{{work|}}}}}}
  |. ''{{{journal|{{{work}}}}}}''
}}{{#if:{{{volume|}}}
  |&#32;'''{{{volume}}}'''
}}{{#if:{{{issue|}}}
  |&#32;({{{issue}}})
}}{{#if:{{{pages|}}}
  |<nowiki>:</nowiki> {{{pages}}}
}}{{#if:{{{publisher|}}}
  |.&#32;{{#if:{{{location|}}}
    |{{{location}}}:&#32;
  }}{{{publisher}}}
}}{{#if:{{{doi|}}}
  |. [[w:Digital object identifier|doi]]:{{#if: {{{doi_brokendate|}}}
    | {{#tag:nowiki|{{{doi}}}}} (inactive [[{{{doi_brokendate|}}}]]) {{#ifeq: {{NAMESPACE}} | {{ns:0}} | [[Category:Pages with DOIs broken since {{#time: Y | {{{doi_brokendate|}}} }}]] }}
    | <span class="neverexpand">[https://dx.doi.org/{{urlencode:{{{doi}}}}} {{#tag:nowiki|{{{doi}}}}}]</span>
    }}
}}{{#if:{{{issn|}}}
  |. [[w:International Standard Serial Number|ISSN]] [http://worldcat.org/issn/{{{issn}}} {{{issn}}}]
}}{{#if:{{{pmid|}}}
  |. {{PMID|{{{pmid}}}}}
}}{{#if:{{{pmc|}}}
  | {{#if:{{{url|}}} |. [[w:PubMed Central|PMC]]:[http://www.pubmedcentral.gov/articlerender.fcgi?tool=pmcentrez&artid={{{pmc}}} {{{pmc}}}]}}
}}{{#if:{{{bibcode|}}}
  |. [[w:Bibcode]]:&nbsp;[http://adsabs.harvard.edu/abs/{{{bibcode}}} {{{bibcode}}}]
}}{{#if:{{{oclc|}}}
  |. [[w:OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]
}}{{#if:{{{id|}}}
  |. {{{id}}}
}}{{#if:{{{accessdate|}}}
  |. Retrieved on [[{{{accessdate}}}]]{{#if: {{{accessyear|}}} | , [[{{{accessyear}}}]] }}
}}{{#if:{{{accessmonthday|}}}
  | &#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}
}}{{#if:{{{accessdaymonth|}}}
  | &#32;Retrieved on {{{accessdaymonth}}} {{{accessyear}}}
}}{{#if:{{{laysummary|}}}
  |. [{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}|&nbsp;&ndash;&nbsp;''{{{laysource}}}''}}
}}{{#if:{{{laydate|}}}
  | &#32;([[{{{laydate}}}]])
}}.{{#if:{{{quote|}}}
  | &#32;“{{{quote}}}”
}}</cite><!--
 
This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information:
  --><span class="Z3988" title="ctx_ver=Z39.88-2004<!--
  -->&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:journal}}<!--                Field descriptions: http://www.openurl.info/registry/docs/mtx/info:ofi/fmt:kev:mtx:journal
  -->&rft.genre=article<!--                                                    article: a document published in a journal. (genre could also be (the entire) journal, issue, conference, proceeding, preprint, or unknown)
  -->{{#if: {{{title|}}}    | &rft.atitle={{urlencode:{{{title}}}}}    }}<!-- Article title.
  -->{{#if: {{{journal|{{{work|}}}}}}  | &rft.jtitle={{urlencode:{{{journal|{{{work}}}}}}}}  }}<!-- Journal title. Use the most complete title available ... "journal of the american medical association"
  -->{{#if: {{{date|}}}
      | &rft.date={{urlencode:{{{date}}}}}
      | {{#if: {{{year|}}}  | &rft.date={{urlencode:{{{year}}}}} }}    }}<!-- Date of publication. (ISO 8601)
  -->{{#if: {{{volume|}}}    | &rft.volume={{urlencode:{{{volume}}}}}    }}<!-- Volume designation usually expressed as a number but could be roman numerals or non-numeric, i.e. "124", or "VI".
  -->{{#if: {{{issue|}}}    | &rft.issue={{urlencode:{{{issue}}}}}      }}<!-- This is the designation of the published issue of a journal ... could be non-numeric
  -->{{#if: {{{author|}}}    | &rft.au={{urlencode:{{{author}}}}}        }}<!-- This data element contains the full name of a single author, i. e. "Smith, Fred M", "Harry S. Truman".
  -->{{#if: {{{last|}}}      | &rft.aulast={{urlencode:{{{last}}}}}      }}<!-- First author's family name. This may be more than one word ... i.e. Smith, Fred James is recorded as "aulast=smith"
  -->{{#if: {{{first|}}}    | &rft.aufirst={{urlencode:{{{first}}}}}    }}<!-- First author's given name or names or initials. This data element may contain multiple words and punctuation, i.e, "Fred James"
  -->{{#if: {{{pages|}}}    | &rft.pages={{urlencode:{{{pages}}}}}      }}<!-- Start and end pages, i.e. "53-58". This can also be used for an unstructured pagination statement when data relating to pagination cannot be interpreted as a start-end pair, i.e. "A7, C4-9", "1-3,6".
  -->{{#if: {{{issn|}}}      | &rft.issn={{urlencode:{{{issn}}}}}        }}<!-- International Standard Serials Number (ISSN). The issn may contain a hyphen, i.e. "1041-5653"
  -->{{#if: {{{pmid|}}}      | &rft_id=info:pmid/{{urlencode:{{{pmid}}}}}}}<!-- PubMed ID
  -->{{#if: {{{pmc|}}}      | &rft_id=info:pmc/{{urlencode:{{{pmc}}}}}}}<!-- PubMed Central ID
  -->{{#if: {{{doi|}}}      | &rft_id=info:doi/{{urlencode:{{{doi}}}}}  }}<!-- DOI
  -->{{#if: {{{url|}}}      | &rft_id={{urlencode:{{{url}}}}}          }}<!-- URL
  -->"><span style="display: none;">&nbsp;</span></span></includeonly><noinclude>
{{documentation}}
</noinclude>

Latest revision as of 14:36, 25 August 2022

Documentation (view - edit)

Template:Cite journal/doc