Difference between revisions of "Template:Citation/core"

From Linguistic Team International Wiki
(Created page with "<span class="citation {{{Citation class|{{{Citation type|}}}}}}"{{ #switch:{{{Ref|}}} ||none = |#default = id="{{anchorencode:{{{Ref}}}}}" |harv = {{#if:{{{Surname1|}}}{{{...")
 
m
 
Line 1: Line 1:
<
+
<span class="citation {{{Citation class|{{{Citation type|}}}}}}"
 +
{{
 +
  #switch:{{{Ref|}}}
 +
  ||none =
 +
  |#default = id="{{anchorencode:{{{Ref}}}}}"
 +
  |harv = {{#if:{{{Surname1|}}}{{{EditorSurname1|}}}
 +
    |id="CITEREF{{anchorencode:{{#if:{{{Surname1|}}}
 +
      |{{{Surname1}}}{{{Surname2|}}}{{{Surname3|}}}{{{Surname4|}}}
 +
      |{{{EditorSurname1|}}}{{{EditorSurname2|}}}{{{EditorSurname3|}}}{{{EditorSurname4|}}}
 +
    }}{{{Year|{{{Date|}}}}}}}}"
 +
  }}
 +
}}>{{
 +
<!--============  Author or editor and date  ============-->
 +
  #if:{{{Surname1|}}}
 +
  |{{
 +
    #if: {{{AuthorMask|}}}
 +
    |{{
 +
        #iferror: {{ #expr: 1*{{{AuthorMask}}} }}
 +
        |{{{AuthorMask}}}
 +
        |<del>{{loop|{{{AuthorMask}}}|2=&emsp;}}</del>
 +
      }}
 +
    |{{
 +
        #if: {{{Authorlink1|}}}
 +
        |[[{{{Authorlink1}}} |{{{Surname1}}}{{
 +
          #if: {{{Given1|}}}
 +
          |{{{NameSep|,&#32;}}}{{{Given1}}}
 +
        }}]]
 +
        |{{{Surname1}}}{{
 +
          #if: {{{Given1|}}}
 +
          |{{{NameSep|,&#32;}}}{{{Given1}}}
 +
        }}
 +
      }}
 +
  }}{{
 +
    #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|}}}
 +
 

Latest revision as of 16:28, 10 August 2015

 

[create] Template-info.svg Template documentation