Template:CiteJournal

From 2010.igem.org

(Difference between revisions)
Line 1: Line 1:
-
<includeonly>({{#ifeq:{{{Ref|}}}|none
+
<includeonly>{{#ifeq:{{{Nb|}}}|yes||{{#ifeq:{{{Txt|}}}|yes||(}}}}{{
-
  |{{#if:{{{5|}}}
+
<!-- Much of this code is copied from template:citation/core
-
      |{{{1|}}} et al. {{{5|}}}
+
    and should be kept the same for compatibility-->
-
      |{{#if:{{{4|}}}
+
#if:{{{Surname1|}}}
-
          |{{{1|}}}, {{{2|}}} &amp; {{{3|}}} {{{4|}}}
+
  |{{
-
          |{{#if:{{{3|}}}
+
    #if: {{{Authorlink1|}}}
-
            |{{{1|}}} &amp; {{{2|}}} {{{3|}}}
+
    |[[{{{Authorlink1}}} |{{
-
            |{{{1|}}} {{{2|}}}
+
        #if: {{{Given1|}}}
-
          }}
+
        |{{{Given1}}}&#32;
-
        }}
+
      }}{{{Surname1}}}]]
-
     }}
+
    |{{
-
  |[[#{{#if:{{{Ref|}}}
+
        #if: {{{Given1|}}}
-
      |{{{Ref}}}
+
        |{{{Given1}}}&#32;  
-
      |CITEREF{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}
+
      }}{{{Surname1}}}
-
      }}|{{#if:{{{5|}}}
+
  }}{{
-
          |{{{1|}}} et al. {{{5|}}}
+
    #if: {{{Surname2|}}}
-
          |{{#if:{{{4|}}}
+
     |{{
-
            |{{{1|}}}, {{{2|}}} &amp; {{{3|}}} {{{4|}}}
+
        #if: {{{Surname3|}}}
-
            |{{#if:{{{3|}}}
+
        |,&#32;
-
                |{{{1|}}} &amp; {{{2|}}} {{{3|}}}
+
        |&#32;{{#ifeq:{{{Txt|}}}|yes|and|&amp;}}&#32;
-
                |{{{1|}}} {{{2|}}}
+
      }}{{
-
            }}
+
        #if: {{{Authorlink2|}}}
-
          }}
+
        |[[{{{Authorlink2}}} |{{{Given2|}}} {{{Surname2}}}]]
-
    }}]]
+
        |{{{Given2|}}} {{{Surname2}}}
-
}}{{#if:{{{loc|}}}
+
      }}{{
-
  |, {{{loc|}}}
+
        #if: {{{Surname3|}}}
-
  |{{#if:{{{p|}}}
+
        |{{#ifeq:{{{Txt|}}}|yes|,&#32;and&#32;|&#32;&amp;&#32;}}{{
-
    |, p.&nbsp;{{{p|}}}
+
          #if: {{{Authorlink3|}}}
-
    |{{#if:{{{pp|}}}
+
          |[[{{{Authorlink3}}} |{{{Given3|}}} {{{Surname3}}}]]
-
        |, pp.&nbsp;{{{pp|}}}
+
          |{{{Given3|}}} {{{Surname3}}}
 +
        }}{{
 +
          #if:{{{Surname4|}}}
 +
          |&#32;et al.
 +
        }}
       }}
       }}
   }}
   }}
-
}})</includeonly>
+
  |{{
 +
    #if: {{{EditorSurname1|}}}
 +
    |{{
 +
        #if: {{{Editorlink1|}}}
 +
        |[[{{{Editorlink1}}} |{{{EditorSurname1}}}{{
 +
          #if: {{{EditorGiven1|}}}
 +
          |, {{{EditorGiven1}}}
 +
        }}]]
 +
        |{{{EditorSurname1}}}{{
 +
          #if: {{{EditorGiven1|}}}
 +
          |, {{{EditorGiven1}}}
 +
        }}
 +
      }}{{
 +
        #if: {{{EditorSurname2|}}}
 +
        |{{
 +
          #if: {{{EditorSurname3|}}}
 +
          |<nowiki>; </nowiki>
 +
          |&#32;&amp;&#32;
 +
        }}{{
 +
          #if: {{{Editorlink2|}}}
 +
          |[[{{{Editorlink2}}} |{{{EditorGiven2|}}} {{{EditorSurname2}}}]]
 +
          |{{{EditorGiven2|}}} {{{EditorSurname2}}}
 +
        }}{{
 +
          #if: {{{EditorSurname3|}}}
 +
          |&#32;&amp; {{
 +
              #if: {{{Editorlink3|}}}
 +
              |[[{{{Editorlink3}}} |{{{EditorGiven3|}}} {{{EditorSurname3}}}]]
 +
              |{{{EditorGiven3|}}} {{{EditorSurname3}}}
 +
            }}{{
 +
              #if:{{{EditorSurname4|}}}
 +
              |&#32;et al.
 +
            }}
 +
        }}
 +
      }}, ed{{#if:{{{EditorSurname2|}}}|s}}.
 +
  }}
 +
}}&nbsp;{{#ifeq:{{{Nb|}}}|yes||{{#ifeq:{{{Txt|}}}|yes|(| }}}}<!--
 +
  first link:
 +
-->[[{{{Citationpage|}}}#{{anchorencode:{{
 +
  #if:{{{Ref|}}}
 +
  |{{#ifeq:{{{Ref|}}}|none||{{{Ref|}}}}}
 +
  |CITEREF{{#if:{{{Surname1|}}}
 +
    |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}
 +
    |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}}
 +
  }}{{{Year|{{{Date|}}}}}}
 +
}}}}|{{{Year|{{{Date|}}}}}}]]{{#if:{{{Loc1|}}}|,&ensp;{{{Loc1|}}} }}<!--
 +
  second link
 +
-->{{#if:{{{Year2|}}}
 +
  |, [[{{{Citationpage|}}}#{{anchorencode:{{
 +
  #if:{{{Ref2|}}}
 +
  |{{#ifeq:{{{Ref2|}}}|none||{{{Ref2|}}}}}
 +
  |CITEREF{{#if:{{{Surname1|}}}
 +
    |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}
 +
    |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}}
 +
  }}{{{Year2|}}}
 +
}}}}|{{{Year2|}}}]]|}}{{#if:{{{Loc2|}}}|,&ensp;{{{Loc2|}}} }}<!--
 +
  3rd link
 +
-->{{#if:{{{Year3|}}}
 +
  |, [[{{{Citationpage|}}}#{{anchorencode:{{
 +
  #if:{{{Ref3|}}}
 +
  |{{#ifeq:{{{Ref3|}}}|none||{{{Ref3|}}}}}
 +
  |CITEREF{{#if:{{{Surname1|}}}
 +
    |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}
 +
    |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}}
 +
  }}{{{Year3|}}}
 +
}}}}|{{{Year3|}}}]]|}}{{#if:{{{Loc3|}}}|,&ensp;{{{Loc3|}}} }}<!--
 +
  4th link
 +
-->{{#if:{{{Year4|}}}
 +
  |, [[{{{Citationpage|}}}#{{anchorencode:{{
 +
  #if:{{{Ref4|}}}
 +
  |{{#ifeq:{{{Ref4|}}}|none||{{{Ref4|}}}}}
 +
  |CITEREF{{#if:{{{Surname1|}}}
 +
    |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}
 +
    |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}}
 +
  }}{{{Year4|}}}
 +
}}}}|{{{Year4|}}}]]|}}{{#if:{{{Loc4|}}}|,&ensp;{{{Loc4|}}} }}{{#ifeq:{{{Nb|}}}|yes||)}}</includeonly>

Revision as of 08:55, 2 July 2010