Template:Citation

From Soma-notes

{{

 #if: 

|Template:Harvard reference/authors{{

#if: 
|, ""

}}, [[:w:{{{country-code}}}{{

       #if: 
       | 
     }} {{{patent-number}}}:http://v3.espacenet.com/textdoc?DB=EPODOC&IDX={{{country-code}}}{{{patent-number}}}%7Chttp://v3.espacenet.com/textdoc?DB=EPODOC&IDX={{{country-code}}}{{{patent-number}}}]]{{
 #if: 
 |, published 

}}{{

 #if: 
 |, issued 

}}

|{{

 #if:
 |{{
    #if: 
    |{{
       #iferror: {{ #expr: 1*{{{AuthorMask}}} }}
       |{{{AuthorMask}}}
       |Template:Loop
     }}
    |{{
       #if: 
       |[[ |{{
         #if: 
         |, 
        }}]]
       |{{
          #if: 
          |, 
        }}
     }}
  }}{{
    #if: 
    |{{#ifexpr:8<2
      | et al.
      |{{
         #iferror: {{ #expr: 1*0.0 }}
         | 
         |{{
           #if: 
           |; 
           |{{#if:| & |; }}
         }}
       }}{{
         #if: 
         |[[ |{{
            #if: 
            |, 
          }}]]
         |{{
            #if: 
            |, 
          }}
       }}{{
         #if: 
         |{{#ifexpr:8<3
           | et al.
           |{{
              #if: 
              |; 
              |{{#if:| & |; }}
            }}{{
              #if: 
              |[[ |{{
                 #if: 
                 |, 
               }}]]
              |{{
                 #if: 
                 |, 
               }}
            }}{{
              #if:
              |{{#ifexpr:8<4
                | et al.
                |{{
                   #if: 
                   |; 
                   |{{#if:| & |; }}
                 }}{{
                   #if: 
                   |[[ |{{
                      #if: 
                      |, 
                    }}]]
                   |{{
                      #if: 
                      |, 
                   }}
                 }}{{
                 #if:
                 |{{#ifexpr:8<5
                   | et al.
                   |{{
                    #if: 
                    |; 
                    |{{#if:| & |; }}
                   }}{{
                    #if: 
                    |[[ |{{
                       #if: 
                       |, 
                     }}]]
                    |{{
                       #if: 
                       |, 
                     }}
                  }}{{
                    #if:
                    |{{#ifexpr:8<6
                    | et al.
                     |{{
                       #if: 
                       |; 
                       |{{#if:| & |; }}
                     }}{{
                       #if: 
                       |[[ |{{
                          #if: 
                          |, 
                        }}]]
                       |{{
                          #if: 
                          |, 
                        }}
                     }}{{
                       #if:
                        |{{#ifexpr:8<7
                          | et al.
                       |{{
                          #if: 
                          |; 
                          |{{#if:| & |; }}
                        }}{{
                          #if: 
                          |[[ |{{
                             #if: 
                             |, 
                           }}]]
                          |{{
                             #if: 
                             |, 
                           }}
                                   }}{{
                                      #if:
                                      |{{#ifexpr:8<8
                                          | et al.
                                          |{{
                                             #if: 
                                             |; 
                                             |{{#if:| & |; }}
                                           }}{{
                                             #if: 
                                             |[[ |{{
                                                #if: 
                                                |, 
                                              }}]]
                                             |{{
                                                #if: 
                                                |, 
                                              }}
                                           }}{{
                                             #if:
                                             | et al.
                                           }}
                                        }}
                                     }}
                                  }}
                               }}
                            }}
                         }}
                      }}
                    }}
                 }}
              }}
           }}
        }}
     }}
  }}{{
    #if: 
    |; |
  }}{{
    #if: 
    | (){{
      #if:
    | [{{{YearNote}}}]
    }}
  }}
 |{{
    #if: 
    |{{
       #if: 
       |[[ |{{
          #if: 
          |, 
        }}]]
       |{{
          #if: 
          |, 
        }}
     }}{{
       #if: 
       |{{
         #if: 
         |; 
         |{{#if:| & |; }}
       }}{{
          #if: 
          |[[ |{{
             #if: 
             |, 
           }}]]
          |{{
             #if: 
             |, 
           }}
        }}{{
          #if: 
          |{{
             #if: 
             |; 
             |{{#if:| & |; }}
           }}{{
             #if: 
             |[[ |{{
                #if: 
                |, 
              }}]]
             |{{
                #if: 
                |, 
              }}
           }}{{
             #if:
             | et al.
           }}
        }}
      }}, ed{{#if:|s}}{{#ifeq:,|.||.}}{{
       #if: 
       | (){{
        #if:
      | [{{{YearNote}}}]
      }}
     }}
  }}

}}{{

 #if: {{#if:||{{#if:||}}}}
 |{{
    #if:
    |, 
  }}Template:Citation/make link

}}{{

 #if: 
 |{{
    #ifeq:  | 
    |
    |{{
       #if: 
       |, written at 
     }}
  }}

}}{{

 #if: 
 |{{
    #if: 
    |, {{
       #if: 
       |{{#ifeq:,|.|I|i}}n 
     }}{{
       #if: 
       |[[ |{{
          #if: 
          |, 
        }}]]
       |{{
          #if: 
          |, 
        }}}}{{
       #if: 
       |{{
         #if: 
           |; 
           |{{#if:| & |; }}
         }}{{
          #if: 
          |[[|{{
             #if: 
             |, 
           }}]]
          |{{
             #if: 
             |, 
           }}
        }}{{
          #if: 
          |{{
             #if: 
             |; 
             |{{#if:| & |; }}
           }}{{
             #if: 
             |[[|{{
                #if: 
                |, 
              }}]]
             |{{
                #if: 
                |, 
              }}
           }}{{
             #if:
             | et al.
           }}
        }}
     }}{{
       #if: 
       |
       |, ed{{#if:|s}}{{#ifeq:,|.||.}}
     }}
  }}

}}{{

 #if: 
 |{{
    #if: 
    |, 
  }}{{
    #if: 
    |, }}{{
    #if: 
    |Template:Citation/make link{{
       #if: 
       |, {{{TitleNote}}}
     }}
  }}

}}{{

 #if: 
 | (in )

}}{{

 #if: 
 | ()

}}{{

  #if: 
  |{{
     #if:
     |, 
   }}{{
     #if: 
     |, 
   }}{{
     #if: 
     |{{
        #if: 
        | (: )
        | ()
      }}
     |{{
        #if: 
        | ()
      }}
   }}{{
     #if: 
     | {{
        #if: 
        | ()
      }}
     |{{
        #if: 
        | ()
      }}
   }}{{
     #if: {{
         #if: 
         |
         |{{
            #if: 
            |p. {{{page}}}
            |{{
               #if: 
               |pp. {{{pages}}}
               |
             }}
          }}
       }}
     |:  {{
         #if: 
         |
         |{{
            #if: 
            |p. {{{page}}}
            |{{
               #if: 
               |pp. {{{pages}}}
               |
             }}
          }}
       }}
   }}
  |{{
     #if: 
     |{{
        #if: 
        |,
      }} Template:Citation/make link
   }}{{
     #if: 
     | ({{{TitleType}}})
   }}{{
     #if: 
     |, 
   }}{{
     #if: 
     |, 
   }}{{
     #if: 
     |, 
   }}{{
     #if: 
     | ( ed.)
   }}{{
     #if: 
     |, 
   }}{{
     #if: 
     |{{
        #if: 
        |:
        |,
      }} 
   }}

}}{{

 #if: 
 |
 |{{
    #if: 
    |, {{
      #if:
    | [{{{YearNote}}}]
    }}
  }}

}}{{

 #if: 
 |{{
    #ifeq:  | 
    |
    |{{
       #if: 
       |{{
          #if: 
          |, 
          | (published )
        }}
       |{{
          #if: 
          |, 
          | (published )
        }}
     }}
  }}

}}{{

 #if: 
 |
 |{{
    #if: {{
         #if: 
         |
         |{{
            #if: 
            |p. {{{page}}}
            |{{
               #if: 
               |pp. {{{pages}}}
               |
             }}
          }}
       }}
    |, {{
         #if: 
         |
         |{{
            #if: 
            |p. {{{page}}}
            |{{
               #if: 
               |pp. {{{pages}}}
               |
             }}
          }}
       }}
  }}

}}{{

  1. if:
 |, Template:Citation/identifier

}}{{

 #if: 
 |{{
    #if: 
    |, 
    |
  }}

}}{{

 #if: 
 |, Template:Citation/identifier

}}{{

 #if: 
 |, Template:Citation/identifier

}}{{

 #if: 
 |, Template:Citation/identifier

}}{{

 #if: 
 |, Template:Citation/identifier

}}{{

 #if: 
 |{{
    #if: 
    |, Template:Citation/identifier
    |Template:Only in print
  }}

}}{{

 #if: 
 |, Template:Citation/identifier

}}{{

  1. if:

|, {{{Archive}}} |{{

 #if:
 |, {{#ifeq:{{{Sep}}}|.|A|a}}rchived{{
   #if:
   |{{#if:| from Template:Citation/make link}}
   }}{{
   #if:
   | on {{{ArchiveDate}}}
   }}{{
   #if:{{#if:||A}}{{#if:||B}}{{#if:||C}}
   |. Template:Citation error
   }}
 }}

}}{{

 #if: 
 |{{
    #if: 
    |, {{
                                     #if: 
                                     |
                                     |
                                   }}
    |, {{
             #if: 
             |
             |
           }}
  }}{{
    #if: 
    | {{#ifeq:,|,|, r|. R}}etrieved 
    }}

}}{{#if:

 |, [ Lay summary]{{#if: | – {{{laysource}}}}}

}}{{#if:

 |  ()

}}{{#if:

 |, ""

}} 

}}

{{#if:defaultnotblank|}}

{{TemplateBox/{{#ifexist: Template:TemplateBox/{{#if: |{{{2}}}|⧼Lang⧽}} | {{#if: |{{{2}}}|⧼Lang⧽}} | {{#ifexist: Template:TemplateBox/Template:GetFallback | Template:GetFallback | {{#ifexist: Template:TemplateBox/Template:GetFallback2 | Template:GetFallback2 | en }} }} }} |1=|1d=|1def=|1stat=|2=|2d=|2def=|2stat= |3=|3d=|3def=|3stat=|4=|4d=|4def=|4stat= |5=|5d=|5def=|5stat=|6=|6d=|6def=|6stat= |7=|7d=|7def=|7stat=|8=|8d=|8def=|8stat= |9=|9d=|9def=|9stat=|10=|10d=|10def=|10stat= |11=|11d=|11def=|11stat=|12=|12d=|12def=|12stat= |13=|13d=|13def=|13stat=|14=|14d=|14def=|14stat= |15=|15d=|15def=|15stat=|16=|16d=|16def=|16stat= |17=|17d=|17def=|17stat=|18=|18d=|18def=|18stat= |19=|19d=|19def=|19stat=|20=|20d=|20def=|20stat= |21=|21d=|21def=|21stat=|22=|22d=|22def=|22stat= |23=|23d=|23def=|23stat=|24=|24d=|24def=|24stat= |name=|desc=|namespace=|usergroup=|placement=|usage-notes=|type=|example=|example2=|i18n-method=|i18n-desc=|i18n-mediawiki-msg=|seealso=|setscats=|lines=|shorthand=|relieson=|docsub-override=|docsub-page= }}