Template:Harvard citation: Difference between revisions

From All Skies Encyclopaedia
imported>Ligulem
(qif → #if: (see m:ParserFunctions) (deferring call to Harvard citation 2 as a workaround for a bug in ParserFunctions))
imported>Ligulem
(simpler workaround for bugzilla:5678: use empty defaults everywhere. {{{1}}} → {{{1|}}} and so on)
Line 1: Line 1:
({{#ifeq:{{{Ref|}}}|none
{{Harvard citation 2
|x1={{{1|}}}
|{{#if:{{{5|}}}
|x2={{{2|}}}
|{{{1|}}} et al. {{{5|}}}
|x3={{{3|}}}
|{{#if:{{{4|}}}
|{{{1|}}}, {{{2|}}} & {{{3|}}} {{{4|}}}
|x4={{{4|}}}
|x5={{{5|}}}
|{{#if:{{{3|}}}
|{{{1|}}} & {{{2|}}} {{{3|}}}
|p={{{p|}}}
|pp={{{pp|}}}
|{{{1|}}} {{{2|}}}
}}
|Ref={{{Ref|}}}
}}
|loc={{{loc|}}}
}}
}}<noinclude>
|{{wikilink
|1={{#if:{{{Ref|}}}
|<nowiki>#</nowiki>{{{Ref}}}
|<nowiki>#</nowiki>CITEREF{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}
}}
|2={{#if:{{{5|}}}
|{{{1|}}} et al. {{{5|}}}
|{{#if:{{{4|}}}
|{{{1|}}}, {{{2|}}} &amp; {{{3|}}} {{{4|}}}
|{{#if:{{{3|}}}
|{{{1|}}} &amp; {{{2|}}} {{{3|}}}
|{{{1|}}} {{{2|}}}
}}
}}
}}
}}
}}{{#if:{{{loc|}}}
|, {{{loc|}}}
|{{#if:{{{p|}}}
|, p. {{{p|}}}
|{{#if:{{{pp|}}}
|, pp. {{{pp|}}}
}}
}}
}})<noinclude>
{{esoteric}}
{{esoteric}}
[[Category:Citation templates|{{PAGENAME}}]]
[[Category:Citation templates|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 12:12, 4 May 2006