Difference between revisions of "Template:Citation/core"

From Self-sufficiency
Jump to: navigation, search
(Pass COinS metadata handling to Template:COinS for forward-compatability and code clarity)
(Undid revision 294803543. See this discussion – this seems to be the edit at fault)
Line 544: Line 544:
 
}}{{#if:{{{quote|}}}
 
}}{{#if:{{{quote|}}}
 
   |{{{Sep|,}}}  "{{{quote}}}"
 
   |{{{Sep|,}}}  "{{{quote}}}"
}}{{{PS|}}}</cite>{{COinS
+
}}{{{PS|}}}</cite><!--
  |aulast = {{{Surname1|}}}
+
 
  |au2last = {{{Surname2|}}}
+
=== This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information: ===
  |au3last = {{{Surname3|}}}
+
 
  |au4last = {{{Surname4|}}}
+
--><span
  |au5last = {{{Surname5|}}}
+
    class="Z3988"
  |au6last = {{{Surname6|}}}
+
    title="ctx_ver=Z39.88-2004&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:}}{{
  |au7last = {{{Surname7|}}}
+
      #if: {{{Periodical|}}}
  |au8last = {{{Surname8|}}}
+
      |journal&rft.genre=article&rft.atitle={{urlencode:{{{Title|}}}}}&rft.jtitle={{urlencode:{{{Periodical|}}}}}
  |au9last = {{{Surname9|}}}
+
      |book{{
  |aufirst = {{{Given1|}}}
+
        #if: {{{IncludedWorkTitle|}}}
  |au2first = {{{Given2|}}}
+
        |&rft.genre=bookitem&rft.btitle={{urlencode:{{{IncludedWorkTitle|}}}}}&rft.atitle={{urlencode:{{{Title|}}}}}
  |au3first = {{{Given3|}}}
+
        |&rft.genre=book&rft.btitle={{urlencode:{{{Title|}}}}}
  |au4first = {{{Given4|}}}
+
      }}
  |au5first = {{{Given5|}}}
+
    }}{{
  |au6first = {{{Given6|}}}
+
    #if: {{{Surname1|}}} |&rft.aulast={{urlencode:{{{Surname1}}}}}{{
  |au7first = {{{Given7|}}}
+
      #if: {{{Given1|}}} |&rft.aufirst={{urlencode:{{{Given1}}}}}
  |au8first = {{{Given8|}}}
+
    }}
  |au9first = {{{Given9|}}}
+
  }}{{
  |date = {{{Date}}}
+
    #if: {{{Surname1|}}} |&rft.au={{urlencode:{{{Surname1}}}}}{{
  |btitle={{#if:{{{IncludedWorkTitle|}}}|{{{Title|}}}|{{#if:{{{Periodical|}}}|<!--journal, not book-->|{{{Title|}}}}}}}
+
      #if: {{{Given1|}}} |{{urlencode:, {{{Given1}}}}}
  |url={{#if:{{{archiveurl|}}}|{{{archiveurl|}}}|{{{URL|}}}}}
+
    }}
  |series={{{series|{{{version|}}}}}}
+
  }}{{
  |jtitle = {{{Periodical|}}}
+
    #if: {{{Surname2|}}} |&rft.au={{urlencode:{{{Surname2}}}}}{{
  |volume = {{{Volume|}}}
+
      #if: {{{Given2|}}} |{{urlencode:, {{{Given2}}}}}
  |issue = {{{issue|{{{number|}}}}}}
+
    }}
  |pages = {{{pages|{{{page|{{{at|}}}}}}}}}
+
  }}{{
  |atitle = {{{IncludedWorkTitle|{{#if:{{{Periodical|}}}|{{{title|}}}}}}}}
+
    #if: {{{Surname3|}}} |&rft.au={{urlencode:{{{Surname3}}}}}{{
  |edition = {{{edition|}}}
+
      #if: {{{Given3|}}} |{{urlencode:, {{{Given3}}}}}
  |place = {{{PublicationPlace|}}}
+
    }}
  |pub = {{{Publisher|}}}
+
  }}{{
  |isbn={{{ISBN|}}}
+
    #if: {{{Surname4|}}} |&rft.au={{urlencode:{{{Surname4}}}}}{{
  |issn={{{ISSN|}}}
+
      #if: {{{Given4|}}} |{{urlencode:, {{{Given4}}}}}
  |oclc={{{OCLC|}}}
+
    }}
  |pmid={{{PMID|}}}
+
  }}{{
  |pmc={{{PMC|}}}
+
    #if: {{{Surname5|}}} |&rft.au={{urlencode:{{{Surname5}}}}}{{
  |bibcode={{{Bibcode|}}}
+
      #if: {{{Given5|}}} |{{urlencode:, {{{Given5}}}}}
  |doi={{{DOI|}}}
+
    }}
}}<noinclude>
+
  }}{{
{{pp-template|small=yes}}
+
    #if: {{{Surname6|}}} |&rft.au={{urlencode:{{{Surname6}}}}}{{
{{documentation}}
+
      #if: {{{Given6|}}} |{{urlencode:, {{{Given6}}}}}
</noinclude>
+
    }}
</span><noinclude>{{documentation}}</noinclude>
+
  }}{{
 +
    #if: {{{Surname7|}}} |&rft.au={{urlencode:{{{Surname7}}}}}{{
 +
      #if: {{{Given7|}}} |{{urlencode:, {{{Given7}}}}}
 +
    }}
 +
  }}{{
 +
    #if: {{{Surname8|}}} |&rft.au={{urlencode:{{{Surname8}}}}}{{
 +
      #if: {{{Given8|}}} |{{urlencode:, {{{Given8}}}}}
 +
    }}
 +
  }}{{
 +
    #if: {{{Surname9|}}} |&rft.au={{urlencode:{{{Surname9}}}}}{{
 +
      #if: {{{Given9|}}} |{{urlencode:, {{{Given9}}}}}
 +
    }}
 +
    }}{{
 +
      #if: {{{Date|}}} |&rft.date={{urlencode:{{{Date}}}}}
 +
    }}{{
 +
      #if: {{{Series|}}} |&rft.series={{urlencode:{{{Series}}}}}  
 +
    }}{{
 +
      #if: {{{Volume|}}} |&rft.volume={{urlencode:{{{Volume}}}}}
 +
    }}{{
 +
      #if: {{{Issue|}}} |&rft.issue={{urlencode:{{{Issue}}}}}
 +
    }}{{
 +
      #if: {{{At|}}} |&rft.pages={{urlencode:{{{At}}}}}
 +
    }}{{
 +
      #if: {{{Edition|}}} |&rft.edition={{urlencode:{{{Edition}}}}}
 +
    }}{{
 +
      #if: {{{PublicationPlace|}}} |&rft.place={{urlencode:{{{PublicationPlace}}}}}
 +
    }}{{
 +
      #if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}}
 +
    }}{{
 +
      #if: {{{DOI|}}} |&rft_id=info:doi/{{urlencode:{{{DOI}}}}}
 +
    }}{{
 +
      #if: {{{PMID|}}} |&rft_id=info:pmid/{{urlencode:{{{PMID}}}}}
 +
    }}{{
 +
      #if: {{{Bibcode|}}} |&rft_id=info:bibcode/{{urlencode:{{{Bibcode}}}}}
 +
    }}{{
 +
      #if: {{{OCLC|}}} |&rft_id=info:oclcnum/{{urlencode:{{{OCLC}}}}}
 +
    }}{{
 +
      #if: {{{ISBN|}}} |&rft.isbn={{urlencode:{{{ISBN}}}}}
 +
    }}{{
 +
      #if: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}}
 +
    }}{{
 +
      #if: {{{URL|{{{IncludedWorkURL|}}}}}} |&rft_id={{urlencode:{{{URL|{{{IncludedWorkURL|}}}}}}}}
 +
    }}&rfr_id=info:sid/en.wikipedia.org:{{FULLPAGENAMEE}}"><span style="display: none;">&nbsp;</span></span><noinclude>{{documentation}}</noinclude>

Revision as of 19:38, 6 June 2009