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

From blackwiki
Jump to navigation Jump to search
imported>Wikid77
(added semi-auto-bolding of "Volume" (such as "15a" else unbolded), +new option "volume-bold=yes" or: y/n/no & removed unneeded "nowiki/" tags in Volume, reducing post-expand size for "Volume" by 66%)
imported>Wikid77
(reloaded from August 2012; put 14 gated-if structures to speed the check of rare options, such as Surname2 as 16x faster to skip Surname3+, or 3x faster by if {JSTOR|JFM|LCCN|.. PMID..|SSRN |ZBL|ID}.)
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 235: 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 250: Line 250:
 
   #if: {{{IncludedWorkTitle|}}}{{#if:{{{Periodical|}}}||{{#if:{{{TransItalic|}}}||{{{TransTitle|}}}}}}}
 
   #if: {{{IncludedWorkTitle|}}}{{#if:{{{Periodical|}}}||{{#if:{{{TransItalic|}}}||{{{TransTitle|}}}}}}}
 
   |{{
 
   |{{
     #if:{{{Surname1|}}}{{{EditorSurname1|}}}
+
     #if:{{{Surname1|{{{EditorSurname1|}}} }}}
 
     |{{{Sep|,}}}&#32;
 
     |{{{Sep|,}}}&#32;
 
   }}{{Citation/make link
 
   }}{{Citation/make link
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}}}
 
                }}
 
              }}
 
 
             }}
 
             }}
 
         }}
 
         }}
 
     | 2={{
 
     | 2={{
 
           #if: {{{Periodical|}}}
 
           #if: {{{Periodical|}}}
           |''<nowiki />{{{IncludedWorkTitle}}}<nowiki />''
+
           |''<nowiki />{{{IncludedWorkTitle}}}''
 
           |"{{{IncludedWorkTitle|}}}{{
 
           |"{{{IncludedWorkTitle|}}}{{
 
             #if: {{{TransTitle|}}}
 
             #if: {{{TransTitle|}}}
Line 298: Line 291:
 
     |{{{Sep|,}}}&#32;{{
 
     |{{{Sep|,}}}&#32;{{
 
         #if: {{{IncludedWorkTitle|}}}
 
         #if: {{{IncludedWorkTitle|}}}
         |{{#ifeq:{{{Sep|,}}}|.|I|i}}n&#32;
+
         |{{#ifeq:{{{Sep|}}}|.|I|i}}n&#32;
 
       }}{{
 
       }}{{
 
         #if: {{{Editorlink1|}}}
 
         #if: {{{Editorlink1|}}}
Line 342: Line 335:
 
             }}{{
 
             }}{{
 
               #if:{{{EditorSurname4|}}}
 
               #if:{{{EditorSurname4|}}}
               |&#32;et al.
+
               |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
 
             }}
 
             }}
 
         }}
 
         }}
Line 348: Line 341:
 
         #if: {{{IncludedWorkTitle|}}}
 
         #if: {{{IncludedWorkTitle|}}}
 
         |
 
         |
         |{{{Sep|,}}}&#32;ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep|,}}}|.||.}}
+
         |{{{Sep|,}}}&#32;ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep}}}|.||.}}
 
       }}
 
       }}
 
   }}
 
   }}
Line 358: Line 351:
 
     |{{{Sep|,}}}&#32;{{{Other|}}}
 
     |{{{Sep|,}}}&#32;{{{Other|}}}
 
   }}{{
 
   }}{{
     #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}
+
     #if: {{{Surname1|{{{EditorSurname1|{{{IncludedWorkTitle|}}} }}} }}}
 
     |{{{Sep|,}}}&#32;}}{{
 
     |{{{Sep|,}}}&#32;}}{{
     #if: {{{Title|}}}{{{TransTitle|}}}
+
     #if: {{{Title|{{{TransTitle|}}} }}}
 
     |{{Citation/make link
 
     |{{Citation/make link
 
         | 1={{
 
         | 1={{
Line 369: 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 380: 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}}}
 
                    }}
 
                }}
 
 
               }}
 
               }}
 
             }}
 
             }}
Line 400: Line 382:
 
   }}
 
   }}
 
}}{{
 
}}{{
   #if: {{{language|}}}
+
   #if: {{{language|{{{format|}}} }}}|{{
  |&#32;(in {{{language}}})
+
    #if: {{{language|}}}
}}{{
+
    |&#32;(in {{{language}}})
  #if: {{{format|}}}
+
  }}{{
  |&#32;({{{format}}})
+
    #if: {{{format|}}}
 +
    |&#32;({{{format}}})
 +
  }}
 
}}{{
 
}}{{
 
   #if: {{{Periodical|}}}
 
   #if: {{{Periodical|}}}
 
   |{{
 
   |{{
       #if:{{{IncludedWorkTitle|}}}{{{Title|}}}{{{TransTitle|}}}
+
       #if:{{{Title|{{{IncludedWorkTitle|{{{TransTitle|}}} }}} }}}
 
       |{{{Sep|,}}}&#32;
 
       |{{{Sep|,}}}&#32;
 
     }}''<nowiki />{{{Periodical}}}<nowiki />''{{
 
     }}''<nowiki />{{{Periodical}}}<nowiki />''{{
Line 417: Line 401:
 
       |{{
 
       |{{
 
         #if: {{{Publisher|}}}
 
         #if: {{{Publisher|}}}
         |&#32;({{{PublicationPlace}}}<nowiki>: </nowiki>{{{Publisher}}})
+
         |&#32;({{{PublicationPlace}}}: {{{Publisher}}})
 
         |&#32;({{{PublicationPlace}}})
 
         |&#32;({{{PublicationPlace}}})
 
       }}
 
       }}
Line 426: Line 410:
 
     }}{{
 
     }}{{
 
       #if: {{{Volume|}}}
 
       #if: {{{Volume|}}}
       |{{#switch:{{{volume-bold|0}}}
+
       |&#32;{{#if:{{{Periodical|}}}|'''<nowiki />{{{Volume}}}'''|{{{Volume}}}}}{{
        | y|yes = &#32;<b>
+
        #if: {{{Issue|}}}
        | n|no  = {{{Sep|,}}}&#32;
+
        |&#32;({{{Issue}}})
        | #default = {{
+
      }}
          #switch: {{{Volume}}}
+
       |{{
          |I|II|III|IV|VI|VII|VIII|IX
+
        #if: {{{Issue|}}}
          |i|ii|iii|iv|v|vi|vii|viii|ix
+
        |&#32;({{{Issue}}})
          |A|B|C|D|E|F|G|H|J|K|L|M|
+
      }}
          |N|O|P|Q|R|S|T|U|V|W|Y|Z|# = &#32;<b>
 
          | #default = {{
 
            #switch: {{padleft:|1|{{{Volume}}} }}
 
            |1|2|3|4|5|6|7|8|9|X|x = &#32;<b>
 
            | #default = {{{Sep|,}}}&#32;
 
          }}<!--endswitch {padleft: {Volume} }-->
 
        }}<!--endswitch {Volume}-->
 
       }}<!--endsw {volume-bold}-->{{{Volume}}}</b>
 
    }}{{
 
      #if: {{{Issue|}}}
 
      |&#32;({{{Issue}}})
 
 
     }}{{
 
     }}{{
 
       #if: {{{At|}}}
 
       #if: {{{At|}}}
       |<nowiki>: </nowiki> {{{At}}}
+
       |<nowiki />: {{{At}}}
 
     }}
 
     }}
 
   |{{
 
   |{{
 
       <!--============ Anything else with a title, including books ============-->
 
       <!--============ Anything else with a title, including books ============-->
       #if: {{{Title|}}}{{{TransItalic|}}}
+
       #if: {{{Title|{{{TransItalic|}}} }}}
 
       |{{
 
       |{{
         #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
+
         #if: {{{Surname1|{{{EditorSurname1|{{{IncludedWorkTitle|<!--
 +
            -->{{{Periodical|}}} }}} }}} }}}
 
         |{{{Sep|,}}}
 
         |{{{Sep|,}}}
 
       }}&#32;{{Citation/make link
 
       }}&#32;{{Citation/make link
Line 463: Line 437:
 
                     #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 472: Line 442:
 
                   #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 483: Line 449:
 
       }}
 
       }}
 
     }}{{
 
     }}{{
       #if: {{{TitleType|}}}
+
       #if: {{{Volume|{{{TitleType|{{{Series|{{{Other|{{{Edition|<!--
      |&#32;({{{TitleType}}})
+
      -->}}} }}} }}} }}} }}}
    }}{{
+
      |{{
      #if: {{{Series|}}}
+
        #if: {{{TitleType|}}}
      |{{{Sep|,}}}&#32;{{{Series}}}
+
        |&#32;({{{TitleType}}})
    }}{{
+
      }}{{
      #if: {{{Volume|}}}
+
        #if: {{{Series|}}}
      |{{#switch:{{{volume-bold|0}}}
+
         |{{{Sep|,}}}&#32;{{{Series}}}
         | y|yes = &#32;<b>
+
      }}{{
        | n|no  = {{{Sep|,}}}&#32;
+
        #if: {{{Volume|}}}
        | #default = {{
+
        |{{{Sep|,}}}&#32;'''<nowiki />{{{Volume}}}<nowiki />'''
          #switch: {{{Volume}}}
+
      }}{{
          |I|II|III|IV|VI|VII|VIII|IX
+
        #if: {{{Other|}}}
          |i|ii|iii|iv|v|vi|vii|viii|ix
+
        |{{{Sep|,}}}&#32;{{{Other|}}}
          |A|B|C|D|E|F|G|H|J|K|L|M|
+
      }}{{
          |N|O|P|Q|R|S|T|U|V|W|Y|Z|# = &#32;<b>
+
        #if: {{{Edition|}}}
          | #default = {{
+
        |&#32;({{{Edition}}} ed.)
            #switch: {{padleft:|1|{{{Volume}}} }}
+
      }}
            |1|2|3|4|5|6|7|8|9|X|x = &#32;<b>
+
     }}<!--endif {Volume|TitleType|Series|Other|Edition}
            | #default = {{{Sep|,}}}&#32;
+
-->{{
          }}<!--endswitch {padleft: {Volume} }-->
 
        }}<!--endswitch {Volume}-->
 
      }}<!--endsw {volume-bold}-->{{{Volume}}}</b>
 
    }}{{
 
      #if: {{{Other|}}}
 
      |{{{Sep|,}}}&#32;{{{Other|}}}
 
    }}{{
 
      #if: {{{Edition|}}}
 
      |&#32;({{{Edition}}} ed.)
 
     }}{{
 
 
       #if: {{{PublicationPlace|}}}
 
       #if: {{{PublicationPlace|}}}
 
       |{{{Sep|,}}}&#32;{{{PublicationPlace}}}
 
       |{{{Sep|,}}}&#32;{{{PublicationPlace}}}
Line 519: Line 475:
 
       |{{
 
       |{{
 
         #if: {{{PublicationPlace|}}}
 
         #if: {{{PublicationPlace|}}}
         |<nowiki>:</nowiki>
+
         |<nowiki />: {{{Publisher}}}
         |{{{Sep|,}}}
+
         |{{{Sep|,}}} {{{Publisher}}}
      }}&#32;{{{Publisher}}}
+
      }}
 
     }}
 
     }}
 
}}{{
 
}}{{
 
<!--============ Date (if no author/editor) ============-->
 
<!--============ Date (if no author/editor) ============-->
   #if: {{{Surname1|}}}{{{EditorSurname1|}}}
+
   #if: {{{Surname1|{{{EditorSurname1|}}} }}}
 
   |
 
   |
 
   |{{
 
   |{{
Line 563: Line 519:
 
   }}
 
   }}
 
}}{{
 
}}{{
<!--===============DOI================-->
+
  #if: {{{ARXIV|{{{ASIN|{{{BIBCODE|{{{DOI|}}} }}} }}} }}}
#if:{{{DOI|}}}
+
|{{
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=doi |input1={{{DOI|}}} |input2={{{DoiBroken|}}} }}
+
<!--============ arXiv ==============-->
 +
  #if: {{{ARXIV|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=arxiv |input1={{{ARXIV|}}} }}
 +
}}{{
 +
<!--============ ASIN ===============-->
 +
  #if: {{{ASIN|}}}
 +
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=asin |input1={{{ASIN|}}} |input2={{{ASIN-TLD|}}} }}
 
}}{{
 
}}{{
<!--============ Misc. Identifier ============-->
+
<!--============ BIBCODE ============-->
   #if: {{{ID|}}}
+
   #if: {{{BIBCODE|}}}
   |{{
+
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=bibcode |input1={{{BIBCODE|}}} }}
    #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}{{{Title|}}}{{{TransItalic|}}}
 
    |{{{Sep|,}}}&#32;{{{ID}}}
 
    |{{{ID}}}
 
  }}
 
 
}}{{
 
}}{{
<!--============  ISBN ============-->
+
<!--============ DOI ================-->
 +
#if:{{{DOI|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier |identifier=doi |input1={{{DOI|}}}  |input2={{{DoiBroken|}}} |input3={{{template doc demo|}}}}}
 +
  }}
 +
}}<!--endif {ARXIV|ASIN|BIBCODE|DOI}-->{{
 +
<!--============ ISBN ===============-->
 
   #if: {{{ISBN|}}}
 
   #if: {{{ISBN|}}}
 
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=isbn |input1={{{ISBN|}}} }}
 
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=isbn |input1={{{ISBN|}}} }}
 
}}{{
 
}}{{
<!--============ ISSN ============-->
+
<!--============ ISSN ===============-->
 
   #if: {{{ISSN|}}}
 
   #if: {{{ISSN|}}}
 
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=issn |input1={{{ISSN|}}} }}
 
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=issn |input1={{{ISSN|}}} }}
 
}}{{
 
}}{{
<!--============  OCLC ============-->
+
  #if:{{{JSTOR|{{{JFM|{{{LCCN|{{{MR|{{{OCLC|{{{OL|{{{OSTI|<!--
 +
    -->{{{PMC|{{{PMID|{{{RFC|{{{SSRN|{{{ZBL|{{{ID|<!--
 +
    -->}}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}}
 +
|{{
 +
<!--============ JFM ================-->
 +
  #if: {{{JFM|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier |identifier=jfm |input1={{{JFM|}}} }}
 +
}}{{
 +
<!--============ 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|,}}}&#32;{{citation/identifier  |identifier=oclc |input1={{{OCLC|}}} }}
 
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=oclc |input1={{{OCLC|}}} }}
 
}}{{
 
}}{{
<!--============  PMID ============-->
+
<!--============ OL =================-->
 +
  #if: {{{OL|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier |identifier=ol |input1={{{OL|}}} }}
 +
}}{{
 +
<!--============ OSTI ===============-->
 +
  #if: {{{OSTI|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=osti |input1={{{OSTI|}}} }}
 +
}}{{
 +
<!--============ PMC ================-->
 +
  #if: {{{PMC|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=pmc |input1={{{PMC|}}} }}
 +
}}{{
 +
<!--============ PMID ===============-->
 
   #if: {{{PMID|}}}
 
   #if: {{{PMID|}}}
 
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=pmid |input1={{{PMID|}}} }}
 
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=pmid |input1={{{PMID|}}} }}
 
}}{{
 
}}{{
<!--============ PMC ============-->
+
<!--============ RFC ================-->
   #if: {{{PMC|}}}
+
   #if: {{{RFC|}}}
   |{{
+
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=rfc|input1={{{RFC|}}} }}
    #if: {{{URL|}}}
+
}}{{
    |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=pmc |input1={{{PMC|}}} }}
+
<!--============ SSRN ================-->
    |{{only in  print|{{{Sep|,}}}&#32;{{citation/identifier  |identifier=pmc |input1={{{PMC|}}} }} }}<!--Should  only display by default in print-->
+
  #if: {{{SSRN|}}}
  }}
+
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=ssrn |input1={{{SSRN|}}} }}
 
}}{{
 
}}{{
<!--============ BIBCODE ============-->
+
<!--============ ZBL ================-->
   #if: {{{Bibcode|}}}
+
   #if: {{{ZBL|}}}
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=bibcode |input1={{{Bibcode|}}} }}
+
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=zbl |input1={{{ZBL|}}} }}
 
}}{{
 
}}{{
 +
<!--============  Misc. Identifier ============-->
 +
  #if: {{{ID|}}}
 +
  |{{{Sep|,}}}&#32;{{{ID}}}
 +
  }}
 +
}}<!--endif {JSTOR|JFM|LCCN|...PMID..|SSRN|ZBL|ID}-->{{
 
<!--============  Archive data, etc ===========-->
 
<!--============  Archive data, etc ===========-->
 
#if: {{{Archive|}}}
 
#if: {{{Archive|}}}
 
|{{{Sep|,}}}&#32;{{{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|,}}}&#32;{{#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|nocat={{{template doc demo|}}}
+
     }}{{#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|,}}}&#32;{{
 
     |<span class="printonly">{{{Sep|,}}}&#32;{{
 
                                       #if: {{{IncludedWorkURL|}}}
 
                                       #if: {{{IncludedWorkURL|}}}
Line 637: Line 639:
 
   }}{{
 
   }}{{
 
     #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|}}}
Line 660: Line 662:
 
       }}
 
       }}
 
     }}{{
 
     }}{{
    #if: {{{Surname1|}}} |&rft.aulast={{urlencode:{{{Surname1}}}}}{{
+
      #if: {{{Surname1|}}} |&rft.aulast={{urlencode:{{{Surname1}}}}}<!--
      #if: {{{Given1|}}} |&rft.aufirst={{urlencode:{{{Given1}}}}}
+
                        -->&rft.au={{urlencode:{{{Surname1}}}}}<!--
    }}
+
      -->{{
  }}{{
+
        #if: {{{Given1|}}} |&rft.aufirst={{urlencode:{{{Given1}}}}}<!--
    #if: {{{Surname1|}}} |&rft.au={{urlencode:{{{Surname1}}}}}{{
+
                        -->{{urlencode:{{{NameSep|,&#32;}}}{{{Given1}}}}}
      #if: {{{Given1|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given1}}}}}
+
      }}<!--endif {Given1}-->
    }}
+
    }}{{
  }}{{
+
    #if: {{{Surname2|}}}
    #if: {{{Surname2|}}} |&rft.au={{urlencode:{{{Surname2}}}}}{{
+
    |<!--
      #if: {{{Given2|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given2}}}}}
+
                        -->&rft.au={{urlencode:{{{Surname2}}}}}{{
    }}
+
      #if: {{{Given2|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given2}}}}}
  }}{{
+
    }}{{
    #if: {{{Surname3|}}} |&rft.au={{urlencode:{{{Surname3}}}}}{{
+
      #if: {{{Surname3|}}} |&rft.au={{urlencode:{{{Surname3}}}}}{{
      #if: {{{Given3|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given3}}}}}
+
        #if: {{{Given3|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given3}}}}}
    }}
+
      }}
  }}{{
+
    }}{{
    #if: {{{Surname4|}}} |&rft.au={{urlencode:{{{Surname4}}}}}{{
+
      #if: {{{Surname4|}}} |&rft.au={{urlencode:{{{Surname4}}}}}{{
      #if: {{{Given4|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given4}}}}}
+
        #if: {{{Given4|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given4}}}}}
    }}
+
      }}
  }}{{
+
    }}{{
    #if: {{{Surname5|}}} |&rft.au={{urlencode:{{{Surname5}}}}}{{
+
      #if: {{{Surname5|}}} |&rft.au={{urlencode:{{{Surname5}}}}}{{
      #if: {{{Given5|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given5}}}}}
+
        #if: {{{Given5|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given5}}}}}
    }}
+
      }}
  }}{{
+
    }}{{
    #if: {{{Surname6|}}} |&rft.au={{urlencode:{{{Surname6}}}}}{{
+
      #if: {{{Surname6|}}} |&rft.au={{urlencode:{{{Surname6}}}}}{{
      #if: {{{Given6|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given6}}}}}
+
        #if: {{{Given6|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given6}}}}}
    }}
+
      }}
  }}{{
+
    }}{{
    #if: {{{Surname7|}}} |&rft.au={{urlencode:{{{Surname7}}}}}{{
+
      #if: {{{Surname7|}}} |&rft.au={{urlencode:{{{Surname7}}}}}{{
      #if: {{{Given7|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given7}}}}}
+
        #if: {{{Given7|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given7}}}}}
    }}
+
      }}
  }}{{
+
    }}{{
    #if: {{{Surname8|}}} |&rft.au={{urlencode:{{{Surname8}}}}}{{
+
      #if: {{{Surname8|}}} |&rft.au={{urlencode:{{{Surname8}}}}}{{
      #if: {{{Given8|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given8}}}}}
+
        #if: {{{Given8|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given8}}}}}
    }}
+
      }}
  }}{{
 
    #if: {{{Surname9|}}} |&rft.au={{urlencode:{{{Surname9}}}}}{{
 
      #if: {{{Given9|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given9}}}}}
 
    }}
 
 
     }}{{
 
     }}{{
 +
      #if: {{{Surname9|}}} |&rft.au={{urlencode:{{{Surname9}}}}}{{
 +
        #if: {{{Given9|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given9}}}}}
 +
      }}
 +
    }}<!--endif {Surname9}-->
 +
    |<!--else no Surname2-->
 +
  }}<!--endif-else {Surname2}-->{{
 
       #if: {{{Date|}}} |&rft.date={{urlencode:{{{Date}}}}}
 
       #if: {{{Date|}}} |&rft.date={{urlencode:{{{Date}}}}}
 
     }}{{
 
     }}{{
       #if: {{{Series|}}} |&rft.series={{urlencode:{{{Series}}}}}
+
       #if: {{{At|}}} |&rft.pages={{urlencode:{{{At}}}}}
 +
    }}{{
 +
      #if: {{{PublicationPlace|}}}{{{Place|}}} |&rft.place={{urlencode:{{{PublicationPlace|{{{Place}}}}}}}}
 +
    }}{{
 +
      #if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}}
 
     }}{{
 
     }}{{
 +
    #if:{{{Volume|{{{Series|{{{Issue|{{{Edition|{{{ARXIV|<!--
 +
    -->{{{ASIN|{{{BIBCODE|{{{DOI|<!--
 +
    -->}}} }}} }}} }}} }}} }}} }}} }}}
 +
    |{{
 
       #if: {{{Volume|}}} |&rft.volume={{urlencode:{{{Volume}}}}}
 
       #if: {{{Volume|}}} |&rft.volume={{urlencode:{{{Volume}}}}}
 +
    }}{{
 +
      #if: {{{Series|}}} |&rft.series={{urlencode:{{{Series}}}}}
 
     }}{{
 
     }}{{
 
       #if: {{{Issue|}}} |&rft.issue={{urlencode:{{{Issue}}}}}
 
       #if: {{{Issue|}}} |&rft.issue={{urlencode:{{{Issue}}}}}
 
     }}{{
 
     }}{{
       #if: {{{At|}}} |&rft.pages={{urlencode:{{{At}}}}}
+
       #if: {{{Edition|}}} |&rft.edition={{urlencode:{{{Edition}}}}}
 
     }}{{
 
     }}{{
       #if: {{{Edition|}}} |&rft.edition={{urlencode:{{{Edition}}}}}
+
       #if: {{{ARXIV|}}} |&rft_id=info:arxiv/{{urlencode:{{{ARXIV}}}}}
 
     }}{{
 
     }}{{
       #if: {{{PublicationPlace|}}}{{{Place|}}} |&rft.place={{urlencode:{{{PublicationPlace|{{{Place}}}}}}}}
+
       #if: {{{ASIN|}}} |&rft_id=info:asin/{{urlencode:{{{ASIN}}}}}
 
     }}{{
 
     }}{{
       #if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}}
+
       #if: {{{BIBCODE|}}} |&rft_id=info:bibcode/{{urlencode:{{{BIBCODE}}}}}
 
     }}{{
 
     }}{{
 
       #if: {{{DOI|}}} |&rft_id=info:doi/{{urlencode:{{{DOI}}}}}
 
       #if: {{{DOI|}}} |&rft_id=info:doi/{{urlencode:{{{DOI}}}}}
 +
    }}
 +
    }}<!--endif {Volume|Series|...DOI}-->{{
 +
      #if: {{{ISBN|}}} |&rft.isbn={{urlencode:{{{ISBN}}}}}
 +
    }}{{
 +
      #if: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}}
 
     }}{{
 
     }}{{
       #if: {{{PMID|}}} |&rft_id=info:pmid/{{urlencode:{{{PMID}}}}}
+
    #if:{{{JSTOR|{{{JFM|{{{LCCN|{{{MR|{{{OCLC|{{{OL|{{{OSTI|<!--
 +
        -->{{{PMC|{{{PMID|{{{RFC|{{{SSRN|{{{ZBL|<!--
 +
        -->}}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}}
 +
    |{{
 +
       #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: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}}
+
       #if: {{{SSRN|}}} |&rft_id=info:ssrn/{{urlencode:{{{SSRN}}}}}
 
     }}{{
 
     }}{{
 +
      #if: {{{ZBL|}}} |&rft_id=info:zbl/{{urlencode:{{{ZBL}}}}}
 +
    }}
 +
    }}<!--endif {JSTOR|JFM|LCCN|...PMID..|SSRN|ZBL|ID}-->{{
 
       #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>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 19:44, 12 August 2012

 

Usage

See also