Template:Harvard citation: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Ligulem
if -> qif - qif is the server friendlier variant of if
Ookami (talk | contribs)
m 57 revisions imported
 
(44 intermediate revisions by 23 users not shown)
Line 1: Line 1:
({{qif
<includeonly>{{#invoke:Footnotes|harvard_citation
  |test={{booleq
|bracket_left= (
      |{{{Ref|}}}
|bracket_right = )
      |none
}}</includeonly><noinclude>
    }}
{{documentation}}
  |then={{qif
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here -->
      |test={{{5|}}}
      |then={{{1}}} et al. {{{5}}}
      |else={{qif
          |test={{{4|}}}
          |then={{{1}}}, {{{2}}} &amp; {{{3}}} {{{4}}}
          |else={{qif
            |test={{{3|}}}
            |then={{{1}}} &amp; {{{2}}} {{{3}}}
            |else={{{1}}} {{{2}}}
          }}
        }}
    }}
  |else={{wikilink
    |1={{qif
        |test={{{Ref|}}}
        |then=<nowiki>#</nowiki>{{{Ref}}}
        |else=<nowiki>#</nowiki>CITEREF{{{1}}}{{{2}}}{{{3|}}}{{{4|}}}{{{5|}}}
      }}
    |2={{qif
          |test={{{5|}}}
          |then={{{1}}} et al. {{{5}}}
          |else={{qif
            |test={{{4|}}}
            |then={{{1}}}, {{{2}}} &amp; {{{3}}} {{{4}}}
            |else={{qif
                |test={{{3|}}}
                |then={{{1}}} &amp; {{{2}}} {{{3}}}
                |else={{{1}}} {{{2}}}
              }}
          }}
        }}
  }}
}}{{qif
  |test={{{loc|}}}
  |then=, {{{loc}}}
  |else={{qif
    |test={{{p|}}}
    |then=, p. {{{p}}}
    |else={{qif
        |test={{{pp|}}}
        |then=, pp. {{{pp}}}
      }}
  }}
}})<noinclude>
{{esoteric}}
[[Category:Citation templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 13:28, 3 September 2020