Difference between revisions of "Template:Citation/core"

From Monoskop
Jump to navigation Jump to search
(New page: <cite {{ #if:{{{Ref|}}} |{{#ifeq:{{{Ref|}}}|none||id="{{anchorencode:{{{Ref|}}}}}"}} |id="CITEREF{{anchorencode:{{#if:{{{Surname1|}}} |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|...)
 
Line 1: Line 1:
<cite
+
<span class="citation {{{Citation class|{{{Citation type|}}}}}}"
 
{{
 
{{
   #if:{{{Ref|}}}
+
   #switch:{{{Ref|}}}
   |{{#ifeq:{{{Ref|}}}|none||id="{{anchorencode:{{{Ref|}}}}}"}}
+
   ||none =
  |id="CITEREF{{anchorencode:{{#if:{{{Surname1|}}}
+
  |#default = id="{{anchorencode:{{{Ref}}}}}"
    |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}
+
  |harv = {{#if:{{{Surname1|}}}{{{EditorSurname1|}}}
    |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}}
+
    |id="CITEREF{{anchorencode:{{#if:{{{Surname1|}}}
  }}{{{Year|{{{Date|}}}}}}}}"
+
      |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}
 +
      |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}}
 +
    }}{{{Year|{{{Date|}}}}}}}}"
 +
  }}
 
}}>{{
 
}}>{{
 
<!--============  Author or editor and date  ============-->
 
<!--============  Author or editor and date  ============-->
 
   #if:{{{Surname1|}}}
 
   #if:{{{Surname1|}}}
 
   |{{
 
   |{{
     #if: {{{Authorlink1|}}}
+
     #if: {{{AuthorMask|}}}
     |[[{{{Authorlink1}}} |{{{Surname1}}}{{
+
     |{{
         #if: {{{Given1|}}}
+
         #iferror: {{ #expr: 1*{{{AuthorMask}}} }}
        |, {{{Given1}}}
+
        |{{{AuthorMask}}}
      }}]]
+
        |{{loop|{{{AuthorMask}}}|2=&mdash;}}
    |{{{Surname1}}}{{
 
        #if: {{{Given1|}}}
 
        |, {{{Given1}}}
 
 
       }}
 
       }}
  }}{{
 
    #if: {{{Surname2|}}}
 
 
     |{{
 
     |{{
         #if: {{{Surname3|}}}
+
         #if: {{{Authorlink1|}}}
        |<nowiki>; </nowiki>
+
         |[[{{{Authorlink1}}} |{{{Surname1}}}{{
        |&#32;&amp;&#32;
+
          #if: {{{Given1|}}}
      }}{{
+
          |{{{NameSep|,&#32;}}}{{{Given1}}}
        #if: {{{Authorlink2|}}}
 
         |[[{{{Authorlink2}}} |{{{Surname2}}}{{
 
          #if: {{{Given2|}}}
 
          |, {{{Given2}}}
 
 
         }}]]
 
         }}]]
         |{{{Surname2}}}{{
+
         |{{{Surname1}}}{{
           #if: {{{Given2|}}}
+
           #if: {{{Given1|}}}
           |, {{{Given2}}}
+
           |{{{NameSep|,&#32;}}}{{{Given1}}}
 
         }}
 
         }}
       }}{{
+
       }}
        #if: {{{Surname3|}}}
+
  }}{{
        |{{
+
    #if: {{{Surname2|}}}
          #if: {{{Surname4|}}}
+
    |{{#ifexpr:{{{Trunc|8}}}<2
          |<nowiki>; </nowiki>
+
      |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
          |&#32;&amp;&#32;
+
      |{{
        }}{{
+
          #iferror: {{ #expr: 1*0.0{{{AuthorMask|}}} }}
          #if: {{{Authorlink3|}}}
+
          |&#32;<!-- then punctuation should be included in AuthorMask -->
          |[[{{{Authorlink3}}} |{{{Surname3}}}{{
+
          |{{
              #if: {{{Given3|}}}
+
            #if: {{{Surname3|}}}
              |, {{{Given3}}}
+
            |{{{AuthorSep|&#059;&#32;}}}
             }}]]
+
             |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
          |{{{Surname3}}}{{
+
          }}
              #if: {{{Given3|}}}
+
        }}{{
              |, {{{Given3}}}
+
          #if: {{{Authorlink2|}}}
            }}
+
          |[[{{{Authorlink2}}} |{{{Surname2}}}{{
        }}{{
+
            #if: {{{Given2|}}}
          #if:{{{Surname4|}}}
+
            |{{{NameSep|,&#32;}}}{{{Given2}}}
          |{{
+
          }}]]
              #if: {{{Surname5|}}}
+
          |{{{Surname2}}}{{
              |<nowiki>; </nowiki>
+
            #if: {{{Given2|}}}
              |&#32;&amp;&#32;
+
            |{{{NameSep|,&#32;}}}{{{Given2}}}
            }}{{
+
          }}
              #if: {{{Authorlink4|}}}
+
        }}{{
              |[[{{{Authorlink4}}} |{{{Surname4}}}{{
+
          #if: {{{Surname3|}}}
                #if: {{{Given4|}}}
+
          |{{#ifexpr:{{{Trunc|8}}}<3
                |, {{{Given4}}}
+
            |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
              }}]]
+
             |{{
              |{{{Surname4}}}{{
+
              #if: {{{Surname4|}}}
                #if: {{{Given4|}}}
+
              |{{{AuthorSep|&#059;&#32;}}}
                |, {{{Given4}}}
+
              |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
              }}
+
            }}{{
             }}{{
+
              #if: {{{Authorlink3|}}}
              #if:{{{Surname5|}}}
+
              |[[{{{Authorlink3}}} |{{{Surname3}}}{{
              |{{
+
                  #if: {{{Given3|}}}
                #if: {{{Surname6|}}}
+
                  |{{{NameSep|,&#32;}}}{{{Given3}}}
                |<nowiki>; </nowiki>
+
                }}]]
                |&#32;&amp;&#32;
+
              |{{{Surname3}}}{{
              }}{{
+
                  #if: {{{Given3|}}}
                #if: {{{Authorlink5|}}}
+
                  |{{{NameSep|,&#32;}}}{{{Given3}}}
                |[[{{{Authorlink5}}} |{{{Surname5}}}{{
+
                }}
                    #if: {{{Given5|}}}
+
            }}{{
                    |, {{{Given5}}}
+
               #if:{{{Surname4|}}}
                  }}]]
+
              |{{#ifexpr:{{{Trunc|8}}}<4
                |{{{Surname5}}}{{
+
                 |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
                    #if: {{{Given5|}}}
 
                    |, {{{Given5}}}
 
                  }}
 
               }}{{
 
                 #if:{{{Surname6|}}}
 
 
                 |{{
 
                 |{{
                     #if: {{{Surname7|}}}
+
                     #if: {{{Surname5|}}}
                     |<nowiki>; </nowiki>
+
                     |{{{AuthorSep|&#059;&#32;}}}
                     |&#32;&amp;&#32;
+
                     |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
 
                   }}{{
 
                   }}{{
                     #if: {{{Authorlink6|}}}
+
                     #if: {{{Authorlink4|}}}
                     |[[{{{Authorlink6}}} |{{{Surname6}}}{{
+
                     |[[{{{Authorlink4}}} |{{{Surname4}}}{{
                       #if: {{{Given6|}}}
+
                       #if: {{{Given4|}}}
                       |, {{{Given6}}}
+
                       |{{{NameSep|,&#32;}}}{{{Given4}}}
 
                     }}]]
 
                     }}]]
                     |{{{Surname6}}}{{
+
                     |{{{Surname4}}}{{
                       #if: {{{Given6|}}}
+
                       #if: {{{Given4|}}}
                       |, {{{Given6}}}
+
                       |{{{NameSep|,&#32;}}}{{{Given4}}}
                    }}
+
                    }}
 
                   }}{{
 
                   }}{{
                     #if:{{{Surname7|}}}
+
                  #if:{{{Surname5|}}}
 +
                  |{{#ifexpr:{{{Trunc|8}}}<5
 +
                     |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
 
                     |{{
 
                     |{{
                      #if: {{{Surname8|}}}
+
                    #if: {{{Surname6|}}}
                      |<nowiki>; </nowiki>
+
                    |{{{AuthorSep|&#059;&#32;}}}
                      |&#32;&amp;&#32;
+
                    |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
                    }}{{
+
                    }}{{
                      #if: {{{Authorlink7|}}}
+
                    #if: {{{Authorlink5|}}}
                      |[[{{{Authorlink7}}} |{{{Surname7}}}{{
+
                    |[[{{{Authorlink5}}} |{{{Surname5}}}{{
                          #if: {{{Given7|}}}
+
                        #if: {{{Given5|}}}
                          |, {{{Given7}}}
+
                        |{{{NameSep|,&#32;}}}{{{Given5}}}
                        }}]]
+
                      }}]]
                      |{{{Surname7}}}{{
+
                    |{{{Surname5}}}{{
                          #if: {{{Given7|}}}
+
                        #if: {{{Given5|}}}
                          |, {{{Given7}}}
+
                        |{{{NameSep|,&#32;}}}{{{Given5}}}
                        }}
+
                      }}
                    }}{{
+
                  }}{{
                      #if:{{{Surname8|}}}
+
                    #if:{{{Surname6|}}}
                      |{{
+
                    |{{#ifexpr:{{{Trunc|8}}}<6
                          #if: {{{Surname9|}}}
+
                    |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
                          |<nowiki>; </nowiki>
+
                      |{{
                          |&#32;&amp;&#32;
+
                        #if: {{{Surname7|}}}
                        }}{{
+
                        |{{{AuthorSep|&#059;&#32;}}}
                          #if: {{{Authorlink8|}}}
+
                        |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
                          |[[{{{Authorlink8}}} |{{{Surname8}}}{{
+
                      }}{{
                            #if: {{{Given8|}}}
+
                        #if: {{{Authorlink6|}}}
                            |, {{{Given8}}}
+
                        |[[{{{Authorlink6}}} |{{{Surname6}}}{{
                          }}]]
+
                          #if: {{{Given6|}}}
                          |{{{Surname8}}}{{
+
                          |{{{NameSep|,&#32;}}}{{{Given6}}}
                            #if: {{{Given8|}}}
+
                        }}]]
                            |, {{{Given8}}}
+
                        |{{{Surname6}}}{{
                          }}
+
                          #if: {{{Given6|}}}
                        }}{{
+
                          |{{{NameSep|,&#32;}}}{{{Given6}}}
                          #if:{{{Surname9|}}}
+
                        }}
                          |<nowiki>; </nowiki>&#32;et al.
+
                      }}{{
                        }}
+
                        #if:{{{Surname7|}}}
 +
                        |{{#ifexpr:{{{Trunc|8}}}<7
 +
                          |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
 +
                        |{{
 +
                          #if: {{{Surname8|}}}
 +
                          |{{{AuthorSep|&#059;&#32;}}}
 +
                          |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
 +
                        }}{{
 +
                          #if: {{{Authorlink7|}}}
 +
                          |[[{{{Authorlink7}}} |{{{Surname7}}}{{
 +
                              #if: {{{Given7|}}}
 +
                              |{{{NameSep|,&#32;}}}{{{Given7}}}
 +
                            }}]]
 +
                          |{{{Surname7}}}{{
 +
                              #if: {{{Given7|}}}
 +
                              |{{{NameSep|,&#32;}}}{{{Given7}}}
 +
                            }}
 +
                                    }}{{
 +
                                      #if:{{{Surname8|}}}
 +
                                      |{{#ifexpr:{{{Trunc|8}}}<8
 +
                                          |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
 +
                                          |{{
 +
                                              #if: {{{Surname9|}}}
 +
                                              |{{{AuthorSep|&#059;&#32;}}}
 +
                                              |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
 +
                                            }}{{
 +
                                              #if: {{{Authorlink8|}}}
 +
                                              |[[{{{Authorlink8}}} |{{{Surname8}}}{{
 +
                                                #if: {{{Given8|}}}
 +
                                                |{{{NameSep|,&#32;}}}{{{Given8}}}
 +
                                              }}]]
 +
                                              |{{{Surname8}}}{{
 +
                                                #if: {{{Given8|}}}
 +
                                                |{{{NameSep|,&#32;}}}{{{Given8}}}
 +
                                              }}
 +
                                            }}{{
 +
                                              #if:{{{Surname9|}}}
 +
                                              |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
 +
                                            }}
 +
                                        }}
 +
                                      }}
 +
                                  }}
 +
                                }}
 +
                            }}
 +
                          }}
 +
                      }}
 
                     }}
 
                     }}
 
                   }}
 
                   }}
Line 142: Line 178:
 
         }}
 
         }}
 
       }}
 
       }}
 +
 +
  }}{{
 +
    #if: {{{Coauthors|}}}
 +
    |{{{AuthorSep|&#059;&#32;}}}{{{Coauthors|}}}|
 
   }}{{
 
   }}{{
 
     #if: {{{Date|}}}
 
     #if: {{{Date|}}}
     |&#32;({{{Date}}})
+
     |&#32;({{{Date}}}){{
 +
      #if:{{{YearNote|}}}
 +
    |&#32;[{{{YearNote}}}]
 +
    }}
 
   }}
 
   }}
   |{{
+
   |{{<!-- ============== No author: display editors first == -->
 
     #if: {{{EditorSurname1|}}}
 
     #if: {{{EditorSurname1|}}}
 
     |{{
 
     |{{
Line 161: Line 204:
 
         #if: {{{EditorSurname2|}}}
 
         #if: {{{EditorSurname2|}}}
 
         |{{
 
         |{{
          #if: {{{EditorSurname3|}}}
+
          #if: {{{EditorSurname3|}}}
          |<nowiki>; </nowiki>
+
          |{{{AuthorSep|&#059;&#32;}}}
          |&#32;&amp;&#32;
+
          |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
        }}{{
+
        }}{{
 
           #if: {{{Editorlink2|}}}
 
           #if: {{{Editorlink2|}}}
 
           |[[{{{Editorlink2}}} |{{{EditorSurname2}}}{{
 
           |[[{{{Editorlink2}}} |{{{EditorSurname2}}}{{
Line 176: Line 219:
 
         }}{{
 
         }}{{
 
           #if: {{{EditorSurname3|}}}
 
           #if: {{{EditorSurname3|}}}
           |&#32;&amp; {{
+
           |{{
 +
              #if: {{{EditorSurname4|}}}
 +
              |{{{AuthorSep|&#059;&#32;}}}
 +
              |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
 +
            }}{{
 
               #if: {{{Editorlink3|}}}
 
               #if: {{{Editorlink3|}}}
 
               |[[{{{Editorlink3}}} |{{{EditorSurname3}}}{{
 
               |[[{{{Editorlink3}}} |{{{EditorSurname3}}}{{
Line 188: Line 235:
 
             }}{{
 
             }}{{
 
               #if:{{{EditorSurname4|}}}
 
               #if:{{{EditorSurname4|}}}
               |&#32;et al.
+
               |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
 
             }}
 
             }}
 
         }}
 
         }}
      }}, ed{{#if:{{{EditorSurname2|}}}|s}}.{{
+
      }}, ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}{{
 
         #if: {{{Date|}}}
 
         #if: {{{Date|}}}
         |&#32;({{{Date}}})
+
         |&#32;({{{Date}}}){{
 +
        #if:{{{YearNote|}}}
 +
      |&#32;[{{{YearNote}}}]
 +
      }}
 
       }}
 
       }}
 
   }}
 
   }}
 
}}{{
 
}}{{
 
<!--============  Title of included work  ============-->
 
<!--============  Title of included work  ============-->
   #if: {{{IncludedWorkTitle|}}}
+
   #if: {{{IncludedWorkTitle|}}}{{#if:{{{Periodical|}}}||{{#if:{{{TransItalic|}}}||{{{TransTitle|}}}}}}}
 
   |{{
 
   |{{
     #if:{{{Surname1|}}}{{{EditorSurname1|}}}  
+
     #if:{{{Surname1|}}}{{{EditorSurname1|}}}
     |,&#32;  
+
     |{{{Sep|,}}}&#32;
   }}{{Link
+
   }}{{Citation/make link
 
     | 1={{
 
     | 1={{
 
           #if: {{{IncludedWorkURL|}}}
 
           #if: {{{IncludedWorkURL|}}}
Line 209: Line 259:
 
               #if: {{{URL|}}}
 
               #if: {{{URL|}}}
 
               |{{{URL}}}
 
               |{{{URL}}}
              |{{
+
             }}
                #if: {{{DOI|}}}
 
                |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
 
                  |{{
 
                    #if: {{{PMID|}}}
 
                    | http://www.ncbi.nlm.nih.gov/pubmed/{{urlencode:{{{PMID}}}}}
 
                  }}
 
              }}
 
             }}  
 
 
         }}
 
         }}
 
     | 2={{
 
     | 2={{
 
           #if: {{{Periodical|}}}
 
           #if: {{{Periodical|}}}
           |''{{{IncludedWorkTitle}}}''
+
           |''<nowiki />{{{IncludedWorkTitle}}}<nowiki />''
           |{{{IncludedWorkTitle}}}
+
           |"{{{IncludedWorkTitle|}}}{{
 +
            #if: {{{TransTitle|}}}
 +
            |{{
 +
                #if: {{{IncludedWorkTitle|}}}
 +
                |&#32;
 +
              }}&#91;{{{TransTitle}}}&#93;
 +
          }}"
 
         }}
 
         }}
 
   }}
 
   }}
Line 232: Line 280:
 
     |
 
     |
 
     |{{
 
     |{{
         #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
+
         #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}
        |, written at {{{Place}}}
+
        |{{{Sep|,}}}&#32;written at {{{Place}}}
 
       }}
 
       }}
 
   }}
 
   }}
Line 241: Line 289:
 
   |{{
 
   |{{
 
     #if: {{{Surname1|}}}
 
     #if: {{{Surname1|}}}
     |, {{
+
     |{{{Sep|,}}}&#32;{{
 
         #if: {{{IncludedWorkTitle|}}}
 
         #if: {{{IncludedWorkTitle|}}}
         |in&#32;
+
         |{{#ifeq:{{{Sep|}}}|.|I|i}}n&#32;
 
       }}{{
 
       }}{{
 
         #if: {{{Editorlink1|}}}
 
         #if: {{{Editorlink1|}}}
Line 253: Line 301:
 
           #if: {{{EditorGiven1|}}}
 
           #if: {{{EditorGiven1|}}}
 
           |, {{{EditorGiven1}}}
 
           |, {{{EditorGiven1}}}
         }}
+
         }}}}{{
      }}{{
 
 
         #if: {{{EditorSurname2|}}}
 
         #if: {{{EditorSurname2|}}}
 
         |{{
 
         |{{
          #if: {{{EditorSurname3|}}}
+
          #if: {{{EditorSurname3|}}}
          |<nowiki>; </nowiki>
+
            |{{{AuthorSep|&#059;&#32;}}}
          |&#32;&amp;&#32;
+
            |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
        }}{{
+
          }}{{
 
           #if: {{{Editorlink2|}}}
 
           #if: {{{Editorlink2|}}}
           |[[{{{Editorlink2}}} |{{{EditorSurname2}}}{{
+
           |[[{{{Editorlink2}}}|{{{EditorSurname2}}}{{
 
               #if: {{{EditorGiven2|}}}
 
               #if: {{{EditorGiven2|}}}
 
               |, {{{EditorGiven2}}}
 
               |, {{{EditorGiven2}}}
Line 272: Line 319:
 
         }}{{
 
         }}{{
 
           #if: {{{EditorSurname3|}}}
 
           #if: {{{EditorSurname3|}}}
           |&#32;&amp; {{
+
           |{{
 +
              #if: {{{EditorSurname4|}}}
 +
              |&#059;&#32;
 +
              |{{#if:{{{amp|}}}|&#32;&amp;&#32;|{{{AuthorSep|&#059;&#32;}}}}}
 +
            }}{{
 
               #if: {{{Editorlink3|}}}
 
               #if: {{{Editorlink3|}}}
               |[[{{{Editorlink3}}} |{{{EditorSurname3}}}{{
+
               |[[{{{Editorlink3}}}|{{{EditorSurname3}}}{{
 
                 #if: {{{EditorGiven3|}}}
 
                 #if: {{{EditorGiven3|}}}
 
                 |, {{{EditorGiven3}}}
 
                 |, {{{EditorGiven3}}}
Line 284: Line 335:
 
             }}{{
 
             }}{{
 
               #if:{{{EditorSurname4|}}}
 
               #if:{{{EditorSurname4|}}}
               |&#32;et al.
+
               |&#32;et al{{#ifeq:{{{Sep}}}|.|{{#if:{{{Date|}}}|.}}|.}}
 
             }}
 
             }}
 
         }}
 
         }}
Line 290: Line 341:
 
         #if: {{{IncludedWorkTitle|}}}
 
         #if: {{{IncludedWorkTitle|}}}
 
         |
 
         |
         |, ed{{#if:{{{EditorSurname2|}}}|s}}.
+
         |{{{Sep|,}}}&#32;ed{{#if:{{{EditorSurname2|}}}|s}}{{#ifeq:{{{Sep}}}|.||.}}
 
       }}
 
       }}
 
   }}
 
   }}
Line 297: Line 348:
 
   #if: {{{Periodical|}}}
 
   #if: {{{Periodical|}}}
 
   |{{
 
   |{{
     #if: {{{Surname1|}}}{{{EditorSurname1|}}}
+
     #if: {{{Other|}}}
     |,&#32;
+
     |{{{Sep|,}}}&#32;{{{Other|}}}
  }}{{
 
    #if: {{{Title|}}}
 
    |“{{Link
 
        | 1={{
 
              #if: {{{IncludedWorkTitle|}}}
 
              |{{
 
                #if: {{{IncludedWorkURL|}}}
 
                |{{
 
                    #if: {{{URL|}}}
 
                    |{{{URL}}}
 
                    |{{
 
                      #if: {{{DOI|}}}
 
                      |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
 
                  |{{
 
                    #if: {{{PMID|}}}
 
                    | http://www.ncbi.nlm.nih.gov/pubmed/{{urlencode:{{{PMID}}}}}
 
                  }}
 
                    }}
 
                  }}
 
              }}
 
              |{{
 
                #if: {{{URL|}}}
 
                |{{{URL}}}
 
                |{{
 
                    #if: {{{DOI|}}}
 
                    |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
 
                  |{{
 
                    #if: {{{PMID|}}}
 
                    | http://www.ncbi.nlm.nih.gov/pubmed/{{urlencode:{{{PMID}}}}}
 
                  }}
 
                  }}
 
              }}
 
            }}
 
        | 2={{{Title}}}
 
      }}”,&#32;
 
  }}''{{{Periodical}}}''{{
 
    #if: {{{Series|}}}
 
    |, {{{Series}}}
 
 
   }}{{
 
   }}{{
     #if: {{{PublicationPlace|}}}
+
     #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}
    |{{
+
     |{{{Sep|,}}}&#32;}}{{
        #if: {{{Publisher|}}}
+
     #if: {{{Title|}}}{{{TransTitle|}}}
        |&#32;({{{PublicationPlace}}}<nowiki>: </nowiki>{{{Publisher}}})
+
     |{{Citation/make link
        |&#32;({{{PublicationPlace}}})
 
      }}
 
     |{{
 
        #if: {{{Publisher|}}}
 
        |&#32;({{{Publisher}}})
 
      }}
 
  }}{{
 
     #if: {{{Volume|}}}
 
    |&#32;'''{{{Volume}}}'''{{
 
        #if: {{{Issue|}}}
 
        |&#x00a0;({{{Issue}}})
 
      }}
 
     |{{
 
        #if: {{{Issue|}}}
 
        |&#32;(no. {{{Issue}}})
 
      }}
 
  }}{{
 
    #if: {{{At|}}}
 
    |<nowiki>: </nowiki> {{{At}}}
 
  }}
 
  |{{
 
    <!--============ Anything else with a title, including books ============-->
 
    #if: {{{Title|}}}
 
    |{{
 
        #if: {{{Surname1|}}}{{{EditorSurname1|}}}{{{IncludedWorkTitle|}}}{{{Periodical|}}}
 
        |,&#32;
 
      }}''{{Link
 
 
         | 1={{
 
         | 1={{
 
               #if: {{{IncludedWorkTitle|}}}
 
               #if: {{{IncludedWorkTitle|}}}
Line 376: Line 362:
 
                     #if: {{{URL|}}}
 
                     #if: {{{URL|}}}
 
                     |{{{URL}}}
 
                     |{{{URL}}}
                    |{{
 
                      #if: {{{DOI|}}}
 
                      |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
 
                  |{{
 
                    #if: {{{PMID|}}}
 
                    | http://www.ncbi.nlm.nih.gov/pubmed/{{urlencode:{{{PMID}}}}}
 
                  }}
 
                    }}
 
 
                   }}
 
                   }}
 
               }}
 
               }}
Line 389: Line 367:
 
                 #if: {{{URL|}}}
 
                 #if: {{{URL|}}}
 
                 |{{{URL}}}
 
                 |{{{URL}}}
                |{{
 
                    #if: {{{DOI|}}}
 
                    |http://dx.doi.org/{{urlencode:{{{DOI}}}}}
 
                  |{{
 
                    #if: {{{PMID|}}}
 
                    | http://www.ncbi.nlm.nih.gov/pubmed/{{urlencode:{{{PMID}}}}}
 
                  }}
 
                  }}
 
 
               }}
 
               }}
 
             }}
 
             }}
         | 2={{{Title}}}
+
         | 2="{{{Title}}}{{
      }}''{{
+
          #if: {{{TransTitle|}}}
        #if: {{{Volume|}}}
+
          |{{
        |, vol. {{{Volume}}}
+
            #if: {{{Title|}}}
      }}{{
+
            |&#32;
        #if: {{{Edition|}}}
+
          }}&#91;{{{TransTitle}}}&#93;
        |&#32;({{{Edition}}} ed.)
+
         }}"
      }}{{
 
        #if: {{{Series|}}}
 
        |, {{{Series}}}
 
      }}{{
 
        #if: {{{PublicationPlace|}}}
 
         |, {{{PublicationPlace}}}
 
 
       }}{{
 
       }}{{
         #if: {{{Publisher|}}}
+
         #if: {{{TitleNote|}}}
         |{{
+
         |{{{Sep|,}}}&#32;{{{TitleNote}}}
          #if: {{{PublicationPlace|}}}
 
          |<nowiki>:</nowiki>
 
          |,
 
        }} {{{Publisher}}}
 
 
       }}
 
       }}
 
   }}
 
   }}
 +
}}{{
 +
  #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;{{#if:{{{Periodical|}}}|'''<nowiki />{{{Volume}}}<nowiki />'''|{{{Volume}}}}}{{
 +
        #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}}}
 +
                  }}
 +
                }}
 +
              |{{
 +
                  #if: {{{URL|}}}
 +
                  |{{{URL}}}
 +
                }}
 +
            }}
 +
        | 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) ============-->
 
<!--============ Date (if no author/editor) ============-->
Line 427: Line 477:
 
   |{{
 
   |{{
 
     #if: {{{Date|}}}
 
     #if: {{{Date|}}}
     |, {{{Date}}}
+
     |{{{Sep|,}}}&#32;{{{Date}}}{{
 +
      #if:{{{YearNote|}}}
 +
    |&#32;[{{{YearNote}}}]
 +
    }}
 
   }}
 
   }}
 
}}{{
 
}}{{
Line 439: Line 492:
 
         |{{
 
         |{{
 
           #if: {{{Surname1|}}}
 
           #if: {{{Surname1|}}}
           |, {{{PublicationDate}}}
+
           |{{{Sep|,}}}&#32;{{{PublicationDate}}}
 
           |&#32;(published {{{PublicationDate}}})
 
           |&#32;(published {{{PublicationDate}}})
 
         }}
 
         }}
 
         |{{
 
         |{{
 
           #if: {{{Periodical|}}}
 
           #if: {{{Periodical|}}}
           |, {{{PublicationDate}}}
+
           |{{{Sep|,}}}&#32;{{{PublicationDate}}}
 
           |&#32;(published {{{PublicationDate}}})
 
           |&#32;(published {{{PublicationDate}}})
 
         }}
 
         }}
Line 455: Line 508:
 
   |{{
 
   |{{
 
     #if: {{{At|}}}
 
     #if: {{{At|}}}
     |, {{{At}}}
+
     |{{{Sep|,}}}&#32;{{{At}}}
 
   }}
 
   }}
 
}}{{
 
}}{{
<!--============ Misc. Identifier ============-->
+
<!--============ arXiv ==============-->
   #if: {{{ID|}}}
+
  #if: {{{ARXIV|}}}
   |, {{{ID}}}
+
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=arxiv |input1={{{ARXIV|}}} }}
 +
}}{{
 +
<!--============ ASIN ===============-->
 +
   #if: {{{ASIN|}}}
 +
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=asin |input1={{{ASIN|}}} |input2={{{ASIN-TLD|}}} }}
 +
}}{{
 +
<!--============ BIBCODE ============-->
 +
  #if: {{{BIBCODE|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=bibcode |input1={{{BIBCODE|}}} }}
 +
}}{{
 +
<!--============ DOI ================-->
 +
#if:{{{DOI|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=doi |input1={{{DOI|}}}  |input2={{{DoiBroken|}}} |input3={{{template doc demo|}}}}}
 
}}{{
 
}}{{
<!--============ ISBN ============-->
+
<!--============ ISBN ===============-->
 
   #if: {{{ISBN|}}}
 
   #if: {{{ISBN|}}}
   |, ISBN {{{ISBN}}}
+
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=isbn |input1={{{ISBN|}}} }}
 
}}{{
 
}}{{
<!--============ ISSN ============-->
+
<!--============ ISSN ===============-->
 
   #if: {{{ISSN|}}}
 
   #if: {{{ISSN|}}}
   |, [[International Standard Serial Number|ISSN]] [http://worldcat.org/issn/{{{ISSN}}} {{{ISSN}}}]
+
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=issn |input1={{{ISSN|}}} }}
 +
}}{{
 +
<!--============ JFM ================-->
 +
  #if: {{{JFM|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=jfm |input1={{{JFM|}}} }}
 +
}}{{
 +
<!--============ JSTOR ==============-->
 +
  #if: {{{JSTOR|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=jstor |input1={{{JSTOR|}}} }}
 
}}{{
 
}}{{
<!--============ OCLC ============-->
+
<!--============ LCCN ===============-->
 +
  #if: {{{LCCN|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=lccn |input1={{{LCCN|}}} }}
 +
}}{{
 +
<!--============ MR =================-->
 +
  #if: {{{MR|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=mr |input1={{{MR|}}} }}
 +
}}{{
 +
<!--============ OCLC ===============-->
 
   #if: {{{OCLC|}}}
 
   #if: {{{OCLC|}}}
   |, [[OCLC]] [http://worldcat.org/oclc/{{urlencode:{{{OCLC}}}}} {{{OCLC}}}]
+
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=oclc |input1={{{OCLC|}}} }}
 
}}{{
 
}}{{
<!--============ PMID ============-->  
+
<!--============ OL =================-->
   #if: {{{PMID|}}}  
+
  #if: {{{OL|}}}
   |, PMID {{{PMID}}}  
+
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=ol |input1={{{OL|}}} }}
}}{{  
+
}}{{
<!--============ DOI ============-->
+
<!--============ OSTI ===============-->
   #if: {{{DOI|}}}
+
  #if: {{{OSTI|}}}
   |{{
+
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=osti |input1={{{OSTI|}}} }}
    #if: {{{URL|}}}{{{IncludedWorkURL|}}}
+
}}{{
    |, [[Digital object identifier|doi]]:[http://dx.doi.org/{{urlencode:{{{DOI}}}}} {{{DOI}}}]
+
<!--============ PMC ================-->
     |<span class="printonly">, DOI {{{DOI}}}</span>
+
  #if: {{{PMC|}}}
  }}
+
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=pmc |input1={{{PMC|}}} }}
 +
}}{{
 +
<!--============ PMID ===============-->
 +
   #if: {{{PMID|}}}
 +
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=pmid |input1={{{PMID|}}} }}
 +
}}{{
 +
<!--============ RFC ================-->
 +
  #if: {{{RFC|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=rfc|input1={{{RFC|}}} }}
 +
}}{{
 +
<!--============ SSRN ================-->
 +
  #if: {{{SSRN|}}}
 +
  |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=ssrn |input1={{{SSRN|}}} }}
 +
}}{{
 +
<!--============ ZBL ================-->
 +
   #if: {{{ZBL|}}}
 +
   |{{{Sep|,}}}&#32;{{citation/identifier  |identifier=zbl |input1={{{ZBL|}}} }}
 +
}}{{
 +
<!--============  Misc. Identifier ============-->
 +
  #if: {{{ID|}}}
 +
  |{{{Sep|,}}}&#32;{{{ID}}}
 +
}}{{
 +
<!--============  Archive data, etc ===========-->
 +
#if: {{{Archive|}}}
 +
|{{{Sep|,}}}&#32;{{{Archive}}}[[Category:Pages using deprecated citation archive parameters]]
 +
|{{
 +
  #if:{{{ArchiveURL|}}}{{{ArchiveDate|}}}
 +
  | {{{Sep|,}}}&#32;{{#ifeq: {{{DeadURL|}}} | no
 +
    | {{#if:{{{ArchiveURL|}}}
 +
      |{{Citation/make link|{{{ArchiveURL|}}}|{{#ifeq:{{{Sep}}}|.|A|a}}rchived}}&#32;from the original
 +
      |{{#ifeq:{{{Sep}}}|.|A|a}}rchived
 +
      }}
 +
    | {{#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>{{#ifeq:{{{DeadURL|}}}|no|{{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}||&#32;and <code>&#124;deadurl&#61;no</code>}}}}, you must {{#if:{{{OriginalURL|}}}{{{IncludedWorkURL|}}}| also specify <code>&#124;{{#if:{{{ArchiveURL|}}}|archivedate|archiveurl}}&#61;</code>| {{#ifeq:{{{DeadURL|}}}|no|also|first}} specify <code>&#124;url&#61;</code>}}}}
 +
    }}
 +
  }}
 
}}{{
 
}}{{
 
<!--============ URL and AccessDate ============-->
 
<!--============ URL and AccessDate ============-->
   #if: {{{URL|}}}
+
   #if: {{{URL|}}}{{{IncludedWorkURL|}}}{{#ifeq:{{{DeadURL|}}}|no|{{{ArchiveURL|}}}|}}
 
   |{{
 
   |{{
     #if: {{{Title|}}}{{{IncludedWorkTitle|}}}
+
     #if: {{{Title|}}}{{{IncludedWorkTitle|}}}{{{TransTitle|}}}
     |<span class="printonly">, &lt;{{
+
     |<span class="printonly">{{{Sep|,}}}&#32;{{
 
                                       #if: {{{IncludedWorkURL|}}}
 
                                       #if: {{{IncludedWorkURL|}}}
 
                                       |{{{IncludedWorkURL}}}
 
                                       |{{{IncludedWorkURL}}}
 
                                       |{{{URL}}}
 
                                       |{{{URL}}}
                                     }}&gt;</span>
+
                                     }}</span>
     |, &lt;{{
+
     |{{{Sep|,}}}&#32;{{
 
               #if: {{{IncludedWorkURL|}}}
 
               #if: {{{IncludedWorkURL|}}}
 
               |{{{IncludedWorkURL}}}
 
               |{{{IncludedWorkURL}}}
 
               |{{{URL}}}
 
               |{{{URL}}}
             }}&gt;
+
             }}
 
   }}{{
 
   }}{{
 
     #if: {{{AccessDate|}}}
 
     #if: {{{AccessDate|}}}
     | .&#32;Retrieved on {{date|{{{AccessDate}}}}}
+
     | <span class="reference-accessdate">{{#ifeq:{{{Sep|}}}|,|,&#32;r|.&#32;R}}etrieved {{{AccessDate}}}</span>
  }}
+
    }}
}}</cite><!--
+
}}{{#if:{{{laysummary|}}}
 
+
  |{{{Sep|,}}}&#32;[{{{laysummary}}} Lay summary]{{#if: {{{laysource|}}}|&nbsp;&ndash;&nbsp;''<nowiki />{{{laysource}}}<nowiki />''}}
This is a COinS tag (http://ocoins.info), which allows automated tools to parse the citation information:
+
}}{{#if:{{{laydate|}}}
 
+
  | &#32;({{{laydate}}})
--><span
+
}}{{#if:{{{quote|}}}
    class="Z3988"
+
  |{{{Sep|,}}}&#32;"{{{quote}}}"
    title="ctx_ver=Z39.88-2004&rft_val_fmt={{urlencode:info:ofi/fmt:kev:mtx:}}book{{
+
}}{{{PS|}}}</span>
      #if: {{{Journal|}}}
 
      |&rft.genre=article&rft.atitle={{urlencode:{{{Title|}}}}}&rft.title={{urlencode:{{{Periodical|}}}}}
 
      |{{
 
        #if: {{{IncludedWorkTitle|}}}
 
        |&rft.genre=bookitem&rft.atitle={{urlencode:{{{IncludedWorkTitle|}}}}}
 
        |&rft.genre=book
 
      }}&rft.title={{urlencode:{{{Title|}}}}}
 
    }}{{
 
      #if: {{{Surname1|}}} |&rft.aulast={{urlencode:{{{Surname1}}}}}
 
    }}{{
 
      #if: {{{Given1|}}} |&rft.aufirst={{urlencode:{{{Given1}}}}}
 
    }}{{
 
      #if: {{{Date|}}} |&rft.date={{urlencode:{{{Date}}}}}
 
    }}{{
 
      #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: {{{Place|}}} |&rft.place={{urlencode:{{{Place}}}}}
 
    }}{{
 
      #if: {{{PublicationPlace|}}} |&rft.place={{urlencode:{{{PublicationPlace}}}}}
 
    }}{{
 
      #if: {{{Publisher|}}} |&rft.pub={{urlencode:{{{Publisher}}}}}
 
    }}{{
 
      #if: {{{DOI|}}} |&rft_id=info:doi/{{urlencode:{{{DOI}}}}}
 
    }}{{
 
      #if: {{{PMID|}}} |&rft_id=info:pmid/{{urlencode:{{{PMID}}}}}
 
    }}{{
 
      #if: {{{ISBN|}}} |&rft.isbn={{urlencode:{{{ISBN}}}}}
 
    }}{{
 
      #if: {{{ISSN|}}} |&rft.issn={{urlencode:{{{ISSN}}}}}
 
    }}{{
 
      #if: {{{URL|{{{IncludedWorkURL|}}}}}} |&rft_id={{urlencode:{{{URL|{{{IncludedWorkURL|}}}}}}}}
 
    }}"><span style="display: none;">&nbsp;</span></span>
 

Revision as of 11:40, 27 March 2013