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

From blackwiki
Jump to navigation Jump to search
imported>Wikid77
(created, as sandbox template, for a smaller variation of large Template:Citation/core, to use fewer formatting resources in a big article which cannot fit the large template.)
 
imported>Wikid77
(expanded with all parameters except extra authors as Surname3-9 & extra EditorSurname2-4)
Line 6: Line 6:
 
   |harv = {{#if:{{{Surname1|}}}{{{EditorSurname1|}}}
 
   |harv = {{#if:{{{Surname1|}}}{{{EditorSurname1|}}}
 
     |id="CITEREF{{anchorencode:{{#if:{{{Surname1|}}}
 
     |id="CITEREF{{anchorencode:{{#if:{{{Surname1|}}}
       |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}
+
       |{{{Surname1}}}{{{Surname2|}}}
       |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}}
+
       |{{{EditorSurname1|}}}
 
     }}{{{Year|{{{Date|}}}}}}}}"
 
     }}{{{Year|{{{Date|}}}}}}}}"
 
   }}
 
   }}
Line 32: Line 32:
 
       }}
 
       }}
 
   }}
 
   }}
}}</span><noinclude>
+
}}{{
 +
    #if: {{{Surname2|}}}
 +
    |{{#ifexpr:{{{Trunc|8}}}<2
 +
      |&#32;''et al''.
 +
      |{{
 +
          #iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }}
 +
          |&#32;<!-- then punctuation should be included in AuthorMask -->
 +
          |{{
 +
            #if: {{{Surname3|}}}
 +
            |{{{AuthorSep|&#059;&#32;}}}
 +
            |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
 +
          }}
 +
        }}{{
 +
          #if: {{{Authorlink2|}}}
 +
          |[[{{{Authorlink2}}} |{{{Surname2}}}{{
 +
            #if: {{{Given2|}}}
 +
            |{{{NameSep|,&#32;}}}{{{Given2}}}
 +
          }}]]
 +
          |{{{Surname2}}}{{
 +
            #if: {{{Given2|}}}
 +
            |{{{NameSep|,&#32;}}}{{{Given2}}}
 +
          }}
 +
        }}
 +
    }}
 +
}}{{
 +
<!--============  Title of included work  ============-->
 +
  #if: {{{IncludedWorkTitle|}}}{{#if:{{{Periodical|}}}||{{#if:{{{TransItalic|}}}||{{{TransTitle|}}}}}}}
 +
  |{{
 +
    #if:{{{Surname1|}}}{{{EditorSurname1|}}}
 +
    |{{{Sep|,}}}&#32;
 +
  }}{{Citation/make link
 +
    | 1={{
 +
          #if: {{{IncludedWorkURL|}}}
 +
          |{{{IncludedWorkURL}}}
 +
          |{{
 +
              #if: {{{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={{
 +
          #if: {{{Periodical|}}}
 +
          |''<nowiki />{{{IncludedWorkTitle}}}<nowiki />''
 +
          |"{{{IncludedWorkTitle|}}}{{
 +
            #if: {{{TransTitle|}}}
 +
            |{{
 +
                #if: {{{IncludedWorkTitle|}}}
 +
                |&#32;
 +
              }}&#91;{{{TransTitle}}}&#93;
 +
          }}"
 +
        }}
 +
  }}
 +
}}{{
 +
<!--============  Place (if different than PublicationPlace) ============-->
 +
  #if: {{{Place|}}}
 +
  |{{
 +
    #ifeq: {{{Place|}}} | {{{PublicationPlace|}}}
 +
    |
 +
    |{{
 +
        #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}
 +
        |{{{Sep|,}}}&#32;written at {{{Place}}}
 +
      }}
 +
  }}
 +
}}{{
 +
<!--============  Editor of compilation  ============-->
 +
  #if: {{{EditorSurname1|}}}
 +
  |{{
 +
    #if: {{{Surname1|}}}
 +
    |{{{Sep|,}}}&#32;{{
 +
        #if: {{{IncludedWorkTitle|}}}
 +
        |{{#ifeq:{{{Sep|,}}}|.|I|i}}n&#32;
 +
      }}{{
 +
        #if: {{{Editorlink1|}}}
 +
        |[[{{{Editorlink1}}} |{{{EditorSurname1}}}{{
 +
          #if: {{{EditorGiven1|}}}
 +
          |, {{{EditorGiven1}}}
 +
        }}]]
 +
        |{{{EditorSurname1}}}{{
 +
          #if: {{{EditorGiven1|}}}
 +
          |, {{{EditorGiven1}}}
 +
        }}
 +
      }}{{
 +
        #if: {{{IncludedWorkTitle|}}}
 +
        |
 +
        |{{{Sep|,}}}&#32;ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep|,}}}|.||.}}
 +
      }}
 +
  }}
 +
}}{{
 +
  <!--============  Periodicals  ============-->
 +
  #if: {{{Periodical|}}}
 +
  |{{
 +
    #if: {{{Other|}}}
 +
    |{{{Sep|,}}}&#32;{{{Other|}}}
 +
  }}{{
 +
    #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}
 +
    |{{{Sep|,}}}&#32;}}{{
 +
    #if: {{{Title|}}}{{{TransTitle|}}}
 +
    |{{Citation/make link
 +
        | 1={{
 +
              #if: {{{IncludedWorkTitle|}}}
 +
              |{{
 +
                #if: {{{IncludedWorkURL|}}}
 +
                |{{
 +
                    #if: {{{URL|}}}
 +
                    |{{{URL}}}
 +
                    |{{
 +
                      #ifexpr: {{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }} | {{
 +
                        #if: {{{PMC|}}}
 +
                        |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
 +
                      }}
 +
                    }}
 +
                  }}
 +
              }}
 +
              |{{
 +
                #if: {{{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}}}{{
 +
          #if: {{{TransTitle|}}}
 +
          |{{
 +
            #if: {{{Title|}}}
 +
            |&#32;
 +
          }}&#91;{{{TransTitle}}}&#93;
 +
        }}"
 +
      }}{{
 +
        #if: {{{TitleNote|}}}
 +
        |{{{Sep|,}}}&#32;{{{TitleNote}}}
 +
      }}
 +
  }}
 +
}}{{
 +
  #if: {{{language|}}}
 +
  |&#32;(in {{{language}}})
 +
}}{{
 +
  #if: {{{format|}}}
 +
  |&#32;({{{format}}})
 +
}}{{
 +
  #if: {{{Periodical|}}}
 +
  |{{
 +
      #if:{{{IncludedWorkTitle|}}}{{{Title|}}}{{{TransTitle|}}}
 +
      |{{{Sep|,}}}&#32;
 +
    }}''<nowiki />{{{Periodical}}}<nowiki />''{{
 +
      #if: {{{Series|}}}
 +
      |{{{Sep|,}}}&#32;{{{Series}}}
 +
    }}{{
 +
      #if: {{{PublicationPlace|}}}
 +
      |{{
 +
        #if: {{{Publisher|}}}
 +
        |&#32;({{{PublicationPlace}}}<nowiki>: </nowiki>{{{Publisher}}})
 +
        |&#32;({{{PublicationPlace}}})
 +
      }}
 +
      |{{
 +
        #if: {{{Publisher|}}}
 +
        |&#32;({{{Publisher}}})
 +
      }}
 +
    }}{{
 +
      #if: {{{Volume|}}}
 +
      |&#32;'''<nowiki />{{{Volume}}}<nowiki />'''{{
 +
        #if: {{{Issue|}}}
 +
        |&#32;({{{Issue}}})
 +
      }}
 +
      |{{
 +
        #if: {{{Issue|}}}
 +
        |&#32;({{{Issue}}})
 +
      }}
 +
    }}{{
 +
      #if: {{{At|}}}
 +
      |<nowiki>: </nowiki> {{{At}}}
 +
    }}
 +
  |{{
 +
      <!--============ Anything else with a title, including books ============-->
 +
      #if: {{{Title|}}}{{{TransItalic|}}}
 +
      |{{
 +
        #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
 +
        |{{{Sep|,}}}
 +
      }}&#32;{{Citation/make link
 +
        | 1={{
 +
              #if: {{{IncludedWorkTitle|}}}
 +
              |{{
 +
                  #if: {{{IncludedWorkURL|}}}
 +
                  |{{
 +
                    #if: {{{URL|}}}
 +
                    |{{{URL}}}
 +
                    |{{#ifexpr:{{#time: U}} > {{#time: U | {{{Embargo|2001-10-10}}} }}|{{
 +
                        #if: {{{PMC|}}}
 +
                        |  http://www.pubmedcentral.nih.gov/articlerender.fcgi?tool=pmcentrez&artid={{{PMC}}}
 +
                      }}}}
 +
                  }}
 +
                }}
 +
              |{{
 +
                  #if: {{{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|}}}{{
 +
            #if:{{{TransItalic|}}}|&#32;&#91;{{{TransItalic}}}&#93;
 +
          }}<nowiki />''
 +
      }}
 +
    }}{{
 +
      #if: {{{TitleType|}}}
 +
      |&#32;({{{TitleType}}})
 +
    }}{{
 +
      #if: {{{Series|}}}
 +
      |{{{Sep|,}}}&#32;{{{Series}}}
 +
    }}{{
 +
      #if: {{{Volume|}}}
 +
      |{{{Sep|,}}}&#32;'''<nowiki />{{{Volume}}}<nowiki />'''
 +
    }}{{
 +
      #if: {{{Other|}}}
 +
      |{{{Sep|,}}}&#32;{{{Other|}}}
 +
    }}{{
 +
      #if: {{{Edition|}}}
 +
      |&#32;({{{Edition}}} ed.)
 +
    }}{{
 +
      #if: {{{PublicationPlace|}}}
 +
      |{{{Sep|,}}}&#32;{{{PublicationPlace}}}
 +
    }}{{
 +
      #if: {{{Publisher|}}}
 +
      |{{
 +
        #if: {{{PublicationPlace|}}}
 +
        |<nowiki>:</nowiki>
 +
        |{{{Sep|,}}}
 +
      }}&#32;{{{Publisher}}}
 +
    }}
 +
}}{{
 +
<!--============ Date (if no author/editor) ============-->
 +
  #if: {{{Surname1|}}}{{{EditorSurname1|}}}
 +
  |
 +
  |{{
 +
    #if: {{{Date|}}}
 +
    |{{{Sep|,}}}&#32;{{{Date}}}{{
 +
      #if:{{{YearNote|}}}
 +
    |&#32;[{{{YearNote}}}]
 +
    }}
 +
  }}
 +
}}{{
 +
<!--============ Publication date ============-->
 +
  #if: {{{PublicationDate|}}}
 +
  |{{
 +
    #ifeq: {{{PublicationDate|}}} | {{{Date|}}}
 +
    |
 +
    |{{
 +
        #if: {{{EditorSurname1|}}}
 +
        |{{
 +
          #if: {{{Surname1|}}}
 +
          |{{{Sep|,}}}&#32;{{{PublicationDate}}}
 +
          |&#32;(published {{{PublicationDate}}})
 +
        }}
 +
        |{{
 +
          #if: {{{Periodical|}}}
 +
          |{{{Sep|,}}}&#32;{{{PublicationDate}}}
 +
          |&#32;(published {{{PublicationDate}}})
 +
        }}
 +
      }}
 +
  }}
 +
}}{{
 +
<!--============ Page within included work ============-->
 +
  #if: {{{Periodical|}}}
 +
  |
 +
  |{{
 +
    #if: {{{At|}}}
 +
    |{{{Sep|,}}}&#32;{{{At}}}
 +
  }}
 +
}}{{
 +
<!--===============DOI================-->
 +
#if:{{{DOI|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=doi |input1={{{DOI|}}}  |input2={{{DoiBroken|}}} }}
 +
}}{{
 +
<!--============  Misc. Identifier ============-->
 +
  #if: {{{ID|}}}
 +
  |{{
 +
    #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}{{{Title|}}}{{{TransItalic|}}}
 +
    |{{{Sep|,}}}&#32;{{{ID}}}
 +
    |{{{ID}}}
 +
  }}
 +
}}{{
 +
<!--============  ISBN ============-->
 +
  #if: {{{ISBN|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=isbn |input1={{{ISBN|}}} }}
 +
}}{{
 +
<!--============  ISSN ============-->
 +
  #if: {{{ISSN|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=issn |input1={{{ISSN|}}} }}
 +
}}{{
 +
<!--============  OCLC ============-->
 +
  #if: {{{OCLC|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=oclc |input1={{{OCLC|}}} }}
 +
}}{{
 +
<!--============  PMID ============-->
 +
  #if: {{{PMID|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=pmid |input1={{{PMID|}}} }}
 +
}}{{
 +
<!--============  PMC ============-->
 +
  #if: {{{PMC|}}}
 +
  |{{
 +
    #if: {{{URL|}}}
 +
    |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=pmc |input1={{{PMC|}}} }}
 +
    |{{only in  print|{{{Sep|,}}}&#32;{{citation/identifier  |identifier=pmc |input1={{{PMC|}}} }} }}<!--Should  only display by default in print-->
 +
  }}
 +
}}{{
 +
<!--============ BIBCODE ============-->
 +
  #if: {{{Bibcode|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=bibcode |input1={{{Bibcode|}}} }}
 +
}}{{
 +
<!--============  Archive data, etc ===========-->
 +
#if: {{{Archive|}}}
 +
|{{{Sep|,}}}&#32;{{{Archive}}}[[Category:Pages using deprecated citation archive parameters]]
 +
|{{
 +
  #if:{{{ArchiveURL|}}}{{{ArchiveDate|}}}
 +
  |{{{Sep|,}}}&#32;{{#ifeq:{{{Sep}}}|.|A|a}}rchived{{
 +
    #if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}
 +
    |{{#if:{{{ArchiveURL|}}}|&#32;from {{Citation/make link|{{{OriginalURL|{{{IncludedWorkURL|}}}}}}|the original}}}}
 +
    }}{{
 +
    #if:{{{ArchiveDate|}}}
 +
    |&#32;on {{{ArchiveDate}}}
 +
    }}{{
 +
    #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>, you must {{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}| also specify <code>&#124;{{#if:{{{ArchiveURL|}}}|archivedate|archiveurl}}&#61;</code>|first specify <code>&#124;url&#61;</code>}}}}
 +
    }}
 +
  }}
 +
}}{{
 +
<!--============ URL and AccessDate ============-->
 +
  #if: {{{URL|}}}{{{IncludedWorkURL|}}}
 +
  |{{
 +
    #if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}}
 +
    |<span class="printonly">{{{Sep|,}}}&#32;{{
 +
                                      #if: {{{IncludedWorkURL|}}}
 +
                                      |{{{IncludedWorkURL}}}
 +
                                      |{{{URL}}}
 +
                                    }}</span>
 +
    |{{{Sep|,}}}&#32;{{
 +
              #if: {{{IncludedWorkURL|}}}
 +
              |{{{IncludedWorkURL}}}
 +
              |{{{URL}}}
 +
            }}
 +
  }}{{
 +
    #if: {{{AccessDate|}}}
 +
    | <span class="reference-accessdate">{{#ifeq:{{{Sep|,}}}|,|,&#32;r|.&#32;R}}etrieved {{{AccessDate}}}</span>
 +
    }}
 +
}}{{#if:{{{laysummary|}}}
 +
  |{{{Sep|,}}}&#32;[{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}|&nbsp;&ndash;&nbsp;''<nowiki />{{{laysource}}}<nowiki />''}}
 +
}}{{#if:{{{laydate|}}}
 +
  | &#32;({{{laydate}}})
 +
}}{{#if:{{{quote|}}}
 +
  |{{{Sep|,}}}&#32;"{{{quote}}}"
 +
}}{{{PS|}}}</span><!--
 +
 
 +
=== This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information: ===
 +
 
 +
--><span
 +
    class="Z3988"
 +
    title="ctx_ver=Z39.88-2004&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:}}{{
 +
      #if: {{{Periodical|}}}
 +
      |journal&rft.genre=article&rft.atitle={{urlencode:{{{Title|}}}}}&rft.jtitle={{urlencode:{{{Periodical|}}}}}
 +
      |book{{
 +
        #if: {{{IncludedWorkTitle|}}}
 +
        |&rft.genre=bookitem&rft.btitle={{urlencode:{{{IncludedWorkTitle|}}}}}&rft.atitle={{urlencode:{{{Title|}}}}}
 +
        |&rft.genre=book&rft.btitle={{urlencode:{{{Title|}}}}}
 +
      }}
 +
    }}{{
 +
    #if:{{{Surname1|}}} |&rft.aulast={{urlencode:{{{Surname1}}}}}{{
 +
      #if: {{{Given1|}}} |&rft.aufirst={{urlencode:{{{Given1}}}}}
 +
    }}
 +
  }}{{
 +
    #if: {{{Surname1|}}} |&rft.au={{urlencode:{{{Surname1}}}}}{{
 +
      #if: {{{Given1|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given1}}}}}
 +
    }}
 +
  }}{{
 +
    #if: {{{Surname2|}}} |&rft.au={{urlencode:{{{Surname2}}}}}{{
 +
      #if: {{{Given2|}}} |{{urlencode:{{{NameSep|,&#32;}}}{{{Given2}}}}}
 +
    }}
 +
  }}{{
 +
      #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|}}}{{{Place|}}} |&rft.place={{urlencode:{{{PublicationPlace|{{{Place}}}}}}}}
 +
    }}{{
 +
      #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>
  
 
<br>The [[Template:Citation/core/sandbox2]] is a smaller variation of large [[Template:Citation/core]], to use fewer formatting resources in a big article which cannot fit the large template.
 
<br>The [[Template:Citation/core/sandbox2]] is a smaller variation of large [[Template:Citation/core]], to use fewer formatting resources in a big article which cannot fit the large template.
 
</noinclude>
 
</noinclude>

Revision as of 20:18, 5 January 2011

Smith 


The Template:Citation/core/sandbox2 is a smaller variation of large Template:Citation/core, to use fewer formatting resources in a big article which cannot fit the large template.