Template:Cite book: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Gracefool updated from devel |
meta>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 | <cite style="font-style:normal" {{qif | ||
|test={{{ | |test={{{ref}}} | ||
|then={{qif | |then={{qif | ||
|test={{booleq | |||
|{{{ref}}} | |||
|none | |||
}} | |||
|then= | |||
|else=id="{{{ref}}}" | |||
}} | |||
|else={{qif | |||
|test={{booland | |||
|1={{{last|}}} | |||
|2={{{year|}}} | |||
}} | }} | ||
| | |then=id="Reference-{{{last}}}-{{{year}}}" | ||
|test={{{ | }} | ||
|then={{{ | }} | ||
|test={{{ | }}>{{qif | ||
|then=, {{{ | |test={{{authorlink|}}} | ||
|then={{wikilink | |||
|1={{{authorlink}}} | |||
|2={{qif | |||
|test={{{author|}}} | |||
|then={{{author}}} | |||
|else={{{last|}}}{{qif | |||
|test={{{first|}}} | |||
|then=, {{{first}}} | |||
}} | }} | ||
}} | }} | ||
}} | }} | ||
|else={{qif | |||
|test={{{author|}}} | |||
|then={{{author}}} | |||
| | |else={{{last|}}}{{qif | ||
|test={{{first|}}} | |||
|test={{{ | |then=, {{{first}}} | ||
|then=, | |||
}} | }} | ||
}} | }} | ||
}}{{qif | }}{{qif | ||
|test={{{ | |test={{{coauthors|}}} | ||
|then=<nowiki>,</nowiki> {{{coauthors}}} | |||
}}{{qif | }}{{qif | ||
|test={{{date|}}} | |test={{{date|}}} | ||
Line 123: | Line 53: | ||
}} | }} | ||
}}{{qif | }}{{qif | ||
|test={{{ | |test={{{author|{{{last|{{{year|}}}}}}}}} | ||
|then=. | |then=. | ||
}}{{qif | }}{{qif |