Jump to content

Template:Cite journal: Difference between revisions

From IdeaWazaWiki
wikademia>CapitalR
updating doi parameter to use urlencode per edit request
wikademia>Wikademia
m 6 revisions
 
(30 intermediate revisions by 17 users not shown)
Line 1: Line 1:
<includeonly><cite style="font-style:normal">{{#if:{{{author|}}}{{{last|}}}
{{Citation/core
  |{{#if:{{{authorlink|}}}
  |Citation type=Journal
    |[[{{{authorlink}}}|{{#if:
  |Surname1 = {{{last|{{{surname|{{{last1|{{{surname1|{{{author1|{{{author|{{{authors|{{{author|}}}}}}}}}}}}}}}}}}}}}}}}
      {{{last|}}}
  |Surname2 = {{{last2|{{{surname2|{{{author2|{{{coauthor|{{{coauthors|}}}}}}}}}}}}}}}
      |{{{last}}}{{#if:
  |Surname3 = {{{last3|{{{surname3|{{{author3|}}}}}}}}}
        {{{first|}}}
  |Surname4 = {{{last4|{{{surname4|{{{author4|}}}}}}}}}
        |, {{{first}}}
  |Surname5 = {{{last5|{{{surname5|{{{author5|}}}}}}}}}
      }}
  |Surname6 = {{{last6|{{{surname6|{{{author6|}}}}}}}}}
      |{{{author}}}
  |Surname7 = {{{last7|{{{surname7|{{{author7|}}}}}}}}}
    }}]]
  |Surname8 = {{{last8|{{{surname8|{{{author8|}}}}}}}}}
    |{{#if:{{{last|}}}
  |Surname9 = {{{last9|{{{surname9|{{{author9|}}}}}}}}}
      |{{{last}}}{{#if:
   |Given1 = {{{first1|{{{given1|{{{first|{{{given|}}}}}}}}}}}}
        {{{first|}}}
  |Given2 = {{{first2|{{{given2|}}}}}}
        |, {{{first}}}
  |Given3 = {{{first3|{{{given3|}}}}}}
      }}
   |Given4 = {{{first4|{{{given4|}}}}}}
      |{{{author}}}
   |Given5 = {{{first5|{{{given5|}}}}}}
    }}
  |Given6 = {{{first6|{{{given6|}}}}}}
  }}
  |Given7 = {{{first7|{{{given7|}}}}}}
}}{{#if:{{{author|}}}{{{last|}}}
  |Given8 = {{{first8|{{{given8|}}}}}}
  |{{#if:{{{coauthors|}}}
   |Given9 = {{{first9|{{{given9|}}}}}}
    | <nowiki>;</nowiki> {{{coauthors}}}
  |Authorlink1 = {{{author-link|{{{author1-link|{{{authorlink|{{{authorlink1|}}}}}}}}}}}}
  }}{{#if:{{{date|}}}
   |Authorlink2 = {{{author2-link|{{{authorlink2|}}}}}}
    |&#32;({{{date}}})
  |Authorlink3 = {{{author3-link|{{{authorlink3|}}}}}}
    |{{#if:{{{year|}}}
  |Authorlink4 = {{{author4-link|{{{authorlink4|}}}}}}
      |{{#if:{{{month|}}}
  |Authorlink5 = {{{author5-link|{{{authorlink5|}}}}}}
        |&#32;({{{month}}} {{{year}}})
  |Authorlink6 = {{{author6-link|{{{authorlink6|}}}}}}
        |&#32;({{{year}}})
  |Authorlink7 = {{{author7-link|{{{authorlink7|}}}}}}
      }}
   |Authorlink8 = {{{author8-link|{{{authorlink8|}}}}}}
    }}
   |Authorlink9 = {{{author9-link|{{{authorlink9|}}}}}}
  }}
  |Year={{{year|{{    <!-- attempt to derive year from date, if possible -->
}}{{#if:{{{author|}}}{{{last|}}}
            #if: {{{date|}}}
   | .
            |{{
}}{{#if:{{{author|}}}{{{last|}}}{{{year|}}}{{{date|}}}
                #iferror:{{#time:Y|{{{date|}}} }}
  | &#32;
                |{{#iferror:{{#time:Y|{{{publication-date|einval}}} }}||{{#time:Y|{{{publication-date|}}} }}}}
}}{{#ifeq:{{{quotes|}}}  
                |{{#time:Y|{{{date|}}} }}
| no
              }}
|
            |{{{publication-date|}}} <!-- last resort -->
| {{#if: {{{curly|}}}|“|"}}  
          }}
}}{{#if:{{{url|}}}
        }}}
   |[{{{url}}} {{{title}}}]
   |Date = {{#if:{{{date|}}}|{{{date}}}|{{{day|}}} {{{month|}}} {{{year|{{{publication-date|}}}}}}}}
   |{{{title}}}
  |Title={{{title|}}}
}}{{#ifeq:{{{quotes|}}}  
  |URL={{{url|}}}
| no
   |Series={{{series|{{{version|}}}}}}
|
  |Periodical = {{{journal|{{{periodical|{{{magazine|{{{work|}}}}}}}}}}}}
| {{#if:{{{curly|}}}|”|"}}  
   |Volume = {{{volume|}}}
}}{{#if:{{{language|}}}  
  |Issue = {{{issue|{{{number|}}}}}}
   | &#32;(in {{{language}}})
  |At = {{
}}{{#if:{{{format|}}}
          #if: {{{journal|{{{periodical|{{{magazine|{{{work|}}}}}}}}}}}}
  | &#32;({{{format}}})
          |{{{pages|{{{page|{{{at|}}}}}}}}}
}}{{#if:{{{author|}}}{{{last|}}}
          |{{
   |
            #if: {{{page|}}}
  | &#32;{{#if:{{{date|}}}
            |p. {{{page}}}
    |&#32;({{{date}}})
            |{{
    |{{#if:{{{year|}}}
                #if: {{{pages|}}}
      |{{#if:{{{month|}}}
                |pp. {{{pages}}}
        |&#32;({{{month}}} {{{year}}})
                |{{{at|}}}
        |&#32;({{{year}}})
              }}
      }}
          }}
    }}
        }}
   }}
  |IncludedWorkTitle = {{{chapter|{{{contribution|}}}}}}
}}{{#if:{{{journal|}}}
   |IncludedWorkURL = {{{chapter-url|{{{chapterurl|{{{contribution-url|}}}}}}}}}
   |. ''{{{journal}}}''
  |Edition = {{{edition|}}}
}}{{#if:{{{volume|}}}
   |Place = {{{place|{{{location|}}}}}}
  |&#32;'''{{{volume}}}'''
  |PublicationPlace = {{{publication-place|{{{place|{{{location|}}}}}}}}}
}}{{#if:{{{issue|}}}
  |Publisher = {{{publisher|}}}
  |&#32;({{{issue}}})
   |PublicationDate = {{{publication-date|}}}
}}{{#if:{{{pages|}}}
  |EditorSurname1 = {{{editor-last|{{{editor-surname|{{{editor1-last|{{{editor1-surname|{{{editor|{{{editors|}}}}}}}}}}}}}}}}}}
  |<nowiki>:</nowiki> {{{pages}}}
   |EditorSurname2 = {{{editor2-last|{{{editor2-surname|}}}}}}
}}{{#if:{{{publisher|}}}
   |EditorSurname3 = {{{editor3-last|{{{editor3-surname|}}}}}}
   |.&#32;{{#if:{{{location|}}}  
   |EditorSurname4 = {{{editor4-last|{{{editor4-surname|}}}}}}
    |{{{location}}}:&#32;
  |EditorGiven1 = {{{editor-first|{{{editor-given|{{{editor1-first|{{{editor1-given|}}}}}}}}}}}}
  }}{{{publisher}}}
   |EditorGiven2={{{editor2-first|{{{editor2-given|}}}}}}
}}{{#if:{{{doi|}}}  
   |EditorGiven3={{{editor3-first|{{{editor3-given|}}}}}}
  |. [[Digital object identifier|doi]]:[http://dx.doi.org/{{urlencode:{{{doi}}}}} {{{doi}}}]
   |EditorGiven4={{{editor4-first|{{{editor4-given|}}}}}}
}}{{#if:{{{issn|}}}
  |Editorlink1={{{editor-link|{{{editor1-link|}}}}}}
   |. [[International Standard Serial Number|ISSN]] [http://worldcat.org/issn/{{{issn}}} {{{issn}}}]
  |Editorlink2={{{editor2-link|}}}
}}{{#if:{{{pmid|}}}
  |Editorlink3={{{editor3-link|}}}
  |. PMID {{{pmid}}}
  |Editorlink4={{{editor4-link|}}}
}}{{#if:{{{bibcode|}}}
  |language = {{{language|{{{in|}}}}}}
   |. [[Bibcode]]:&nbsp;[http://adsabs.harvard.edu/abs/{{{bibcode}}} {{{bibcode}}}]
  |format = {{{format|}}}
}}{{#if:{{{oclc|}}}  
  |ID={{{id|{{{ID|}}}}}}
  |. [[OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]
  |ISBN={{{isbn|{{{ISBN|}}}}}}
}}{{#if:{{{id|}}}
  |ISSN={{{issn|{{{ISSN|}}}}}}
  |. {{{id}}}
   |OCLC={{{oclc|{{{OCLC|}}}}}}
}}{{#if:{{{accessdate|}}}
  |PMID={{{pmid|{{{PMID|}}}}}}
  |. Retrieved on [[{{{accessdate}}}]]{{#if: {{{accessyear|}}} | , [[{{{accessyear}}}]] }}
   |PMC={{{pmc|{{{PMC|}}}}}}
}}{{#if:{{{accessmonthday|}}}
  |Bibcode={{{bibcode|}}}
   | &#32;Retrieved on {{{accessmonthday}}}, {{{accessyear}}}
  |DOI={{{doi|{{{DOI|}}}}}}
}}{{#if:{{{accessdaymonth|}}}
  |DoiBroken={{{doi_brokendate|}}}
   | &#32;Retrieved on {{{accessdaymonth}}} {{{accessyear}}}
  |AccessDate={{{access-date|{{{accessdate|}}}}}}
}}{{#if:{{{laysummary|}}}
  |laysource = {{{laysource|}}}
  |. [{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}|&nbsp;&ndash;&nbsp;''{{{laysource}}}''}}
  |laysummary = {{{laysummary|}}}
}}{{#if:{{{laydate|}}}
  |laydate = {{{laydate|}}}
   | &#32;([[{{{laydate}}}]])
  |quote = {{{quote|}}}
}}.{{#if:{{{quote|}}}
  |Ref={{{ref|}}}
  | &#32;“{{{quote}}}”
  |Sep = {{{separator|{{{seperator|.}}}}}}
}}</cite><!--
   |PS = {{{postscript|.}}}
 
  |msm = {{{use mixture of punctuation marks|}}}
This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information:
  |amp = {{{use ampersand before last author|}}}
   --><span class="Z3988" title="ctx_ver=Z39.88-2004<!--
}}<noinclude>
   -->&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|}}}  | &rft.jtitle={{urlencode:{{{journal}}}}}   }}<!-- 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: {{{doi|}}}      | &rft_id=info:doi/{{urlencode:{{{doi}}}}}  }}<!-- DOI
  -->{{#if: {{{url|}}}      | &rft_id={{urlencode:{{{url}}}}}          }}<!-- URL
  -->"><span style="display: none;">&nbsp;</span></span></includeonly><noinclude>
<!--
    PLEASE DO NOT ADD DOCUMENTATION/CATEGORIES/INTERWIKIS HERE
-->
{{pp-template|small=yes}}
{{pp-template|small=yes}}
{{documentation, template}}
{{documentation}}
<!--
    MAKE ADDITIONS TO THE /doc SUBPAGE INSTEAD, THANKS
-->
</noinclude>
</noinclude>

Latest revision as of 18:13, 30 March 2009

. 

[create] Template documentation