Template:Cite book: Difference between revisions

From All Skies Encyclopaedia
imported>Ligulem
(copied Template:Book reference as base version for comparing)
imported>Ligulem
(reverted to Gracefool's last revision)
Line 1: Line 1:
<cite style="font-style:normal" {{qif
<cite style="font-style:normal" {{qif
|test={{{Ref|}}}
|test={{{ref}}}
|then={{qif
|then={{qif
|test={{booleq
|test={{booleq
|{{{Ref}}}
|{{{ref}}}
|none
|none
}}
}}
|then=
|then=
|else=id="{{{Ref}}}"
|else=id="{{{ref}}}"
}}
}}
|else={{qif
|else={{qif
|test={{booland
|test={{booland
|1={{{Last|}}}
|1={{{last|}}}
|2={{{Year|}}}
|2={{{year|}}}
}}
}}
|then=id="Reference-{{{Last}}}-{{{Year}}}"
|then=id="Reference-{{{last}}}-{{{year}}}"
}}
}}
}}
}}
}}>{{qif
}}>{{qif
|test={{{Authorlink|}}}
|test={{{authorlink|}}}
|then={{wikilink
|then={{wikilink
|1={{{Authorlink}}}
|1={{{authorlink}}}
|2={{qif
|2={{qif
|test={{{Author|}}}
|test={{{author|}}}
|then={{{Author}}}
|then={{{author}}}
|else={{{Last|}}}{{qif
|else={{{last|}}}{{qif
|test={{{First|}}}
|test={{{first|}}}
|then=, {{{First}}}
|then=, {{{first}}}
}}
}}
}}
}}
}}
}}
|else={{qif
|else={{qif
|test={{{Author|}}}
|test={{{author|}}}
|then={{{Author}}}
|then={{{author}}}
|else={{{Last|}}}{{qif
|else={{{last|}}}{{qif
|test={{{First|}}}
|test={{{first|}}}
|then=, {{{First}}}
|then=, {{{first}}}
}}
}}
}}
}}
}}{{qif
}}{{qif
|test={{{Coauthors|}}}
|test={{{coauthors|}}}
|then=<nowiki>,</nowiki> {{{Coauthors}}}
|then=<nowiki>,</nowiki> {{{coauthors}}}
}}{{qif
}}{{qif
|test={{{Date|}}}
|test={{{date|}}}
|then=&#32;({{{Date}}})
|then=&#32;({{{date}}})
|else={{qif
|else={{qif
|test={{{Year|}}}
|test={{{year|}}}
|then={{qif
|then={{qif
|test={{{Month|}}}
|test={{{month|}}}
|then=&#32;({{{Month}}} {{{Year}}})
|then=&#32;({{{month}}} {{{year}}})
|else=&#32;({{{Year}}})
|else=&#32;({{{year}}})
}}
}}
}}
}}
}}{{qif
}}{{qif
|test={{{Author|{{{Last|{{{Year|}}}}}}}}}
|test={{{author|{{{last|{{{year|}}}}}}}}}
|then=.
|then=.
}}{{qif
}}{{qif
|test={{{Chapter|}}}
|test={{{chapter|}}}
|then=&#32;"{{qif
|then=&#32;"{{qif
|test={{{ChapterURL|}}}
|test={{{chapterurl|}}}
|then=[{{{ChapterURL}}} {{{Chapter}}}]
|then=[{{{chapterurl}}} {{{chapter}}}]
|else={{{Chapter}}}
|else={{{chapter}}}
}}"}}{{qif
}}"}}{{qif
|test={{{Editor|}}}
|test={{{editor|}}}
|then=&#32;{{{Editor}}}
|then=&#32;{{{editor}}}
}} ''{{qif
}} ''{{qif
|test={{{URL|}}}
|test={{{link|}}}
|then=[{{{URL}}} {{{Title}}}]
|then={{wikilink
|else={{{Title}}}
|1={{{link}}}
|2={{{title}}}
}}
|else={{qif
|test={{{url|}}}
|then=[{{{url}}} {{{title}}}]
|else={{{title}}}
}}
}}''{{qif
}}''{{qif
|test={{{Others|}}}
|test={{{link|}}}
|then=, {{{Others}}}
|then=
|else={{qif
|test={{{format|}}}
|then=&#32;({{{format}}})
}}
}}{{qif
}}{{qif
|test={{{Edition|}}}
|test={{{others|}}}
|then=, {{{Edition}}}
|then=, {{{others}}}
}}{{qif
}}{{qif
|test={{{Pages|}}}
|test={{{edition|}}}
|then=, {{{Pages}}}
|then=, {{{edition}}}
}}{{qif
}}{{qif
|test={{{Publisher|}}}
|test={{{pages|}}}
|then=, {{{pages}}}
}}{{qif
|test={{{publisher|}}}
|then=, {{qif
|then=, {{qif
|test={{{Location|}}}
|test={{{location|}}}
|then={{{Location}}}:&#32;
|then={{{location}}}:&#32;
}}{{{Publisher}}}
}}{{{publisher}}}
}}{{qif
}}{{qif
|test={{{ID|}}}
|test={{{id|}}}
|then=. {{{ID}}}
|then=. {{{id}}}
}}{{qif
|test={{{link|}}}
|then=
|else={{qif
|test={{{accessdate|}}}
|then=. URL accessed {{{accessdate}}}
|else={{qif
|test={{{accessyear|}}}
|then=. URL accessed {{qif
|test={{{accessmonth|}}}
|then=on {{{accessmonth}}} {{{accessyear}}}
|else=during {{{accessyear}}}
}}
}}
}}
}}.</cite><noinclude>
}}.</cite><noinclude>


This template replaces the deprecated {{tl|book reference}}.
{{esoteric}}
{{esoteric}}
[[Category:Citation templates|{{PAGENAME}}]]
[[Category:Citation templates|{{PAGENAME}}]]

Revision as of 08:55, 16 February 2006