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={{{ |
|test={{{ref}}} |
||
|then={{qif |
|then={{qif |
||
|test={{booleq |
|test={{booleq |
||
|{{{ |
|{{{ref}}} |
||
|none |
|none |
||
}} |
}} |
||
|then= |
|then= |
||
|else=id="{{{ |
|else=id="{{{ref}}}" |
||
}} |
}} |
||
|else={{qif |
|else={{qif |
||
|test={{booland |
|test={{booland |
||
|1={{{ |
|1={{{last|}}} |
||
|2={{{ |
|2={{{year|}}} |
||
}} |
}} |
||
|then=id="Reference-{{{ |
|then=id="Reference-{{{last}}}-{{{year}}}" |
||
}} |
}} |
||
}} |
}} |
||
}}>{{qif |
}}>{{qif |
||
|test={{{ |
|test={{{authorlink|}}} |
||
|then={{wikilink |
|then={{wikilink |
||
|1={{{ |
|1={{{authorlink}}} |
||
|2={{qif |
|2={{qif |
||
|test={{{ |
|test={{{author|}}} |
||
|then={{{ |
|then={{{author}}} |
||
|else={{{ |
|else={{{last|}}}{{qif |
||
|test={{{ |
|test={{{first|}}} |
||
|then=, {{{ |
|then=, {{{first}}} |
||
}} |
}} |
||
}} |
}} |
||
}} |
}} |
||
|else={{qif |
|else={{qif |
||
|test={{{ |
|test={{{author|}}} |
||
|then={{{ |
|then={{{author}}} |
||
|else={{{ |
|else={{{last|}}}{{qif |
||
|test={{{ |
|test={{{first|}}} |
||
|then=, {{{ |
|then=, {{{first}}} |
||
}} |
}} |
||
}} |
}} |
||
}}{{qif |
}}{{qif |
||
|test={{{ |
|test={{{coauthors|}}} |
||
|then=<nowiki>,</nowiki> {{{ |
|then=<nowiki>,</nowiki> {{{coauthors}}} |
||
}}{{qif |
}}{{qif |
||
|test={{{ |
|test={{{date|}}} |
||
|then= ({{{ |
|then= ({{{date}}}) |
||
|else={{qif |
|else={{qif |
||
|test={{{ |
|test={{{year|}}} |
||
|then={{qif |
|then={{qif |
||
|test={{{ |
|test={{{month|}}} |
||
|then= ({{{ |
|then= ({{{month}}} {{{year}}}) |
||
|else= ({{{ |
|else= ({{{year}}}) |
||
}} |
}} |
||
}} |
}} |
||
}}{{qif |
}}{{qif |
||
|test={{{ |
|test={{{author|{{{last|{{{year|}}}}}}}}} |
||
|then=. |
|then=. |
||
}}{{qif |
}}{{qif |
||
|test={{{ |
|test={{{chapter|}}} |
||
|then= "{{qif |
|then= "{{qif |
||
|test={{{ |
|test={{{chapterurl|}}} |
||
|then=[{{{ |
|then=[{{{chapterurl}}} {{{chapter}}}] |
||
|else={{{ |
|else={{{chapter}}} |
||
}}"}}{{qif |
}}"}}{{qif |
||
|test={{{ |
|test={{{editor|}}} |
||
|then= {{{ |
|then= {{{editor}}} |
||
}} ''{{qif |
}} ''{{qif |
||
|test={{{ |
|test={{{link|}}} |
||
|then= |
|then={{wikilink |
||
| |
|1={{{link}}} |
||
|2={{{title}}} |
|||
}} |
|||
|else={{qif |
|||
|test={{{url|}}} |
|||
|then=[{{{url}}} {{{title}}}] |
|||
|else={{{title}}} |
|||
}} |
|||
}}''{{qif |
}}''{{qif |
||
|test={{{ |
|test={{{link|}}} |
||
|then= |
|then= |
||
|else={{qif |
|||
|test={{{format|}}} |
|||
|then= ({{{format}}}) |
|||
}} |
|||
}}{{qif |
}}{{qif |
||
|test={{{ |
|test={{{others|}}} |
||
|then=, {{{ |
|then=, {{{others}}} |
||
}}{{qif |
}}{{qif |
||
|test={{{ |
|test={{{edition|}}} |
||
|then=, {{{ |
|then=, {{{edition}}} |
||
}}{{qif |
}}{{qif |
||
|test={{{ |
|test={{{pages|}}} |
||
|then=, {{{pages}}} |
|||
}}{{qif |
|||
|test={{{publisher|}}} |
|||
|then=, {{qif |
|then=, {{qif |
||
|test={{{ |
|test={{{location|}}} |
||
|then={{{ |
|then={{{location}}}:  |
||
}}{{{ |
}}{{{publisher}}} |
||
}}{{qif |
}}{{qif |
||
|test={{{ |
|test={{{id|}}} |
||
|then=. {{{ |
|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}}]] |