Template:Cite book: Difference between revisions

From All Skies Encyclopaedia
imported>Gracefool
(updated from devel)
imported>Ligulem
(Reverted. We need backwards compatibility with book reference. Please discuss on talk before making such major changes compared to book reference. Thanks.)
Line 1: Line 1:
<cite class="book" style="font-style:normal">{{qif
<cite style="font-style:normal" {{qif
|test={{{author|{{{authorlast|}}}}}}
|test={{{ref}}}
|then={{qif
|then={{qif
|test={{{authorlink|}}}
|test={{booleq
|then={{wikilink
|{{{ref}}}
|1={{{authorlink}}}
|none
|2={{qif
}}
|test={{{authorlast|}}}
|then=
|then={{{authorlast}}}{{qif
|else=id="{{{ref}}}"
|test={{{authorfirst|}}}
}}
|else={{qif
|then=, {{{authorfirst}}}
}}
|test={{booland
|else={{{author}}}
|1={{{last|}}}
}}
|2={{{year|}}}
}}
}}
|then=id="Reference-{{{last}}}-{{{year}}}"
|else={{qif
}}
|test={{{authorlast|}}}
}}
|then={{{authorlast}}}{{qif
}}>{{qif
|test={{{authorfirst|}}}
|then=, {{{authorfirst}}}
|test={{{authorlink|}}}
|then={{wikilink
|1={{{authorlink}}}
|2={{qif
|test={{{author|}}}
|then={{{author}}}
|else={{{last|}}}{{qif
|test={{{first|}}}
|then=, {{{first}}}
}}
}}
|else={{{author}}}
}}
}}
}}
}}
}}{{qif
|else={{qif
|test={{{author|{{{authorlast|}}}}}}
|test={{{author|}}}
|then={{qif
|then={{{author}}}
|test={{{author2|}}}
|else={{{last|}}}{{qif
|then={{qif
|test={{{first|}}}
|test={{{author3|}}}
|then=, {{{first}}}
|then=,&#32;
|else=&#32;&amp;&#32;
}}
}}
}}
}}
}}{{qif
}}{{qif
|test={{{author|{{{authorlast|}}}}}}
|test={{{coauthors|}}}
|then={{qif
|then=<nowiki>,</nowiki> {{{coauthors}}}
|test={{{author2link|}}}
|then={{wikilink
|1={{{author2link}}}
|2={{qif
|test={{{author2|}}}
|then={{{author2}}}
}}
}}
|else={{{author2|}}}
}}{{qif
|test={{{author2|}}}
|then={{qif
|test={{{author3|}}}
|then={{qif
|test={{{author4|}}}
|then=,&#32;
|else=&#32;&amp;&#32;
}}
}}
}}{{qif
|test={{{author3link|}}}
|then={{wikilink
|1={{{author3link}}}
|2={{qif
|test={{{author3|}}}
|then={{{author3}}}
}}
}}
|else={{{author3|}}}
}}{{qif
|test={{{author2|}}}
|then={{qif
|test={{{author3|}}}
|then={{qif
|test={{{author4|}}}
|then={{qif
|test={{{author5|}}}
|then=,&#32;
|else=&#32;&amp;&#32;
}}
}}
}}
}}{{qif
|test={{{author4link|}}}
|then={{wikilink
|1={{{author4link}}}
|2={{qif
|test={{{author4|}}}
|then={{{author4}}}
}}
}}
|else={{{author4|}}}
}}{{qif
|test={{{author2|}}}
|then={{qif
|test={{{author3|}}}
|then={{qif
|test={{{author4|}}}
|then={{qif
|test={{{author5|}}}
|then=&#32;&amp;&#32;
}}
}}
}}
}}{{qif
|test={{{author5link|}}}
|then={{wikilink
|1={{{author5link}}}
|2={{qif
|test={{{author5|}}}
|then={{{author5}}}
}}
}}
|else={{{author5|}}}
}}
}}{{qif
}}{{qif
|test={{{date|}}}
|test={{{date|}}}
Line 123: Line 53:
}}
}}
}}{{qif
}}{{qif
|test={{{authorlast|{{{year|}}}}}}
|test={{{author|{{{last|{{{year|}}}}}}}}}
|then=.
|then=.
}}{{qif
}}{{qif

Revision as of 15:18, 16 February 2006