Jump to content

Template:Citation/core: Difference between revisions

From IdeaWazaWiki
wikademia>COGDEN
minor fix for third author
wikademia>COGDEN
Significant upgrade based on sub-templates. This has been tested, but let me know if there is a problem.
Line 4: Line 4:
     |id="CITEREF{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}{{{Year}}}"
     |id="CITEREF{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}{{{Year}}}"
   }}
   }}
}}>{{
}}>{{Harvard reference/authors
   #if: {{{Authorlink1|}}}
  | Surname1 = {{{Surname1}}}
   | [[ {{{Authorlink1}}} | {{{Surname1}}}{{ #if: {{{Given1|}}} |, {{{Given1}}} }} ]]
  | Given1 = {{{Given1|}}}
  | {{{Surname1}}}{{ #if: {{{Given1|}}} |, {{{Given1}}} }}
  | Authorlink1 = {{{Authorlink1|}}}
  | Surname2 = {{{Surname2|}}}
  | Given2 = {{{Given2|}}}
  | Authorlink2 = {{{Authorlink2|}}}
  | Surname3 = {{{Surname3|}}}
  | Given3 = {{{Given3|}}}
  | Authorlink3 = {{{Authorlink3|}}}
  | Surname4 = {{{Surname4|}}}
  | Given4 = {{{Given4|}}}
  | Authorlink4 = {{{Authorlink4|}}}
}} ({{{Date}}}){{
   #if: {{{ChapterTitle|}}}
   |{{
    #if: {{{Periodical|}}}
    | {{Link
        | 1={{{ChapterURL|}}}
        | 2={{{ChapterTitle|}}}
      }} in {{Harvard reference/authors
        | Surname1 = {{{EditorSurname1|}}}
        | Given1 = {{{EditorGiven1|}}}
        | Authorlink1 = {{{Editorlink1|}}}
        | Surname2 = {{{EditorSurname2|}}}
        | Given2 = {{{EditorGiven2|}}}
        | Authorlink2 = {{{Editorlink2|}}}
        | Surname3 = {{{EditorSurname3|}}}
        | Given3 = {{{EditorGiven3|}}}
        | Authorlink3 = {{{Editorlink3|}}}
        | Surname4 = {{{EditorSurname4|}}}
        | Given4 = {{{EditorGiven4|}}}
        | Authorlink4 = {{{Editorlink4|}}}
      }}{{Harvard reference/articlepart
        | URL = {{{URL|}}}
        | Periodical = {{{Periodical|}}}
        | Title = {{{Title|}}}
        | Volume = {{{Volume|}}}
        | Issue = {{{Issue|}}}
        | PublicationYear = {{{PublicationYear|}}}
        | Page = {{{Page|}}}
        | Pages = {{{Pages|}}}
      }}
    | {{Link
        | 1={{{ChapterURL|}}}
        | 2="{{{ChapterTitle|}}}"
      }} in {{Harvard reference/authors
        | Surname1 = {{{EditorSurname1|}}}
        | Given1 = {{{EditorGiven1|}}}
        | Authorlink1 = {{{Editorlink1|}}}
        | Surname2 = {{{EditorSurname2|}}}
        | Given2 = {{{EditorGiven2|}}}
        | Authorlink2 = {{{Editorlink2|}}}
        | Surname3 = {{{EditorSurname3|}}}
        | Given3 = {{{EditorGiven3|}}}
        | Authorlink3 = {{{Editorlink3|}}}
        | Surname4 = {{{EditorSurname4|}}}
        | Given4 = {{{EditorGiven4|}}}
        | Authorlink4 = {{{Editorlink4|}}}
      }}{{Harvard reference/bookpart
        | URL = {{{URL|}}}
        | Title = {{{Title|}}}
        | Volume = {{{Volume|}}}
        | PublicationYear = {{{PublicationYear|}}}
        | Page = {{{Page|}}}
        | Pages = {{{Pages|}}}
        | Edition = {{{Edition|}}}
        | Place = {{{Place|}}}
        | Publisher = {{{Publisher|}}}
      }}
  }}
  |{{
    #if: {{{Periodical|}}}
    |{{Harvard reference/article
        | URL = {{{URL|}}}
        | Periodical = {{{Periodical|}}}
        | Title = {{{Title|}}}
        | Volume = {{{Volume|}}}
        | Issue = {{{Issue|}}}
        | Page = {{{Page|}}}
        | Pages = {{{Pages|}}}
      }}
    |{{Harvard reference/book
        | URL = {{{URL|}}}
        | Title = {{{Title|}}}
        | Volume = {{{Volume|}}}
        | Edition = {{{Edition|}}}
        | Place = {{{Place|}}}
        | Publisher = {{{Publisher|}}}
      }}
  }}
}}{{
}}{{
   #if: {{{Surname2|}}}
   #if: {{{ID|}}}
   | {{
   |, {{{ID}}}
      #if: {{{Surname3|}}}
  |{{
      |, 
    #if: {{{ISBN|}}}
      | & 
    |, ISBN {{{ISBN}}}
    }}{{
  }}{{
      #if: {{{Authorlink2|}}}
    #if: {{{OCLC|}}}
      |[[ {{{Authorlink2}}} | {{{Surname2}}}{{ #if: {{{Given2|}}} |, {{{Given2}}} }} ]]
    |, [[OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]
      |{{{Surname2}}}{{ #if: {{{Given2|}}} |, {{{Given2}}} }}
  }}{{
    }}
    #if: {{{DOI|}}}
    |, [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{DOI}}} {{{DOI}}}]
  }}
}}{{
}}{{
   #if: {{{Surname3|}}}
   #if: {{{URL|}}}
  | {{#if: {{{Authorlink3|}}}
   |{{
      | & [[{{{Authorlink3}}}|{{{Surname3}}}{{#if:{{{Given3|}}}|, {{{Given3}}}}}]]
    #if: {{{AccessDate|}}}
      | & {{{Surname3}}}{{#if:{{{Given3|}}}|, {{{Given3|}}} }}
    |<nowiki> [</nowiki>link accessed {{{AccessDate}}}<nowiki>]</nowiki>
    }}
  }}
}}{{
  #if:{{{Surname4|}}}
  |, et al.
}} ({{{Date}}}){{
  #if:{{{Periodical|}}}
  | {{
      #if: {{{Title|}}}
      |, {{Link|1={{{URL|}}}|2="{{{Title}}}"}}
    }}, ''{{{Periodical}}}''{{
      #if: {{{Volume|}}}
      |, vol. {{{Volume}}}
    }}{{
      #if: {{{Issue|}}}
      |, no. {{{Issue}}}
    }}{{
      #if: {{{Pages|}}}
      |, pp. {{{Pages}}}
      |{{#if: {{{Page|}}} |, p. {{{Page}}}}}
    }}{{#if: {{{ID|}}}
      |, {{{ID}}}
    }}
   | {{
      #if: {{{ChapterTitle|}}}
      |, {{Link|1={{{ChapterURL|}}}|2="{{{ChapterTitle|}}}"
        }} in {{
          #if: {{{EditorSurname1|}}}
          | {{
              #if: {{{Editorlink1|}}}
              | [[ {{{Editorlink1|}}} | {{{EditorSurname1}}}{{ #if: {{{EditorGiven1|}}} |, {{{EditorGiven1|}}} }} ]]
              | {{{EditorSurname1}}}{{ #if: {{{EditorGiven1|}}} |, {{{EditorGiven1}}} }}
            }}{{
              #if: {{{EditorSurname2|}}}
              | {{
                  #if:{{{EditorSurname3|}}}
                  |,&#32;
                  |&#32;&amp;&#32;
                }}{{
                  #if: {{{Editorlink2|}}}
                  | [[ {{{Editorlink2}}} | {{{EditorSurname2}}}{{ #if: {{{EditorGiven2|}}} |, {{{EditorGiven2}}} }} ]]
                  | {{{EditorSurname2}}}{{ #if: {{{EditorGiven2|}}} |, {{{EditorGiven2}}} }}
                }}
            }}{{
              #if:{{{EditorSurname3|}}}
              | {{
                  #if: {{{Editorlink3|}}}
                  |&#32;&amp; [[{{{Editorlink3}}}|{{{EditorSurname3}}}{{#if:{{{EditorGiven3|}}}|, {{{Given1}}}}}]]
                  |&#32;&amp; {{{EditorSurname3}}}{{#if:{{{EditorGiven3|}}}|, {{{EditorGiven3|}}} }}
                }}
            }}{{
              #if: {{{EditorSurname4|}}}
              |, et al.
            }}, ed{{#if:{{{EditorSurname2|}}}|s}}.,&#32;
        }}{{Link|1={{{URL|}}}|2=''{{{Title}}}''
        }}{{
          #if: {{{Volume|}}}
          |, vol. {{{Volume}}}
        }}{{
          #if: {{{PublicationYear|}}}
          |, {{{PublicationYear}}}
        }}{{
          #if: {{{Pages|}}}
          |, pp. {{{Pages}}}
          |{{#if:
              {{{Page|}}}
              |, p. {{{Page}}}
            }}
          }}
      | {{
          #if: {{{Title|}}}
          |, {{Link|1={{{URL|}}}|2=''{{{Title}}}''}}
        }}{{
          #if: {{{Volume|}}}
          |, vol. {{{Volume}}}
        }}
    }}{{
      #if: {{{Edition|}}}
      |&#32;({{{Edition}}} ed.)
    }}{{
      #if: {{{Place|}}}
      |, {{{Place}}}
    }}{{
      #if: {{{Publisher|}}}
      | {{
          #if: {{{Place|}}}
          |<nowiki>: </nowiki>
          |,&#32;
        }}{{{Publisher}}}
    }}{{
      #if: {{{ID|}}}
      |, {{{ID}}}
      | {{
          #if: {{{ISBN|}}}
          |, ISBN {{{ISBN}}}
          | {{
              #if: {{{OCLC|}}}
              |, [[OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{oclc}}}}} {{{oclc}}}]
              | {{
                  #if: {{{DOI|}}}
                  |, [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{DOI}}} {{{DOI}}}]
                }}
            }}
        }}
    }}
}}{{
    #if: {{URL|}}
    | {{
        #if: {{{AccessDate|}}}
        |&#32;<nowiki>[</nowiki>link accessed {{{AccessDate}}}<nowiki>]</nowiki>
      }}
}}</cite>
}}</cite>

Revision as of 00:22, 31 January 2007