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
meta>Ligulem
qif → #if: (see m:ParserFunctions) (deferring call to Harvard citation 2 as a workaround for a bug in ParserFunctions)
Line 1: Line 1:
({{qif
{{Harvard citation 2
  |test={{booleq
|x1={{{1|}}}
      |{{{Ref|}}}
|x2={{{2|}}}
      |none
|x3={{{3|}}}
    }}
|x4={{{4|}}}
  |then={{qif
|x5={{{5|}}}
      |test={{{5|}}}
|p={{{p|}}}
      |then={{{1}}} et al. {{{5}}}
|pp={{{pp|}}}
      |else={{qif
|Ref={{{Ref|}}}
          |test={{{4|}}}
|loc={{{loc|}}}
          |then={{{1}}}, {{{2}}} & {{{3}}} {{{4}}}
}}<noinclude>
          |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}}
{{esoteric}}
[[Category:Citation templates|{{PAGENAME}}]]
[[Category:Citation templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 18:36, 24 April 2006