Jump to content

Template:Citation/core: Difference between revisions

From IdeaWazaWiki
wikademia>Salix alba
Update to sandbox version
wikademia>Elonka
Updating from sandbox, per talkpage request
Line 22: Line 22:
   }}{{
   }}{{
     #if: {{{Surname2|}}}
     #if: {{{Surname2|}}}
     |<nowiki>; </nowiki>{{
     |{{
        #if: {{{Surname3|}}}
        |<nowiki>; </nowiki>
        |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
      }}{{
         #if: {{{Authorlink2|}}}
         #if: {{{Authorlink2|}}}
         |[[{{{Authorlink2}}} |{{{Surname2}}}{{
         |[[{{{Authorlink2}}} |{{{Surname2}}}{{
Line 34: Line 38:
       }}{{
       }}{{
         #if: {{{Surname3|}}}
         #if: {{{Surname3|}}}
         |<nowiki>; </nowiki>{{
         |{{
          #if: {{{Surname4|}}}
          |<nowiki>; </nowiki>
          |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
        }}{{
           #if: {{{Authorlink3|}}}
           #if: {{{Authorlink3|}}}
           |[[{{{Authorlink3}}} |{{{Surname3}}}{{
           |[[{{{Authorlink3}}} |{{{Surname3}}}{{
Line 46: Line 54:
         }}{{
         }}{{
           #if:{{{Surname4|}}}
           #if:{{{Surname4|}}}
           |<nowiki>; </nowiki>{{
           |{{
              #if: {{{Surname5|}}}
              |<nowiki>; </nowiki>
              |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
            }}{{
               #if: {{{Authorlink4|}}}
               #if: {{{Authorlink4|}}}
               |[[{{{Authorlink4}}} |{{{Surname4}}}{{
               |[[{{{Authorlink4}}} |{{{Surname4}}}{{
Line 58: Line 70:
             }}{{
             }}{{
               #if:{{{Surname5|}}}
               #if:{{{Surname5|}}}
               |<nowiki>; </nowiki>{{
               |{{
                #if: {{{Surname6|}}}
                |<nowiki>; </nowiki>
                |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
              }}{{
                 #if: {{{Authorlink5|}}}
                 #if: {{{Authorlink5|}}}
                 |[[{{{Authorlink5}}} |{{{Surname5}}}{{
                 |[[{{{Authorlink5}}} |{{{Surname5}}}{{
Line 70: Line 86:
               }}{{
               }}{{
                 #if:{{{Surname6|}}}
                 #if:{{{Surname6|}}}
                 |<nowiki>; </nowiki>{{
                 |{{
                    #if: {{{Surname7|}}}
                    |<nowiki>; </nowiki>
                    |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
                  }}{{
                     #if: {{{Authorlink6|}}}
                     #if: {{{Authorlink6|}}}
                     |[[{{{Authorlink6}}} |{{{Surname6}}}{{
                     |[[{{{Authorlink6}}} |{{{Surname6}}}{{
Line 82: Line 102:
                   }}{{
                   }}{{
                     #if:{{{Surname7|}}}
                     #if:{{{Surname7|}}}
                     |<nowiki>; </nowiki>{{
                     |{{
                      #if: {{{Surname8|}}}
                      |<nowiki>; </nowiki>
                      |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
                    }}{{
                       #if: {{{Authorlink7|}}}
                       #if: {{{Authorlink7|}}}
                       |[[{{{Authorlink7}}} |{{{Surname7}}}{{
                       |[[{{{Authorlink7}}} |{{{Surname7}}}{{
Line 94: Line 118:
                     }}{{
                     }}{{
                       #if:{{{Surname8|}}}
                       #if:{{{Surname8|}}}
                       |<nowiki>; </nowiki>{{
                       |{{
                          #if: {{{Surname9|}}}
                          |<nowiki>; </nowiki>
                          |{{#if:{{{amp|}}}|&#32;&amp;&#32;|<nowiki>; </nowiki>}}
                        }}{{
                           #if: {{{Authorlink8|}}}
                           #if: {{{Authorlink8|}}}
                           |[[{{{Authorlink8}}} |{{{Surname8}}}{{
                           |[[{{{Authorlink8}}} |{{{Surname8}}}{{
Line 106: Line 134:
                         }}{{
                         }}{{
                           #if:{{{Surname9|}}}
                           #if:{{{Surname9|}}}
                           |<nowiki>; </nowiki>&#32;et al.
                           |<nowiki>; </nowiki>&#32;''et al''.
                         }}
                         }}
                     }}
                     }}
Line 180: Line 208:
               |{{
               |{{
                 #if: {{{PMC|}}}
                 #if: {{{PMC|}}}
                 |http://www.pubmedcentral.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                 |http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
               }}
               }}
             }}  
             }}  
Line 263: Line 291:
   |{{
   |{{
     #if: {{{Surname1|}}}{{{EditorSurname1|}}}
     #if: {{{Surname1|}}}{{{EditorSurname1|}}}
     |,&#32;
     |{{{Sep|,}}}&#32;
   }}{{
   }}{{
     #if: {{{Title|}}}
     #if: {{{Title|}}}
Line 276: Line 304:
                     |{{  
                     |{{  
                       #if: {{{PMC|}}}  
                       #if: {{{PMC|}}}  
                       |  http://www.pubmedcentral.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                       |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                     }}  
                     }}  
                   }}
                   }}
Line 285: Line 313:
                 | {{  
                 | {{  
                       #if: {{{PMC|}}}  
                       #if: {{{PMC|}}}  
                       |  http://www.pubmedcentral.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                       |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                     }}  
                     }}  
                    
                    
Line 296: Line 324:
   }}{{#if:{{{format|}}}
   }}{{#if:{{{format|}}}
     |&#32;({{{format}}})
     |&#32;({{{format}}})
   }},&#32;
   }}{{{Sep|,}}}&#32;
   }}''{{{Periodical}}}''{{
   }}''{{{Periodical}}}''{{
     #if: {{{Series|}}}
     #if: {{{Series|}}}
Line 315: Line 343:
     |&#32;'''{{{Volume}}}'''{{
     |&#32;'''{{{Volume}}}'''{{
         #if: {{{Issue|}}}
         #if: {{{Issue|}}}
         |({{{Issue}}})
         |&#32;({{{Issue}}})
       }}
       }}
     |{{
     |{{
Line 330: Line 358:
     |{{
     |{{
         #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
         #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
         |,&#32;
         |{{{Sep|,}}}&#32;
       }}''{{Link
       }}''{{Link
         | 1={{
         | 1={{
Line 341: Line 369:
                     |{{  
                     |{{  
                       #if: {{{PMC|}}}  
                       #if: {{{PMC|}}}  
                       |  http://www.pubmedcentral.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                       |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
                     }}  
                     }}  
                   }}
                   }}
Line 350: Line 378:
                 |{{  
                 |{{  
                     #if: {{{PMC|}}}  
                     #if: {{{PMC|}}}  
                     |  http://www.pubmedcentral.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}       
                     |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}       
                   }}
                   }}
               }}
               }}
Line 414: Line 442:
}}{{
}}{{
<!--===============DOI================-->
<!--===============DOI================-->
#if:{{{doi|}}}  
#if:{{{DOI|}}}  
   |{{{Sep|,}}} [[Digital object identifier|doi]]:{{#if: {{{doi_brokendate|}}}  
   |{{{Sep|,}}} [[Digital object identifier|doi]]:{{#if: {{{DoiBroken|}}}  
     | {{#tag:nowiki|{{{doi}}}}} (inactive [[{{{doi_brokendate|}}}]]) {{#ifeq: {{NAMESPACE}} | {{ns:0}} | [[Category:Pages with DOIs broken since {{#time: Y | {{{doi_brokendate|}}} }}]] }}
     | {{#tag:nowiki|{{{DOI}}}}} (inactive {{date|{{{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>
     | <span class="neverexpand">[http://dx.doi.org/{{urlencode:{{{DOI}}}}} {{#tag:nowiki|{{{DOI}}}}}]</span>
     }}
     }}
}}{{
}}{{
Line 439: Line 467:
   #if: {{{PMID|}}}  
   #if: {{{PMID|}}}  
   |{{{Sep|,}}} PMID {{{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 ============-->  
<!--============ BIBCODE ============-->  
Line 444: Line 478:
   |{{{Sep|,}}} [[Bibcode]]:&nbsp;[http://adsabs.harvard.edu/abs/{{{Bibcode}}} {{{Bibcode}}}]
   |{{{Sep|,}}} [[Bibcode]]:&nbsp;[http://adsabs.harvard.edu/abs/{{{Bibcode}}} {{{Bibcode}}}]
}}{{  
}}{{  
<!--============ DOI ============-->
  #if: {{{DOI|}}}
  |{{
    #if: {{{URL|}}}{{{IncludedWorkURL|}}}
    |{{{Sep|,}}} {{doi| {{{DOI}}} }}
    |<span class="printonly">, doi {{{DOI}}}</span>
  }}
}}{{
<!--============ URL and AccessDate ============-->
<!--============ URL and AccessDate ============-->
   #if: {{{URL|}}}
   #if: {{{URL|}}}
Line 468: Line 494:
   }}{{
   }}{{
     #if: {{{AccessDate|}}}
     #if: {{{AccessDate|}}}
     | <span class="reference-accessdate">.&#32;Retrieved on {{date|{{{AccessDate}}}}}</span>
     | <span class="reference-accessdate">{{#ifeq:{{{Sep|,}}}|,|,&#32;r|.&#32;R}}etrieved on {{date|{{{AccessDate}}}}}</span>
     }}
     }}
}}{{#if:{{{laysummary|}}}  
}}{{#if:{{{laysummary|}}}  
Line 478: Line 504:
}}{{{PS|}}}</cite><!--
}}{{{PS|}}}</cite><!--


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


--><span
--><span
Line 547: Line 573:
       #if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}}
       #if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}}
     }}{{
     }}{{
       #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: {{{PMID|}}} |&rft_id=info:pmid/{{urlencode:{{{PMID}}}}}

Revision as of 01:51, 7 November 2008