Difference between revisions of "Template:Citation/core/sandbox"

From Chevy Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
{{Documentation subpage}}
<cite style="font-style:normal" class="{{{Citation class|Journal}}}"
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
{{
  #if:{{{Ref|}}}
  |{{#ifeq:{{{Ref|}}}|none||id="{{anchorencode:{{{Ref|}}}}}"}}
  |id="CITEREF{{anchorencode:{{#if:{{{Surname1|}}}
    |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}
    |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}}
  }}{{{Year|{{{Date|}}}}}}}}"
}}>{{
<!--============  Author or editor and date  ============-->
  #if:{{{Surname1|}}}
  |{{
    #if: {{{Authorlink1|}}}
    |[[{{{Authorlink1}}} |{{{Surname1}}}{{
        #if: {{{Given1|}}}
        |, {{{Given1}}}
      }}]]
    |{{{Surname1}}}{{
        #if: {{{Given1|}}}
        |, {{{Given1}}}
      }}
  }}{{
    #if: {{{Surname2|}}}
    |{{
        #if: {{{Surname3|}}}
        |<nowiki>; </nowiki>
        |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
      }}{{
        #if: {{{Authorlink2|}}}
        |[[{{{Authorlink2}}} |{{{Surname2}}}{{
          #if: {{{Given2|}}}
          |, {{{Given2}}}
        }}]]
        |{{{Surname2}}}{{
          #if: {{{Given2|}}}
          |, {{{Given2}}}
        }}
      }}{{
        #if: {{{Surname3|}}}
        |{{
          #if: {{{Surname4|}}}
          |<nowiki>; </nowiki>
          |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
        }}{{
          #if: {{{Authorlink3|}}}
          |[[{{{Authorlink3}}} |{{{Surname3}}}{{
              #if: {{{Given3|}}}
              |, {{{Given3}}}
            }}]]
          |{{{Surname3}}}{{
              #if: {{{Given3|}}}
              |, {{{Given3}}}
            }}
        }}{{
          #if:{{{Surname4|}}}
          |{{
              #if: {{{Surname5|}}}
              |<nowiki>; </nowiki>
              |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
            }}{{
              #if: {{{Authorlink4|}}}
              |[[{{{Authorlink4}}} |{{{Surname4}}}{{
                #if: {{{Given4|}}}
                |, {{{Given4}}}
              }}]]
              |{{{Surname4}}}{{
                #if: {{{Given4|}}}
                |, {{{Given4}}}
              }}
            }}{{
              #if:{{{Surname5|}}}
              |{{
                #if: {{{Surname6|}}}
                |<nowiki>; </nowiki>
                |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
              }}{{
                #if: {{{Authorlink5|}}}
                |[[{{{Authorlink5}}} |{{{Surname5}}}{{
                    #if: {{{Given5|}}}
                    |, {{{Given5}}}
                  }}]]
                |{{{Surname5}}}{{
                    #if: {{{Given5|}}}
                    |, {{{Given5}}}
                  }}
              }}{{
                #if:{{{Surname6|}}}
                |{{
                    #if: {{{Surname7|}}}
                    |<nowiki>; </nowiki>
                    |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
                  }}{{
                    #if: {{{Authorlink6|}}}
                    |[[{{{Authorlink6}}} |{{{Surname6}}}{{
                      #if: {{{Given6|}}}
                      |, {{{Given6}}}
                    }}]]
                    |{{{Surname6}}}{{
                      #if: {{{Given6|}}}
                      |, {{{Given6}}}
                    }}
                  }}{{
                    #if:{{{Surname7|}}}
                    |{{
                      #if: {{{Surname8|}}}
                      |<nowiki>; </nowiki>
                      |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
                    }}{{
                      #if: {{{Authorlink7|}}}
                      |[[{{{Authorlink7}}} |{{{Surname7}}}{{
                          #if: {{{Given7|}}}
                          |, {{{Given7}}}
                        }}]]
                      |{{{Surname7}}}{{
                          #if: {{{Given7|}}}
                          |, {{{Given7}}}
                        }}
                    }}{{
                      #if:{{{Surname8|}}}
                      |{{
                          #if: {{{Surname9|}}}
                          |<nowiki>; </nowiki>
                          |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
                        }}{{
                          #if: {{{Authorlink8|}}}
                          |[[{{{Authorlink8}}} |{{{Surname8}}}{{
                            #if: {{{Given8|}}}
                            |, {{{Given8}}}
                          }}]]
                          |{{{Surname8}}}{{
                            #if: {{{Given8|}}}
                            |, {{{Given8}}}
                          }}
                        }}{{
                          #if:{{{Surname9|}}}
                          |<nowiki>; </nowiki>&#32;''et al''.
                        }}
                    }}
                  }}
              }}
            }}
        }}
      }}
  }}{{
    #if: {{{Date|}}}
    |&#32;({{date|{{{Date}}}|{{{DateFormat|dmy}}}}}){{
      #if:{{{YearNote|}}}
    |&#32;[{{{YearNote}}}]
    }}
  }}
  |{{<!-- ============== No author display editors first == -->
    #if: {{{EditorSurname1|}}}
    |{{
        #if: {{{Editorlink1|}}}
        |[[{{{Editorlink1}}} |{{{EditorSurname1}}}{{
          #if: {{{EditorGiven1|}}}
          |, {{{EditorGiven1}}}
        }}]]
        |{{{EditorSurname1}}}{{
          #if: {{{EditorGiven1|}}}
          |, {{{EditorGiven1}}}
        }}
      }}{{
        #if: {{{EditorSurname2|}}}
        |<nowiki>; </nowiki>{{
          #if: {{{Editorlink2|}}}
          |[[{{{Editorlink2}}} |{{{EditorSurname2}}}{{
              #if: {{{EditorGiven2|}}}
              |, {{{EditorGiven2}}}
            }}]]
          |{{{EditorSurname2}}}{{
              #if: {{{EditorGiven2|}}}
              |, {{{EditorGiven2}}}
            }}
        }}{{
          #if: {{{EditorSurname3|}}}
          |<nowiki>; </nowiki> {{
              #if: {{{Editorlink3|}}}
              |[[{{{Editorlink3}}} |{{{EditorSurname3}}}{{
                #if: {{{EditorGiven3|}}}
                |, {{{EditorGiven3}}}
              }}]]
              |{{{EditorSurname3}}}{{
                #if: {{{EditorGiven3|}}}
                |, {{{EditorGiven3}}}
              }}
            }}{{
              #if:{{{EditorSurname4|}}}
              |&#32;et al.
            }}
        }}
      }}, ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep|,}}}|.||.}}{{
        #if: {{{Date|}}}
        |&#32;({{date|{{{Date}}}|{{{DateFormat|dmy}}}}})
      }}
  }}
}}{{
<!--============  Title of included work  ============-->
  #if: {{{IncludedWorkTitle|}}}
  |{{
    #if:{{{Surname1|}}}{{{EditorSurname1|}}}
    |{{{Sep|,}}}&#32;
  }}{{Link
    | 1={{
          #if: {{{IncludedWorkURL|}}}
          |{{{IncludedWorkURL}}}
          |{{
              #if: {{{URL|}}}
              |{{{URL}}}
<!-- Only link URL if to a free full text - as at PubMedCentral (PMC)-->
              |{{
                #if: {{{PMC|}}}
                |http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
              }}
            }}
        }}
    | 2={{
          #if: {{{Periodical|}}}
          |''{{{IncludedWorkTitle}}}''
          |"{{{IncludedWorkTitle}}}"
        }}
  }}
}}{{
<!--============  Place (if different than PublicationPlace) ============-->
  #if: {{{Place|}}}
  |{{
    #ifeq: {{{Place|}}} | {{{PublicationPlace|}}}
    |
    |{{
        #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
        |{{{Sep|,}}} written at {{{Place}}}
      }}
  }}
}}{{
<!--============  Editor of compilation  ============-->
  #if: {{{EditorSurname1|}}}
  |{{
    #if: {{{Surname1|}}}
    |{{{Sep|,}}} {{
        #if: {{{IncludedWorkTitle|}}}
        |in&#32;
      }}{{
        #if: {{{Editorlink1|}}}
        |[[{{{Editorlink1}}} |{{{EditorSurname1}}}{{
          #if: {{{EditorGiven1|}}}
          |, {{{EditorGiven1}}}
        }}]]
        |{{{EditorSurname1}}}{{
          #if: {{{EditorGiven1|}}}
          |, {{{EditorGiven1}}}
        }}}}{{
        #if: {{{EditorSurname2|}}}
        |<nowiki>; </nowiki>{{
          #if: {{{Editorlink2|}}}
          |[[{{{Editorlink2}}}|{{{EditorSurname2}}}{{
              #if: {{{EditorGiven2|}}}
              |, {{{EditorGiven2}}}
            }}]]
          |{{{EditorSurname2}}}{{
              #if: {{{EditorGiven2|}}}
              |, {{{EditorGiven2}}}
            }}
        }}{{
          #if: {{{EditorSurname3|}}}
          |<nowiki>; </nowiki>{{
              #if: {{{Editorlink3|}}}
              |[[{{{Editorlink3}}}|{{{EditorSurname3}}}{{
                #if: {{{EditorGiven3|}}}
                |, {{{EditorGiven3}}}
              }}]]
              |{{{EditorSurname3}}}{{
                #if: {{{EditorGiven3|}}}
                |, {{{EditorGiven3}}}
              }}
            }}{{
              #if:{{{EditorSurname4|}}}
              |&#32;et al.
            }}
        }}
      }}{{
        #if: {{{IncludedWorkTitle|}}}
        |
        |{{{Sep|,}}} ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep|,}}}|.||.}}
      }}
  }}
}}{{
  <!--============  Periodicals  ============-->
  #if: {{{Periodical|}}}
  |{{
    #if: {{{Surname1|}}}{{{EditorSurname1|}}}
    |{{{Sep|,}}}&#32;}}{{
    #if: {{{Title|}}}
    |"{{Link
        | 1={{
              #if: {{{IncludedWorkTitle|}}}
              |{{
                #if: {{{IncludedWorkURL|}}}
                |{{
                    #if: {{{URL|}}}
                    |{{{URL}}}
                    |{{
                      #if: {{{PMC|}}}
                      |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                    }}
                  }}
              }}
              |{{
                #if: {{{URL|}}}
                |{{{URL}}}
                | {{
                      #if: {{{PMC|}}}
                      |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                    }}
                 
              }}
            }}
        | 2={{{Title}}}
      }}"}}
}}{{
#if:{{{language|}}}
  | &#32;(in {{{language}}})
}}{{#if:{{{format|}}}
  |&#32;({{{format}}})
}}{{
  #if: {{{Periodical|}}}|{{
  #if:{{{IncludedWorkTitle|}}}{{{Title|}}}|{{{Sep|,}}}&#32;}}''{{{Periodical}}}''{{
    #if: {{{Series|}}}
    |{{{Sep|,}}} {{{Series}}}
  }}{{
    #if: {{{PublicationPlace|}}}
    |{{
        #if: {{{Publisher|}}}
        |&#32;({{{PublicationPlace}}}<nowiki>: </nowiki>{{{Publisher}}})
        |&#32;({{{PublicationPlace}}})
      }}
    |{{
        #if: {{{Publisher|}}}
        |&#32;({{{Publisher}}})
      }}
  }}{{
    #if: {{{Volume|}}}
    |&#32;'''{{{Volume}}}'''{{
        #if: {{{Issue|}}}
        |&#32;({{{Issue}}})
      }}
    |{{
        #if: {{{Issue|}}}
        |&#32;({{{Issue}}})
      }}
  }}{{
    #if: {{{At|}}}
    |<nowiki>: </nowiki> {{{At}}}
  }}
  |{{
    <!--============ Anything else with a title, including books ============-->
    #if: {{{Title|}}}
    |{{
        #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
        |{{{Sep|,}}}&#32;
      }}''{{Link
        | 1={{
              #if: {{{IncludedWorkTitle|}}}
              |{{
                #if: {{{IncludedWorkURL|}}}
                |{{
                    #if: {{{URL|}}}
                    |{{{URL}}}
                    |{{
                      #if: {{{PMC|}}}
                      |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                    }}
                  }}
              }}
              |{{
                #if: {{{URL|}}}
                |{{{URL}}}
                |{{
                    #if: {{{PMC|}}}
                    |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}     
                  }}
              }}
            }}
        | 2={{{Title}}}
      }}''}}{{
        #if: {{{Series|}}}
        |{{{Sep|,}}} {{{Series}}}
      }}{{
        #if: {{{Volume|}}}
        |{{{Sep|,}}} '''{{{Volume}}}'''
      }}{{
        #if: {{{Other|}}}
        |{{{Sep|,}}} {{{Other|}}}
      }}{{
        #if: {{{Edition|}}}
        |&#32;({{{Edition}}} ed.)
      }}{{
        #if: {{{PublicationPlace|}}}
        |{{{Sep|,}}} {{{PublicationPlace}}}
      }}{{
        #if: {{{Publisher|}}}
        |{{
          #if: {{{PublicationPlace|}}}
          |<nowiki>:</nowiki>
          |{{{Sep|,}}}
        }} {{{Publisher}}}
      }}
  }}{{
<!--============ Date (if no author/editor) ============-->
  #if: {{{Surname1|}}}{{{EditorSurname1|}}}
  |
  |{{
    #if: {{{Date|}}}
    |{{{Sep|,}}} {{date|{{{Date}}}|{{{DateFormat|dmy}}}}}
  }}
}}{{
<!--============ Publication date ============-->
  #if: {{{PublicationDate|}}}
  |{{
    #ifeq: {{{PublicationDate|}}} | {{{Date|}}}
    |
    |{{
        #if: {{{EditorSurname1|}}}
        |{{
          #if: {{{Surname1|}}}
          |{{{Sep|,}}} {{date|{{{PublicationDate}}}|{{{DateFormat|dmy}}}}}
          |&#32;(published {{date|{{{PublicationDate}}}|{{{DateFormat|dmy}}}}})
        }}
        |{{
          #if: {{{Periodical|}}}
          |{{{Sep|,}}} {{date|{{{PublicationDate}}}|{{{DateFormat|dmy}}}}}
          |&#32;(published {{date|{{{PublicationDate}}}|{{{DateFormat|dmy}}}}})
        }}
      }}
  }}
}}{{
<!--============ Page within included work ============-->
  #if: {{{Periodical|}}}
  |
  |{{
    #if: {{{At|}}}
    |{{{Sep|,}}} {{{At}}}
  }}
}}{{
<!--===============DOI================-->
#if:{{{DOI|}}}
  |{{{Sep|,}}} [[Digital object identifier|doi]]:{{#if: {{{DoiBroken|}}}
    | {{#tag:nowiki|{{{DOI}}}}} (inactive {{date|{{{DoiBroken|}}}|{{{DateFormat|dmy}}}}}) {{#ifeq: {{NAMESPACE}} | {{ns:0}} | [[Category:Pages with DOIs broken since {{#time: Y | {{{DoiBroken|}}} }}]] }}
    | <span class="neverexpand">[http://dx.doi.org/{{urlencode:{{{DOI}}}}} {{#tag:nowiki|{{{DOI}}}}}]</span>
    }}
}}{{
<!--============ Misc. Identifier ============-->
  #if: {{{ID|}}}
  |{{{Sep|,}}} {{{ID}}}
}}{{
<!--============ ISBN ============-->
  #if: {{{ISBN|}}}
  |{{{Sep|,}}} ISBN {{{ISBN}}}
}}{{
<!--============ ISSN ============-->
  #if: {{{ISSN|}}}
  |{{{Sep|,}}} [[International Standard Serial Number|ISSN]] [http://worldcat.org/issn/{{{ISSN}}} {{{ISSN}}}]
}}{{
<!--============ OCLC ============-->
  #if: {{{OCLC|}}}
  |{{{Sep|,}}} [[OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{OCLC}}}}} {{{OCLC}}}]
}}{{
<!--============ PMID ============-->
  #if: {{{PMID|}}}
  |{{{Sep|,}}} PMID {{{PMID}}}
}}{{
<!--============ PMC ============-->
  #if: {{{PMC|}}}
  |{{#if: {{{URL|}}}
    |{{{Sep|,}}} [[PubMed Central|PMC]]: [http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} {{{PMC}}}]
  }}
}}{{
<!--============ BIBCODE ============-->
  #if: {{{Bibcode|}}}
  |{{{Sep|,}}} [[Bibcode]]:&nbsp;[http://adsabs.harvard.edu/abs/{{{Bibcode}}} {{{Bibcode}}}]
}}{{
<!--============ Archive data, etc ===========-->
  #if: {{{Archive|}}}
  |{{{Sep|,}}} {{{Archive}}}
}}{{
<!--============ URL and AccessDate ============-->
  #if: {{{URL|{{{IncludedWorkURL|}}}}}}
  |{{
    #if: {{{Title|}}}{{{IncludedWorkTitle|}}}
    |<span class="printonly">{{{Sep|,}}} {{
                                      #if: {{{IncludedWorkURL|}}}
                                      |{{{IncludedWorkURL}}}
                                      |{{{URL}}}
                                    }}</span>
    |{{{Sep|,}}} {{
              #if: {{{IncludedWorkURL|}}}
              |{{{IncludedWorkURL}}}
              |{{{URL}}}
            }}
  }}{{
    #if: {{{AccessDate|}}}
    | <span class="reference-accessdate">{{#ifeq:{{{Sep|,}}}|,|,&#32;r|.&#32;R}}etrieved on {{date|{{{AccessDate}}}|{{{DateFormat|dmy}}} }}</span>
    }}
}}{{#if:{{{laysummary|}}}
  |{{{Sep|,}}} [{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}|&nbsp;&ndash;&nbsp;''{{{laysource}}}''}}
}}{{#if:{{{laydate|}}}
  | &#32;({{{laydate}}})
}}{{#if:{{{quote|}}}
  |{{{Sep|,}}} &#32;"{{{quote}}}"
}}{{{PS|}}}</cite><!--


=== Usage ===
=== This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information: ===


=== See also ===
--><span
* {{tl|Citation/patent}}
    class="Z3988"
* {{tl|Cite patent}}, creates links to US and other patents on the espacenet database
    title="ctx_ver=Z39.88-2004&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:}}{{
* {{tl|Citeref patent}}, for an inline citations to a patent bibliography
      #if: {{{Periodical|}}}
* {{tl|EPO Application}}, to include a link to the European Patent Application entry of a European patent application
      |journal&rft.genre=article&rft.atitle={{urlencode:{{{Title|}}}}}&rft.jtitle={{urlencode:{{{Periodical|}}}}}
* {{tl|EPO Register}}, to include a link to the European Patent Register entry of a European patent or patent application
      |book{{
* {{tl|Googpat}},  
        #if: {{{IncludedWorkTitle|}}}
* {{tl|Patent}}, a generic template for general use referring to world's patent offices
        |&rft.genre=bookitem&rft.btitle={{urlencode:{{{IncludedWorkTitle|}}}}}&rft.atitle={{urlencode:{{{Title|}}}}}
* {{tl|Ref patent}}, similar to {{tl|US patent reference}}, but using espacenet with more details than {{tl|Cite patent}}
        |&rft.genre=book&rft.btitle={{urlencode:{{{Title|}}}}}
* {{tl|US patent}}, to include a link to a US patent
      }}
* {{tl|US patent application}}, to cite a US patent application as a reference in "references" section
    }}{{
* {{tl|US patent reference}}, to cite a US patent as a reference in "references" section
    #if: {{{Surname1|}}} |&rft.aulast={{urlencode:{{{Surname1}}}}}{{
* {{tl|USPTO Application}}
      #if: {{{Given1|}}} |&rft.aufirst={{urlencode:{{{Given1}}}}}
* {{tl|USPTO Patent}}
    }}
 
  }}{{
<includeonly>
    #if: {{{Surname1|}}} |&rft.au={{urlencode:{{{Surname1}}}}}{{
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
      #if: {{{Given1|}}} |{{urlencode:, {{{Given1}}}}}
[[Category:External link templates|{{PAGENAME}}]]
    }}
[[Category:Law citation templates|{{PAGENAME}}]]
  }}{{
[[Category:Patent law templates|{{PAGENAME}}]]
    #if: {{{Surname2|}}} |&rft.au={{urlencode:{{{Surname2}}}}}{{
</includeonly>
      #if: {{{Given2|}}} |{{urlencode:, {{{Given2}}}}}
    }}
  }}{{
    #if: {{{Surname3|}}} |&rft.au={{urlencode:{{{Surname3}}}}}{{
      #if: {{{Given3|}}} |{{urlencode:, {{{Given3}}}}}
    }}
  }}{{
    #if: {{{Surname4|}}} |&rft.au={{urlencode:{{{Surname4}}}}}{{
      #if: {{{Given4|}}} |{{urlencode:, {{{Given4}}}}}
    }}
  }}{{
    #if: {{{Surname5|}}} |&rft.au={{urlencode:{{{Surname5}}}}}{{
      #if: {{{Given5|}}} |{{urlencode:, {{{Given5}}}}}
    }}
  }}{{
    #if: {{{Surname6|}}} |&rft.au={{urlencode:{{{Surname6}}}}}{{
      #if: {{{Given6|}}} |{{urlencode:, {{{Given6}}}}}
    }}
  }}{{
    #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>

Latest revision as of 14:55, 3 February 2009

 

[edit] Template-info.svg Template documentation

About this template

Template:Citation/core can be thought of as an engine producing consistent output for Wikipedia's citations. Templates such as {{citation}} provide this core template with a list of parameters, which it uses to produce a formatted text (HTML) output, which contains embedded COinS metadata. This metadata allows many readers to find cited references more easily, or to extract their details to a reference manager.

The presence of a central template makes individual citation templates simpler to code and amend, and produces a consistent look throughout the encyclopaedia.

Templates using this 'engine'

Changes to this central template can affect the output of several 'upstream' templates. A list of templates using citation/core is provided below for testing purposes.


Parameter details

  • |AccessDate= date when the |URL= was accessed.
  • |Archive= details of an archived copy of the source; the calling template will pass on a string such as "archived from the original on 02-02-2002". The URL passed as |IncludedWorkURL= may therefore end up being the URL of the source, or the URL of the archive copy, as determined by the calling template.
  • |At= page reference within the source.
  • |Authorlink1= title of an existing Wikipedia article about the first author.
  • |Authorlink2=, |Authorlink3=, ..., |Authorlink9= title of an existing Wikipedia article about up to eight additional authors.
  • |Bibcode= A Bibcode id
  • |DOI= Digital object identifier.
  • |Date= date of the authorship, if different from date of publication.
  • |DoiBroken= Date the DOI is broken
  • |Edition= number or name of the edition, if not the first; for example: |Edition=2nd.
  • |EditorGiven1= first editor's first or given name(s).
  • |EditorGiven2=, |EditorGiven3=, |EditorGiven4= second, third, and fourth editors' first or given name(s).
  • |EditorSurname1= first editor's surname or last name.
  • |EditorSurname2=, |EditorSurname3=, |EditorSurname4= second, third, and fourth editor' surname or last name.
  • |Editorlink1= title of an existing Wikipedia article about the first editor.
  • |Editorlink2=, |Editorlink3=, |Editorlink4= title of an existing Wikipedia article about the second, third, and fourth editor.
  • |format= file format of the source, if not the common format.
  • |Given1= first author's first or given name(s).
  • |Given2=, |Given3=, ..., |Given9= up to eight additional authors' first or given name(s).
  • |ID= miscellaneous identifier, other than |DOI=, |ISBN=, |ISSN=, |OCLC=, |PMID=, or |PMC=.
  • |ISBN= International Standard Book Number.
  • |ISSN= International Standard Serial Number identifying the periodical.
  • |IncludedWorkTitle= title of the contribution, chapter, or other included work.
  • |IncludedWorkURL= URL of the contribution or chapter, or other included work.
  • |Issue= issue number of the periodical.
  • |language= specifies the language in which the source is written, if not English.
  • |laydate= Date of a lay summary
  • |laysummary= Summary of the source in a layman-friendly journal - for instance a BBC news article about a paper in Nature.
  • |OCLC=Online Computer Library Center ID number.
  • |Other= Other details to be inserted in a particular place
  • |PMC= PubMed Central article number for full-text free repository of an article.
  • |PMID= PubMed Unique Identifier.
  • |Periodical= name of the periodical, journal, or magazine. This parameter controls whether or not the template will generate a citation in the style appropriate to a periodical, jorunal, magazine, or other serial publication.
  • |Place= place where the item was created.
  • |PublicationDate= date of publication.
  • |PublicationPlace= city of publication.
  • |Publisher= name of the publisher.
  • |quote= text to be quoted from the source.
  • |Ref= A reference name - if the citation is referred to using the Havard referencing suite of templates (LINK!)
  • |Sep= specifies the punctuation mark used to separate fields. This usually defaults to a period, but may occasionally be a comma.
  • |Series= series of which this periodical is a part.
  • |Surname1= first author's surname or last name.
  • |Surname2=, |Surname3=, ..., |Surname9= up to eight additional authors' surname or last name.
  • |Title= title of the article in the periodical.
  • |URL= Uniform Resource Locator of an online location where the article can be found.
  • |Volume= volume number of a multi-volume book or compilation.
  • |YearNote= Note to accompany the year. Example: First published 1886
  • |Year= year of authorship or publication.