Template:Citation: Difference between revisions

From Climate Change AI Wiki
Content added Content deleted
(cat)
(if -> qif - qif is the server friendlier variant of if)
Line 1: Line 1:
'''FOR TESTING ONLY'''
'''FOR TESTING ONLY'''
<cite style="font-style:normal" {{if
<cite style="font-style:normal" {{qif
|1={{{Ref|}}}
|test={{{Ref|}}}
|2={{if
|then={{qif
|1={{booleq
|test={{booleq
|{{{Ref}}}
|{{{Ref}}}
|none
|none
}}
}}
|2=
|then=
|3=id="{{{Ref}}}"
|else=id="{{{Ref}}}"
}}
}}
|3={{if
|else={{qif
|1={{{Surname|{{{Last|{{{Surname1|{{{Last1}}}}}}}}}}}}
|test={{{Surname|{{{Last|{{{Surname1|{{{Last1}}}}}}}}}}}}
|2=id="CITEREF{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{{Surname2|{{{Last2|}}}}}}{{{Surname3|{{{Last3|}}}}}}{{{Surname4|{{{Last4|}}}}}}{{{Year}}}"
|then=id="CITEREF{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{{Surname2|{{{Last2|}}}}}}{{{Surname3|{{{Last3|}}}}}}{{{Surname4|{{{Last4|}}}}}}{{{Year}}}"
}}
}}
}}>{{if
}}>{{qif
|{{{Surname|{{{Last|{{{Surname1|{{{Last1|{{{Author|{{{Author1}}}}}}}}}}}}}}}}}}
|test={{{Surname|{{{Last|{{{Surname1|{{{Last1|{{{Author|{{{Author1}}}}}}}}}}}}}}}}}}
|{{if
|then={{qif
|{{{Authorlink|{{{Authorlink1|}}}}}}
|test={{{Authorlink|{{{Authorlink1|}}}}}}
|{{wikilink
|then={{wikilink
|{{{Authorlink1|{{{Authorlink}}}}}}
|1={{{Authorlink1|{{{Authorlink}}}}}}
|{{{Author1|{{{Author
|2={{{Author1|{{{Author
|{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{if
|{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{qif
|{{{Given|{{{First|{{{Given1|{{{First1|{{{Initials|{{{Initials1|}}}}}}}}}}}}}}}}}}
|test={{{Given|{{{First|{{{Given1|{{{First1|{{{Initials|{{{Initials1|}}}}}}}}}}}}}}}}}}
|, {{{Initials1|{{{Given1|{{{First1|{{{Initials|{{{Given|{{{First}}}}}}}}}}}}}}}}}}
|then=, {{{Initials1|{{{Given1|{{{First1|{{{Initials|{{{Given|{{{First}}}}}}}}}}}}}}}}}}
}}
}}
}}}}}}
}}}}}}
}}
}}
|{{{Author1|{{{Author
|else={{{Author1|{{{Author
|{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{if
|{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{qif
|{{{Given|{{{First|{{{Given1|{{{First1|{{{Initials|{{{Initials1}}}}}}}}}}}}}}}}}}
|test={{{Given|{{{First|{{{Given1|{{{First1|{{{Initials|{{{Initials1}}}}}}}}}}}}}}}}}}
|, {{{Initials1|{{{Given1|{{{First1|{{{Initials|{{{Given|{{{First}}}}}}}}}}}}}}}}}}
|then=, {{{Initials1|{{{Given1|{{{First1|{{{Initials|{{{Given|{{{First}}}}}}}}}}}}}}}}}}
}}
}}
}}}}}}
}}}}}}
}}{{if
}}{{qif
|{{{Surname2|{{{Last2|{{{Author2|}}}}}}}}}
|test={{{Surname2|{{{Last2|{{{Author2|}}}}}}}}}
|{{if
|then={{qif
|{{{Author3|{{{Surname3|{{{Last3|}}}}}}}}}
|test={{{Author3|{{{Surname3|{{{Last3|}}}}}}}}}
|,&#32;
|then=,&#32;
|&#32;&amp;&#32;
|else=&#32;&amp;&#32;
}}{{if
}}{{qif
|{{{Authorlink2|}}}
|test={{{Authorlink2|}}}
|{{wikilink
|then={{wikilink
|{{{Authorlink2}}}
|1={{{Authorlink2}}}
|{{{Author2|{{{Surname2|{{{Last2|}}}}}}{{if|{{{Given2|{{{First2|{{{Initials2|}}}}}}}}}|, {{{Initials2|{{{Given2|{{{First2}}}}}}}}}}}}}}
|2={{{Author2|{{{Surname2|{{{Last2|}}}}}}{{qif|test={{{Given2|{{{First2|{{{Initials2|}}}}}}}}}|then=, {{{Initials2|{{{Given2|{{{First2}}}}}}}}}}}}}}
}}
}}
|{{{Author2|{{{Surname2|{{{Last2|}}}}}}{{if|{{{Given2|{{{First2|{{{Initials2|}}}}}}}}}|, {{{Initials2|{{{Given2|{{{First2}}}}}}}}}}}}}}
|else={{{Author2|{{{Surname2|{{{Last2|}}}}}}{{qif|test={{{Given2|{{{First2|{{{Initials2|}}}}}}}}}|then=, {{{Initials2|{{{Given2|{{{First2}}}}}}}}}}}}}}
}}{{if
}}{{qif
|{{{Surname3|{{{Last3|{{{Author3|}}}}}}}}}
|test={{{Surname3|{{{Last3|{{{Author3|}}}}}}}}}
|&#32;&amp; {{if
|then=&#32;&amp; {{qif
|{{{Authorlink3|}}}
|test={{{Authorlink3|}}}
|{{wikilink
|then={{wikilink
|{{{Authorlink3}}}
|1={{{Authorlink3}}}
|{{{Author3|{{{Surname3|{{{Last3|}}}}}}{{if|{{{Given3|{{{First3|{{{Initials3|}}}}}}}}}|, {{{Initials3|{{{Given3|{{{First3}}}}}}}}}}}}}}
|2={{{Author3|{{{Surname3|{{{Last3|}}}}}}{{qif|test={{{Given3|{{{First3|{{{Initials3|}}}}}}}}}|then=, {{{Initials3|{{{Given3|{{{First3}}}}}}}}}}}}}}
}}
}}
|{{{Author3|{{{Surname3|{{{Last3|}}}}}}{{if|{{{Given3|{{{First3|{{{Initials3|}}}}}}}}}|, {{{Initials3|{{{Given3|{{{First3}}}}}}}}}}}}}}
|else={{{Author3|{{{Surname3|{{{Last3|}}}}}}{{qif|test={{{Given3|{{{First3|{{{Initials3|}}}}}}}}}|then=, {{{Initials3|{{{Given3|{{{First3}}}}}}}}}}}}}}
}}{{if
}}{{qif
|{{{Surname4|{{{Last4|{{{Author4|}}}}}}}}}
|test={{{Surname4|{{{Last4|{{{Author4|}}}}}}}}}
|, et al.
|then=, et al.
}}
}}
}}
}}
}}
}}
|…
|…
}} ({{{Year}}}){{if
}} ({{{Year}}}){{qif
|1={{{Journal|{{{Periodical|}}}}}}
|test={{{Journal|{{{Periodical|}}}}}}
|2={{if
|then={{qif
|1={{{Title|}}}
|test={{{Title|}}}
|2=, {{Link|1={{{URL|}}}|2="{{{Title}}}"}}
|then=, {{Link|1={{{URL|}}}|2="{{{Title}}}"}}
}}, ''{{{Journal|{{{Periodical}}}}}}''{{if
}}, ''{{{Journal|{{{Periodical}}}}}}''{{qif
|{{{Volume|}}}
|test={{{Volume|}}}
|, vol. {{{Volume}}}
|then=, vol. {{{Volume}}}
}}{{if
}}{{qif
|{{{Issue|{{{Number|}}}}}}
|test={{{Issue|{{{Number|}}}}}}
|, no. {{{Number|{{{Issue}}}}}}
|then=, no. {{{Number|{{{Issue}}}}}}
}}{{if
}}{{qif
|{{{Pages|}}}
|test={{{Pages|}}}
|, pp. {{{Pages}}}
|then=, pp. {{{Pages}}}
|{{if
|else={{qif
|{{{Page|}}}
|test={{{Page|}}}
|, p. {{{Page}}}
|then=, p. {{{Page}}}
}}
}}
}}
}}
|3={{if
|else={{qif
|1={{{Chapter|{{{Contribution|}}}}}}
|test={{{Chapter|{{{Contribution|}}}}}}
|2=, {{Link|1={{{URL|}}}|2="{{{Chapter|{{{Contribution}}}}}}"}} in {{if
|then=, {{Link|1={{{URL|}}}|2="{{{Chapter|{{{Contribution}}}}}}"}} in {{qif
|{{{Editor|}}}
|test={{{Editor|}}}
|{{{Editor}}}, ed.,&#32;
|then={{{Editor}}}, ed.,&#32;
}}''{{{Title}}}''{{if
}}''{{{Title}}}''{{qif
|{{{Edition|}}}
|test={{{Edition|}}}
|&#32;({{{Edition}}} ed.)
|then=&#32;({{{Edition}}} ed.)
}}{{if
}}{{qif
|{{{Publisher|}}}
|test={{{Publisher|}}}
|, {{{Publisher}}}
|then=, {{{Publisher}}}
}}{{if
}}{{qif
|{{{Place|}}}
|test={{{Place|}}}
|, {{{Place}}}
|then=, {{{Place}}}
}}{{if
}}{{qif
|{{{ISBN|{{{ID|}}}}}}
|test={{{ISBN|{{{ID|}}}}}}
|, {{{ID|ISBN {{{ISBN}}}}}}
|then=, {{{ID|ISBN {{{ISBN}}}}}}
}}{{if
}}{{qif
|{{{Pages|}}}
|test={{{Pages|}}}
|, pp. {{{Pages}}}
|then=, pp. {{{Pages}}}
|{{if
|else={{qif
|{{{Page|}}}
|test={{{Page|}}}
|, p. {{{Page}}}
|then=, p. {{{Page}}}
}}
}}
}}
}}
|3={{if
|else={{qif
|1={{{Title|}}}
|test={{{Title|}}}
|2=, {{Link|1={{{URL|}}}|2=''{{{Title}}}''}}
|then=, {{Link|1={{{URL|}}}|2=''{{{Title}}}''}}
}}{{if
}}{{qif
|{{{Edition|}}}
|test={{{Edition|}}}
|&#32;({{{Edition}}} ed.)
|then=&#32;({{{Edition}}} ed.)
}}{{if
}}{{qif
|{{{Publisher|}}}
|test={{{Publisher|}}}
|, {{{Publisher}}}
|then=, {{{Publisher}}}
}}{{if
}}{{qif
|{{{Place|}}}
|test={{{Place|}}}
|, {{{Place}}}
|then=, {{{Place}}}
}}{{if
}}{{qif
|{{{ISBN|{{{ID|}}}}}}
|test={{{ISBN|{{{ID|}}}}}}
|, {{{ID|ISBN {{{ISBN}}}}}}
|then=, {{{ID|ISBN {{{ISBN}}}}}}
}}
}}
}}
}}
}}{{if
}}{{qif
|{{{Access-date|}}}
|test={{{Access-date|}}}
|&#32;<nowiki>[</nowiki>{{{Access-date}}}<nowiki>]</nowiki>
|then=&#32;<nowiki>[</nowiki>{{{Access-date}}}<nowiki>]</nowiki>
}}</cite><noinclude>{{esoteric}}[[Category:Citation templates|{{PAGENAME}}]]
}}</cite><noinclude>
{{esoteric}}
[[Category:Citation templates|{{PAGENAME}}]]
'''This template is subject to periodic changes and breaking, and for now should be used only by testers and developers who can correct problems when they appear.'''
'''This template is subject to periodic changes and breaking, and for now should be used only by testers and developers who can correct problems when they appear.'''
</noinclude>
</noinclude>

Revision as of 19:05, 14 December 2005

FOR TESTING ONLY Template:Qif ({{{Year}}})Template:QifTemplate:Qif Template:Esoteric This template is subject to periodic changes and breaking, and for now should be used only by testers and developers who can correct problems when they appear.