Template:Harvard citation: Difference between revisions

From Vigyanwiki
Template>Ligulem
(if -> qif - qif is the server friendlier variant of if)
m (57 revisions imported from alpha:Template:Harvard_citation)
 
(46 intermediate revisions by 25 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 10:05, 14 December 2022

Template documentation