Template:Harvard citation: Difference between revisions

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

Revision as of 18:36, 24 April 2006