Template:Citation/core: Difference between revisions

From PortlandWiki
Jump to navigation Jump to search
(from: http://en.wikipedia.org/wiki/Template:Citation/core)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 18: Line 18:
         #iferror: {{ #expr: 1*{{{AuthorMask}}} }}
         #iferror: {{ #expr: 1*{{{AuthorMask}}} }}
         |{{{AuthorMask}}}
         |{{{AuthorMask}}}
         |<del>{{loop|{{{AuthorMask}}}|2=&emsp;}}</del>
         |{{loop|{{{AuthorMask}}}|2=&mdash;}}
       }}
       }}
     |{{
     |{{
Line 34: Line 34:
     #if: {{{Surname2|}}}
     #if: {{{Surname2|}}}
     |{{#ifexpr:{{{Trunc|8}}}<2
     |{{#ifexpr:{{{Trunc|8}}}<2
       |&#32;''et al''.
       |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
       |{{
       |{{
           #iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }}
           #iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }}
Line 56: Line 56:
           #if: {{{Surname3|}}}
           #if: {{{Surname3|}}}
           |{{#ifexpr:{{{Trunc|8}}}<3
           |{{#ifexpr:{{{Trunc|8}}}<3
             |&#32;''et al''.
             |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
             |{{
             |{{
               #if: {{{Surname4|}}}
               #if: {{{Surname4|}}}
Line 74: Line 74:
               #if:{{{Surname4|}}}
               #if:{{{Surname4|}}}
               |{{#ifexpr:{{{Trunc|8}}}<4
               |{{#ifexpr:{{{Trunc|8}}}<4
                 |&#32;''et al''.
                 |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
                 |{{
                 |{{
                     #if: {{{Surname5|}}}
                     #if: {{{Surname5|}}}
Line 92: Line 92:
                   #if:{{{Surname5|}}}
                   #if:{{{Surname5|}}}
                   |{{#ifexpr:{{{Trunc|8}}}<5
                   |{{#ifexpr:{{{Trunc|8}}}<5
                     |&#32;''et al''.
                     |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
                     |{{
                     |{{
                     #if: {{{Surname6|}}}
                     #if: {{{Surname6|}}}
Line 110: Line 110:
                     #if:{{{Surname6|}}}
                     #if:{{{Surname6|}}}
                     |{{#ifexpr:{{{Trunc|8}}}<6
                     |{{#ifexpr:{{{Trunc|8}}}<6
                     |&#32;''et al''.
                     |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
                       |{{
                       |{{
                         #if: {{{Surname7|}}}
                         #if: {{{Surname7|}}}
Line 128: Line 128:
                         #if:{{{Surname7|}}}
                         #if:{{{Surname7|}}}
                         |{{#ifexpr:{{{Trunc|8}}}<7
                         |{{#ifexpr:{{{Trunc|8}}}<7
                           |&#32;''et al''.
                           |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
                         |{{
                         |{{
                           #if: {{{Surname8|}}}
                           #if: {{{Surname8|}}}
Line 146: Line 146:
                                       #if:{{{Surname8|}}}
                                       #if:{{{Surname8|}}}
                                       |{{#ifexpr:{{{Trunc|8}}}<8
                                       |{{#ifexpr:{{{Trunc|8}}}<8
                                           |&#32;''et al''.
                                           |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
                                           |{{
                                           |{{
                                               #if: {{{Surname9|}}}
                                               #if: {{{Surname9|}}}
Line 163: Line 163:
                                             }}{{
                                             }}{{
                                               #if:{{{Surname9|}}}
                                               #if:{{{Surname9|}}}
                                               |&#32;''et al''.
                                               |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
                                             }}
                                             }}
                                         }}
                                         }}
Line 171: Line 171:
                             }}
                             }}
                           }}
                           }}
                       }}                  
                       }}
                     }}
                     }}
                   }}
                   }}
Line 178: Line 178:
         }}
         }}
       }}
       }}
    
 
   }}{{
    #if: {{{Coauthors|}}}
    |{{{AuthorSep|&#059;&#32;}}}{{{Coauthors|}}}|
   }}{{
   }}{{
     #if: {{{Date|}}}
     #if: {{{Date|}}}
Line 232: Line 235:
             }}{{
             }}{{
               #if:{{{EditorSurname4|}}}
               #if:{{{EditorSurname4|}}}
               |&#32;et al.
               |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
             }}
             }}
         }}
         }}
       }}, ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep|,}}}|.||.}}{{
       }}, ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}{{
         #if: {{{Date|}}}
         #if: {{{Date|}}}
         |&#32;({{{Date}}}){{
         |&#32;({{{Date}}}){{
Line 245: Line 248:
}}{{
}}{{
<!--============  Title of included work  ============-->
<!--============  Title of included work  ============-->
   #if: {{{IncludedWorkTitle|}}}
   #if: {{{IncludedWorkTitle|}}}{{#if:{{{Periodical|}}}||{{#if:{{{TransItalic|}}}||{{{TransTitle|}}}}}}}
  {{
    #if:{{{Periodical|}}}||{{#if:{{{TransItalic|}}}||{{{TransTitle|}}}}}
  }}
   |{{
   |{{
     #if:{{{Surname1|}}}{{{EditorSurname1|}}}  
     #if:{{{Surname1|}}}{{{EditorSurname1|}}}
     |{{{Sep|,}}}&#32;  
     |{{{Sep|,}}}&#32;
   }}{{#if:{{{Periodical|}}}||"}}{{Citation/make link
   }}{{Citation/make link
     | 1={{
     | 1={{
           #if: {{{IncludedWorkURL|}}}
           #if: {{{IncludedWorkURL|}}}
Line 259: Line 259:
               #if: {{{URL|}}}
               #if: {{{URL|}}}
               |{{{URL}}}
               |{{{URL}}}
<!-- Only link URL if to a free full text - as at PubMedCentral (PMC)-->
              |{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }}
                |{{
                  #if: {{{PMC|}}}
                  |http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                }}
              }}
             }}
             }}
         }}
         }}
Line 271: Line 264:
           #if: {{{Periodical|}}}
           #if: {{{Periodical|}}}
           |''<nowiki />{{{IncludedWorkTitle}}}<nowiki />''
           |''<nowiki />{{{IncludedWorkTitle}}}<nowiki />''
           |{{{IncludedWorkTitle|}}}{{
           |"{{{IncludedWorkTitle|}}}{{
        #if: {{{TransTitle|}}}
            #if: {{{TransTitle|}}}
        |{{#if: {{{IncludedWorkTitle|}}}|&#32;}}&#91;{{{TransTitle}}}&#93;}}
            |{{
                #if: {{{IncludedWorkTitle|}}}
                |&#32;
              }}&#91;{{{TransTitle}}}&#93;
          }}"
         }}
         }}
   }}{{#if:{{{Periodical|}}}||"}}
   }}
}}{{
}}{{
<!--============  Place (if different than PublicationPlace) ============-->
<!--============  Place (if different than PublicationPlace) ============-->
Line 284: Line 281:
     |{{
     |{{
         #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}
         #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}
         |{{{Sep|,}}} written at {{{Place}}}
         |{{{Sep|,}}}&#32;written at {{{Place}}}
       }}
       }}
   }}
   }}
Line 292: Line 289:
   |{{
   |{{
     #if: {{{Surname1|}}}
     #if: {{{Surname1|}}}
     |{{{Sep|,}}} {{
     |{{{Sep|,}}}&#32;{{
         #if: {{{IncludedWorkTitle|}}}
         #if: {{{IncludedWorkTitle|}}}
         |in&#32;
         |{{#ifeq:{{{Sep|}}}|.|I|i}}n&#32;
       }}{{
       }}{{
         #if: {{{Editorlink1|}}}
         #if: {{{Editorlink1|}}}
Line 338: Line 335:
             }}{{
             }}{{
               #if:{{{EditorSurname4|}}}
               #if:{{{EditorSurname4|}}}
               |&#32;et al.
               |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
             }}
             }}
         }}
         }}
Line 344: Line 341:
         #if: {{{IncludedWorkTitle|}}}
         #if: {{{IncludedWorkTitle|}}}
         |
         |
         |{{{Sep|,}}} ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep|,}}}|.||.}}
         |{{{Sep|,}}}&#32;ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep}}}|.||.}}
       }}
       }}
   }}
   }}
Line 351: Line 348:
   #if: {{{Periodical|}}}
   #if: {{{Periodical|}}}
   |{{
   |{{
     #if: {{{Other|}}}  
     #if: {{{Other|}}}
     |{{{Sep|,}}} {{{Other|}}}
     |{{{Sep|,}}}&#32;{{{Other|}}}
   }}{{
   }}{{
     #if: {{{Surname1|}}}{{{EditorSurname1|}}}
     #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}
     |{{{Sep|,}}}&#32;}}{{
     |{{{Sep|,}}}&#32;}}{{
     #if: {{{Title|}}}{{{TransTitle|}}}
     #if: {{{Title|}}}{{{TransTitle|}}}
     |"{{Citation/make link
     |{{Citation/make link
         | 1={{
         | 1={{
               #if: {{{IncludedWorkTitle|}}}
               #if: {{{IncludedWorkTitle|}}}
Line 365: Line 362:
                     #if: {{{URL|}}}
                     #if: {{{URL|}}}
                     |{{{URL}}}
                     |{{{URL}}}
                    |{{
                      #ifexpr: {{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }} | {{
                        #if: {{{PMC|}}}
                        |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                      }}
                    }}
                   }}
                   }}
               }}
               }}
Line 376: Line 367:
                 #if: {{{URL|}}}
                 #if: {{{URL|}}}
                 |{{{URL}}}
                 |{{{URL}}}
                |{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }} |{{
                      #if: {{{PMC|}}}
                      |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                    }}
                }}
               }}
               }}
             }}
             }}
         | 2={{{Title}}}{{
         | 2="{{{Title}}}{{
        #if: {{{TransTitle|}}}
          #if: {{{TransTitle|}}}
        |{{#if: {{{Title|}}}|&#32;}}&#91;{{{TransTitle}}}&#93;}}
          |{{
       }}"{{
            #if: {{{Title|}}}
            |&#32;
          }}&#91;{{{TransTitle}}}&#93;
        }}"
       }}{{
         #if: {{{TitleNote|}}}
         #if: {{{TitleNote|}}}
         |{{{Sep|,}}}&#32;{{{TitleNote}}}
         |{{{Sep|,}}}&#32;{{{TitleNote}}}
       }}  
       }}
   }}
   }}
}}{{
}}{{
   #if: {{{language|}}}  
   #if: {{{language|}}}
   |&#32;(in {{{language}}})
   |&#32;(in {{{language}}})
}}{{#if: {{{format|}}}
}}{{
  #if: {{{format|}}}
   |&#32;({{{format}}})
   |&#32;({{{format}}})
}}{{
}}{{
   #if: {{{Periodical|}}}|{{
   #if: {{{Periodical|}}}
       #if:{{{IncludedWorkTitle|}}}{{{Title|}}}{{{TransTitle|}}}|{{{Sep|,}}}&#32;}}''<nowiki />{{{Periodical}}}<nowiki />''{{
  |{{
       #if:{{{IncludedWorkTitle|}}}{{{Title|}}}{{{TransTitle|}}}
      |{{{Sep|,}}}&#32;
    }}''<nowiki />{{{Periodical}}}<nowiki />''{{
       #if: {{{Series|}}}
       #if: {{{Series|}}}
       |{{{Sep|,}}} {{{Series}}}
       |{{{Sep|,}}}&#32;{{{Series}}}
     }}{{
     }}{{
       #if: {{{PublicationPlace|}}}
       #if: {{{PublicationPlace|}}}
Line 414: Line 408:
     }}{{
     }}{{
       #if: {{{Volume|}}}
       #if: {{{Volume|}}}
       |&#32;'''<nowiki />{{{Volume}}}<nowiki />'''{{
       |&#32;{{#if:{{{Periodical|}}}|'''<nowiki />{{{Volume}}}<nowiki />'''|{{{Volume}}}}}{{
         #if: {{{Issue|}}}
         #if: {{{Issue|}}}
         |&#32;({{{Issue}}})
         |&#32;({{{Issue}}})
Line 431: Line 425:
       |{{
       |{{
         #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
         #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
         |{{{Sep|,}}}&#32;|&#32;
         |{{{Sep|,}}}
      }}{{Citation/make link
      }}&#32;{{Citation/make link
         | 1={{
         | 1={{
               #if: {{{IncludedWorkTitle|}}}
               #if: {{{IncludedWorkTitle|}}}
Line 440: Line 434:
                     #if: {{{URL|}}}
                     #if: {{{URL|}}}
                     |{{{URL}}}
                     |{{{URL}}}
                    |{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }}|{{
                        #if: {{{PMC|}}}
                        |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                      }}}}
                   }}
                   }}
                 }}
                 }}
Line 449: Line 439:
                   #if: {{{URL|}}}
                   #if: {{{URL|}}}
                   |{{{URL}}}
                   |{{{URL}}}
                                |{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }}|{{
                    #if: {{{PMC|}}}
                    |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}     
                  }}}}
                 }}
                 }}
             }}
             }}
         | 2=''<nowiki />{{{Title|}}}{{
         | 2=''<nowiki />{{{Title|}}}{{
             #if:{{{TransItalic|}}}|&#32;&#91;{{{TransItalic}}}&#93;
             #if:{{{TransItalic|}}}|&#32;&#91;{{{TransItalic}}}&#93;
           }}<nowiki />''}}}}{{
           }}<nowiki />''
      }}
    }}{{
      #if: {{{TitleType|}}}
      |&#32;({{{TitleType}}})
    }}{{
       #if: {{{Series|}}}
       #if: {{{Series|}}}
       |{{{Sep|,}}} {{{Series}}}
       |{{{Sep|,}}}&#32;{{{Series}}}
     }}{{
     }}{{
       #if: {{{Volume|}}}
       #if: {{{Volume|}}}
       |{{{Sep|,}}} '''<nowiki />{{{Volume}}}<nowiki />'''
       |{{{Sep|,}}}&#32;'''<nowiki />{{{Volume}}}<nowiki />'''
     }}{{
     }}{{
       #if: {{{Other|}}}  
       #if: {{{Other|}}}
       |{{{Sep|,}}} {{{Other|}}}
       |{{{Sep|,}}}&#32;{{{Other|}}}
     }}{{
     }}{{
       #if: {{{Edition|}}}
       #if: {{{Edition|}}}
Line 471: Line 462:
     }}{{
     }}{{
       #if: {{{PublicationPlace|}}}
       #if: {{{PublicationPlace|}}}
       |{{{Sep|,}}} {{{PublicationPlace}}}
       |{{{Sep|,}}}&#32;{{{PublicationPlace}}}
     }}{{
     }}{{
       #if: {{{Publisher|}}}
       #if: {{{Publisher|}}}
Line 478: Line 469:
         |<nowiki>:</nowiki>
         |<nowiki>:</nowiki>
         |{{{Sep|,}}}
         |{{{Sep|,}}}
       }} {{{Publisher}}}
       }}&#32;{{{Publisher}}}
     }}
     }}
}}{{
}}{{
Line 486: Line 477:
   |{{
   |{{
     #if: {{{Date|}}}
     #if: {{{Date|}}}
     |{{{Sep|,}}} {{{Date}}}{{
     |{{{Sep|,}}}&#32;{{{Date}}}{{
       #if:{{{YearNote|}}}
       #if:{{{YearNote|}}}
     |&#32;[{{{YearNote}}}]
     |&#32;[{{{YearNote}}}]
Line 501: Line 492:
         |{{
         |{{
           #if: {{{Surname1|}}}
           #if: {{{Surname1|}}}
           |{{{Sep|,}}} {{{PublicationDate}}}
           |{{{Sep|,}}}&#32;{{{PublicationDate}}}
           |&#32;(published {{{PublicationDate}}})
           |&#32;(published {{{PublicationDate}}})
         }}
         }}
         |{{
         |{{
           #if: {{{Periodical|}}}
           #if: {{{Periodical|}}}
           |{{{Sep|,}}} {{{PublicationDate}}}
           |{{{Sep|,}}}&#32;{{{PublicationDate}}}
           |&#32;(published {{{PublicationDate}}})
           |&#32;(published {{{PublicationDate}}})
         }}
         }}
Line 517: Line 508:
   |{{
   |{{
     #if: {{{At|}}}
     #if: {{{At|}}}
     |{{{Sep|,}}} {{{At}}}
     |{{{Sep|,}}}&#32;{{{At}}}
   }}
   }}
}}{{
}}{{
<!--===============DOI================-->
<!--============ arXiv ==============-->
#if:{{{DOI|}}}  
  #if: {{{ARXIV|}}}
   |{{{Sep|,}}} [[Digital object identifier|doi]]:{{#if: {{{DoiBroken|}}}  
   |{{{Sep|,}}}&#32;{{citation/identifier |identifier=arxiv |input1={{{ARXIV|}}} }}
    | {{#tag:nowiki|{{{DOI}}}}} (inactive {{{DoiBroken|}}}) {{#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>
<!--============ ASIN ===============-->
    }}
  #if: {{{ASIN|}}}
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=asin |input1={{{ASIN|}}} |input2={{{ASIN-TLD|}}} }}
}}{{
<!--============ BIBCODE ============-->
  #if: {{{BIBCODE|}}}
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=bibcode |input1={{{BIBCODE|}}} }}
}}{{
}}{{
<!--============ Misc. Identifier ============-->
<!--============ DOI ================-->
  #if: {{{ID|}}}
#if:{{{DOI|}}}
   |{{
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=doi |input1={{{DOI|}}} |input2={{{DoiBroken|}}} |input3={{{template doc demo|}}}}}
    #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}{{{Title|}}}{{{TransItalic|}}}
    |{{{Sep|,}}} {{{ID}}}
    |{{{ID}}}
  }}
}}{{
}}{{
<!--============ ISBN ============-->
<!--============ ISBN ===============-->
   #if: {{{ISBN|}}}
   #if: {{{ISBN|}}}
   |{{{Sep|,}}} [[International Standard Book Number|ISBN]] [[Special:BookSources/{{{ISBN}}}|{{{ISBN}}}]]
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=isbn |input1={{{ISBN|}}} }}
}}{{
}}{{
<!--============ ISSN ============-->
<!--============ ISSN ===============-->
   #if: {{{ISSN|}}}
   #if: {{{ISSN|}}}
   |{{{Sep|,}}} [[International Standard Serial Number|ISSN]] [http://worldcat.org/issn/{{{ISSN}}} {{{ISSN}}}]
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=issn |input1={{{ISSN|}}} }}
}}{{
<!--============ JFM ================-->
  #if: {{{JFM|}}}
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=jfm |input1={{{JFM|}}} }}
}}{{
}}{{
<!--============ OCLC ============-->
<!--============ JSTOR ==============-->
  #if: {{{JSTOR|}}}
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=jstor |input1={{{JSTOR|}}} }}
}}{{
<!--============ LCCN ===============-->
  #if: {{{LCCN|}}}
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=lccn |input1={{{LCCN|}}} }}
}}{{
<!--============ MR =================-->
  #if: {{{MR|}}}
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=mr |input1={{{MR|}}} }}
}}{{
<!--============ OCLC ===============-->
   #if: {{{OCLC|}}}
   #if: {{{OCLC|}}}
   |{{{Sep|,}}} [[Online Computer Library Center|OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{OCLC}}}}} {{{OCLC}}}]
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=oclc |input1={{{OCLC|}}} }}
}}{{
}}{{
<!--============ PMID ============-->  
<!--============ OL =================-->
   #if: {{{PMID|}}}  
   #if: {{{OL|}}}
   |{{{Sep|,}}} [[PubMed Identifier|PMID]] [http://www.ncbi.nlm.nih.gov/pubmed/{{{PMID}}} {{{PMID}}}]
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=ol |input1={{{OL|}}} }}
}}{{
}}{{
<!--============ PMC ============-->  
<!--============ OSTI ===============-->
   #if: {{{PMC|}}}  
  #if: {{{OSTI|}}}
   |{{#if: {{{URL|}}}
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=osti |input1={{{OSTI|}}} }}
    |{{{Sep|,}}} [[PubMed Central|PMC]] [http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}} {{{PMC}}}]
}}{{
  }}
<!--============ PMC ================-->
   #if: {{{PMC|}}}
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=pmc |input1={{{PMC|}}} }}
}}{{
<!--============ PMID ===============-->
  #if: {{{PMID|}}}
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=pmid |input1={{{PMID|}}} }}
}}{{
<!--============ RFC ================-->
  #if: {{{RFC|}}}
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=rfc|input1={{{RFC|}}} }}
}}{{
<!--============ SSRN ================-->
  #if: {{{SSRN|}}}
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=ssrn |input1={{{SSRN|}}} }}
}}{{
<!--============ ZBL ================-->
  #if: {{{ZBL|}}}
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=zbl |input1={{{ZBL|}}} }}
}}{{
}}{{
<!--============ BIBCODE ============-->  
<!--============ Misc. Identifier ============-->
   #if: {{{Bibcode|}}}  
   #if: {{{ID|}}}
   |{{{Sep|,}}} [[Bibcode]]:&nbsp;[http://adsabs.harvard.edu/abs/{{{Bibcode}}} {{{Bibcode}}}]
   |{{{Sep|,}}}&#32;{{{ID}}}
}}{{
}}{{
<!--============ Archive data, etc ===========-->
<!--============ Archive data, etc ===========-->
#if: {{{Archive|}}}
#if: {{{Archive|}}}
|{{{Sep|,}}} {{{Archive}}}[[Category:Pages using deprecated citation archive parameters]]
|{{{Sep|,}}}&#32;{{{Archive}}}[[Category:Pages using deprecated citation archive parameters]]
|{{
|{{
   #if:{{{ArchiveURL|}}}{{{ArchiveDate|}}}
   #if:{{{ArchiveURL|}}}{{{ArchiveDate|}}}
   |{{{Sep|,}}} {{#ifeq:{{{Sep}}}|.|A|a}}rchived{{
   | {{{Sep|,}}}&#32;{{#ifeq: {{{DeadURL|}}} | no
     #if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}
    | {{#if:{{{ArchiveURL|}}}
    |{{#if:{{{ArchiveURL|}}}|&#32;from {{Citation/make link|{{{OriginalURL|{{{IncludedWorkURL|}}}}}}|the original}}}}
      |{{Citation/make link|{{{ArchiveURL|}}}|{{#ifeq:{{{Sep}}}|.|A|a}}rchived}}&#32;from the original
     }}{{
      |{{#ifeq:{{{Sep}}}|.|A|a}}rchived
    #if:{{{ArchiveDate|}}}
      }}
    |&#32;on {{{ArchiveDate}}}
     | {{#ifeq:{{{Sep}}}|.|A|a}}rchived{{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}
    }}{{
      |{{#if:{{{ArchiveURL|}}}|&#32;from {{Citation/make link|{{{OriginalURL|{{{IncludedWorkURL|}}}}}}|the original}}}}
    #if:{{#if:{{{ArchiveURL|}}}||A}}{{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}||B}}{{#if:{{{ArchiveDate|}}}||C}}
      }}
    |. {{citation error
     }}{{#if:{{{ArchiveDate|}}}|&#32;on {{{ArchiveDate}}}}}{{
       |If you specify <code>&#124;{{#if:{{{ArchiveURL|}}}|archiveurl|archivedate}}&#61;</code>, you must {{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}| also specify <code>&#124;{{#if:{{{ArchiveURL|}}}|archivedate|archiveurl}}&#61;</code>|first specify <code>&#124;url&#61;</code>}}}}
    #if:{{#if:{{{ArchiveURL|}}}||A}}{{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}||B}}{{#if:{{{ArchiveDate|}}}||C}}
    |. {{citation error|nocat={{{template doc demo|}}}
       |If you specify <code>&#124;{{#if:{{{ArchiveURL|}}}|archiveurl|archivedate}}&#61;</code>{{#ifeq:{{{DeadURL|}}}|no|{{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}||&#32;and <code>&#124;deadurl&#61;no</code>}}}}, you must {{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}| also specify <code>&#124;{{#if:{{{ArchiveURL|}}}|archivedate|archiveurl}}&#61;</code>| {{#ifeq:{{{DeadURL|}}}|no|also|first}} specify <code>&#124;url&#61;</code>}}}}
     }}
     }}
   }}
   }}
}}{{  
}}{{
<!--============ URL and AccessDate ============-->
<!--============ URL and AccessDate ============-->
   #if: {{{URL|}}}{{{IncludedWorkURL|}}}
   #if: {{{URL|}}}{{{IncludedWorkURL|}}}{{#ifeq:{{{DeadURL|}}}|no|{{{ArchiveURL|}}}|}}
   |{{
   |{{
     #if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}}
     #if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}}
     |<span class="printonly">{{{Sep|,}}} {{
     |<span class="printonly">{{{Sep|,}}}&#32;{{
                                       #if: {{{IncludedWorkURL|}}}
                                       #if: {{{IncludedWorkURL|}}}
                                       |{{{IncludedWorkURL}}}
                                       |{{{IncludedWorkURL}}}
                                       |{{{URL}}}
                                       |{{{URL}}}
                                     }}</span>
                                     }}</span>
     |{{{Sep|,}}} {{
     |{{{Sep|,}}}&#32;{{
               #if: {{{IncludedWorkURL|}}}
               #if: {{{IncludedWorkURL|}}}
               |{{{IncludedWorkURL}}}
               |{{{IncludedWorkURL}}}
Line 595: Line 623:
   }}{{
   }}{{
     #if: {{{AccessDate|}}}
     #if: {{{AccessDate|}}}
     | <span class="reference-accessdate">{{#ifeq:{{{Sep|,}}}|,|,&#32;r|.&#32;R}}etrieved {{{AccessDate}}}</span>
     | <span class="reference-accessdate">{{#ifeq:{{{Sep|}}}|,|,&#32;r|.&#32;R}}etrieved {{{AccessDate}}}</span>
     }}
     }}
}}{{#if:{{{laysummary|}}}  
}}{{#if:{{{laysummary|}}}
   |{{{Sep|,}}} [{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}|&nbsp;&ndash;&nbsp;''<nowiki />{{{laysource}}}<nowiki />''}}
   |{{{Sep|,}}}&#32;[{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}|&nbsp;&ndash;&nbsp;''<nowiki />{{{laysource}}}<nowiki />''}}
}}{{#if:{{{laydate|}}}
}}{{#if:{{{laydate|}}}
   | &#32;({{{laydate}}})
   | &#32;({{{laydate}}})
}}{{#if:{{{quote|}}}
}}{{#if:{{{quote|}}}
   |{{{Sep|,}}} &#32;"{{{quote}}}"
   |{{{Sep|,}}}&#32;"{{{quote}}}"
}}{{{PS|}}}</span><!--
}}{{{PS|}}}</span><!--


Line 660: Line 688:
       #if: {{{Date|}}} |&rft.date={{urlencode:{{{Date}}}}}
       #if: {{{Date|}}} |&rft.date={{urlencode:{{{Date}}}}}
     }}{{
     }}{{
       #if: {{{Series|}}} |&rft.series={{urlencode:{{{Series}}}}}  
       #if: {{{Series|}}} |&rft.series={{urlencode:{{{Series}}}}}
     }}{{
     }}{{
       #if: {{{Volume|}}} |&rft.volume={{urlencode:{{{Volume}}}}}
       #if: {{{Volume|}}} |&rft.volume={{urlencode:{{{Volume}}}}}
Line 670: Line 698:
       #if: {{{Edition|}}} |&rft.edition={{urlencode:{{{Edition}}}}}
       #if: {{{Edition|}}} |&rft.edition={{urlencode:{{{Edition}}}}}
     }}{{
     }}{{
       #if: {{{PublicationPlace|}}} |&rft.place={{urlencode:{{{PublicationPlace}}}}}
       #if: {{{PublicationPlace|}}}{{{Place|}}} |&rft.place={{urlencode:{{{PublicationPlace|{{{Place}}}}}}}}
     }}{{
     }}{{
       #if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}}
       #if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}}
    }}{{
      #if: {{{ARXIV|}}} |&rft_id=info:arxiv/{{urlencode:{{{ARXIV}}}}}
    }}{{
      #if: {{{ASIN|}}} |&rft_id=info:asin/{{urlencode:{{{ASIN}}}}}
    }}{{
      #if: {{{BIBCODE|}}} |&rft_id=info:bibcode/{{urlencode:{{{BIBCODE}}}}}
     }}{{
     }}{{
       #if: {{{DOI|}}} |&rft_id=info:doi/{{urlencode:{{{DOI}}}}}
       #if: {{{DOI|}}} |&rft_id=info:doi/{{urlencode:{{{DOI}}}}}
     }}{{
     }}{{
       #if: {{{PMID|}}} |&rft_id=info:pmid/{{urlencode:{{{PMID}}}}}
       #if: {{{ISBN|}}} |&rft.isbn={{urlencode:{{{ISBN}}}}}
    }}{{
      #if: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}}
    }}{{
      #if: {{{JFM|}}} |&rft.jfm={{urlencode:{{{JFM}}}}}
    }}{{
      #if: {{{JSTOR|}}} |&rft.jstor={{urlencode:{{{JSTOR}}}}}
     }}{{
     }}{{
       #if: {{{Bibcode|}}} |&rft_id=info:bibcode/{{urlencode:{{{Bibcode}}}}}
       #if: {{{LCCN|}}} |&rft.lccn={{urlencode:{{{LCCN}}}}}
     }}{{
     }}{{
       #if: {{{OCLC|}}} |&rft_id=info:oclcnum/{{urlencode:{{{OCLC}}}}}
       #if: {{{OCLC|}}} |&rft_id=info:oclcnum/{{urlencode:{{{OCLC}}}}}
     }}{{
     }}{{
       #if: {{{ISBN|}}} |&rft.isbn={{urlencode:{{{ISBN}}}}}
       #if: {{{OL|}}} |&rft_id=info:olnum/{{urlencode:{{{OL}}}}}
    }}{{
      #if: {{{OSTI|}}} |&rft_id=info:osti/{{urlencode:{{{OSTI}}}}}
    }}{{
      #if: {{{MR|}}} |&rft.mr={{urlencode:{{{MR}}}}}
    }}{{
      #if: {{{PMC|}}} |&rft_id=info:pmc/{{urlencode:{{{PMC}}}}}
    }}{{
      #if: {{{PMID|}}} |&rft_id=info:pmid/{{urlencode:{{{PMID}}}}}
    }}{{
      #if: {{{RFC|}}} |&rft_id=info:rfc/{{urlencode:{{{RFC}}}}}
    }}{{
      #if: {{{SSRN|}}} |&rft_id=info:ssrn/{{urlencode:{{{SSRN}}}}}
     }}{{
     }}{{
       #if: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}}
       #if: {{{ZBL|}}} |&rft_id=info:zbl/{{urlencode:{{{ZBL}}}}}
     }}{{
     }}{{
       #if: {{{URL|}}}{{{IncludedWorkURL|}}} |&rft_id={{urlencode:{{{URL|{{{IncludedWorkURL|}}}}}}}}
       #if: {{{URL|}}}{{{IncludedWorkURL|}}} |&rft_id={{urlencode:{{{URL|{{{IncludedWorkURL|}}}}}}}}
     }}&rfr_id=info:sid/en.wikipedia.org:{{FULLPAGENAMEE}}"><span style="display: none;">&nbsp;</span></span><noinclude>
     }}&rfr_id=info:sid/en.wikipedia.org:{{FULLPAGENAMEE}}"><span style="display: none;">&nbsp;</span></span><noinclude>
{{Pp-template|small=yes}}
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Latest revision as of 21:19, 31 October 2012

 

[edit] [history] [purge] Documentation icon 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 directly using citation/core is provided below for testing purposes. There are hundreds of templates that use these templates as meta-templates.

Parameter details

Note that the examples below are common uses of each parameter, intended to help editors understand the functioning of this template. In the most part, there is nothing wrong with passing different data to any of the parameters below if it produces the output that is desired. The exception is in parameters which are associated with a COinS field— these parameters are indicated by ⊗.

  • |AccessDate= date when the |URL= was accessed. Should not be wikilinked.
  • archive parameters (if used, must be used both of them together)
    • |ArchiveURL= the URL of an archived copy of a web page, if (or in case) the url becomes unavailable. Typically used to refer to services like WebCite and Archive.org.
    • |ArchiveDate= date when the item was archived. Should not be wikilinked.
  • |OriginalURL= If an archived URL is provided elsewhere, the original URL should be specified here.
  • |amp= When set to any value, changes the separator between the last two names in lists of authors to an ampersand (&). Defaults to a semicolon and space(; ), else |AuthorSep= if set.
  • |ARXIV= ArXiv ID.
  • |ASIN= Amazon Standard Identification Number.
  • |At= page reference within the source.
  • |Authorlink1= title of an existing Wikipedia article about the first author.
  • |Authorlink2=, |Authorlink3=, ..., |Authorlink8= title of an existing Wikipedia article about up to seven additional authors.
  • |AuthorMask= Primarily intended for use in bibliographies for some styles where multiple works by a single author are listed. It replaces the name of the first author with a strike-thru dash (—) AuthorMask em in length enclosed in <del> tags. If |AuthorMask=1 then the dash will be one em in length and so on. Set AuthorMask to a text value to display a word instead:– for example, 'with'. You must still include the parameters for all authors for metadata purposes. Do not use in a list generated by {{reflist}} or <references /> as there is no control as to the order that references will display.
  • |AuthorSep= Separator between author names; defaults to semicolon (;).
  • |BIBCODE= A Bibcode ID.
  • |Citation class= adds the specified HTML class to the span that encloses the citation. The name must be one word (separate words are separate classes) and must meet the name rules.[1]
  • |DOI= Digital object identifier.
  • |Date= date of the authorship, if different from date of publication.
  • |DeadURL= indicates if the original link is dead or live (|DeadURL=no). Used to change the main citation link when |ArchiveURL= is set.
  • |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= second and third editors’ first or given name(s).
  • |EditorSurname1= first editor's surname or last name.
  • |EditorSurname2=, |EditorSurname3=, |EditorSurname4= second, third, and fourth editors’ surname or last name. The fourth is not actually used, but causes 'et al.' to be generated.
  • |Editorlink1= title of an existing Wikipedia article about the first editor.
  • |Editorlink2=, |Editorlink3= title of existing Wikipedia articles about the second and third editors.
  • |format= file format of the source, if not the common format. Or; "Free full text", "abstract", or similar descriptor
  • |Given1= first author's first or given name(s).
  • |Given2=, |Given3=, ..., |Given8= up to seven 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= Specific title, to be displayed in quotation marks. Contrast with |Title=, which is displayed in italics. In some cases (e.g. Template:Cite web) it may be desirable to use IncludedWorkTitle for the title, and not use the Title parameter at all.
  • |IncludedWorkURL= URL of the contribution or chapter, or other included work.
  • |Issue= issue number of the periodical.
  • |JFM= Jahrbuch über die Fortschritte der Mathematik
  • |JSTOR= JSTOR ID.
  • |language= specifies the language in which the source is written, if not English.
  • |laysummary= Summary of the source in a layman-friendly journal - for instance a BBC news article about a paper in Nature.
    • |laydate= Date of a lay summary.
    • |laysource= Name of the source, such as the magazine or journal.
  • |LCCN= Library of Congress Control Number ID.
  • |MR= Mathematical Reviews ID.
  • |NameSep= Separator between last and first names; defaults to a comma and space (, ).
  • |OCLC=Online Computer Library Center ID number.
  • |OL= Open Library ID.
  • |OSTI= Office of Scientific and Technical Information ID.
  • |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, journal, magazine, or other serial publication. When set, |Publisher= and |PublicationPlace= are formatted in parentheses.
  • |Place= place where the item was created (outputs "written at location"; this parameter should not be used for location of publication; see |PublicationPlace=, below.
  • |PublicationDate= date of publication.
  • |PublicationPlace= city of publication.
  • |Publisher= name of the publisher.
  • |quote= text to be quoted from the source. If supplied, this is enclosed in double-quotes.
  • |PS= postscript terminating the citation. This is empty by default.
  • |Ref= A reference name - if the citation is referred to using the Harvard referencing suite of templates.
  • |RFC= Request for Comments ID.
  • |Sep= specifies the punctuation mark used to separate fields. This usually defaults to a period, but may occasionally be a comma. For technical reasons, the template will malfunction if a semicolon is passed as a separator. To circumvent this, the calling template should encode semicolons:
    |Sep = {{#ifeq:{{{separator}}}|;|&#059;|{{{separator|!}}}}}
    Replace the exclamation mark with a default separator, if one different to a period is desired.
  • |Series= series of which this periodical is a part.
  • |SSRN= Social Science Research Network ID.
  • |Surname1= first author's surname or last name.
  • |Surname2=, |Surname3=, ..., |Surname9= up to eight additional authors’ surnames or last names. The ninth is not actually used, but causes et al. to be generated.
  • |Title= Title, to be displayed in italics after |IncludedWorkTitle=. Used, for example, when citing the title of a book; the chapter title would be passed to IncludedWorkTitle
  • |template doc demo= The archive parameters have error checking to ensure that all the required parameters are included, else {{citation error}} is invoked. On errors, main, help and template pages are placed into Category:Articles with incorrect citation syntax. Set |template doc demo=true to disable categorization.
  • |TitleNote= appears after Title; shows only if Title and Periodical are defined.
  • |TitleType= specific type of item cited. Example: PhD thesis. Appears in parentheses immediately after Title or TransTitle.
  • |TransItalic= Translated italicized title, in case the original title is in a foreign language. Can be used in conjunction with TransTitle, e.g. for book and chapter title, respectively. This translated string will appear in square brackets, following the italicized book title, with the same URL link.
  • |TransTitle= Translated title, in case the original title is in a foreign language. The translated title will appear inside square brackets, enclosed within the quotation marks of the IncludedWorkTitle.
  • |Trunc= Sets the number of authors to display before et al. is shown.
  • |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.
  • |ZBL= Zentralblatt MATH ID.

Supporting CSS

Rules are defined in MediaWiki:Common.css to control the appearance of citations.

The raw URL is rendered at the end of the citation, but is hidden except when printed.

/* For linked citation numbers and document IDs, where
   the number need not be shown on a screen or a handheld,
   but should be included in the printed version */
@media screen, handheld {
    .citation *.printonly {
        display: none;
    }

References

The above documentation is transcluded from Template:Citation/core/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.