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 |
<cite style="font-style:normal" {{qif |
||
|test={{{ |
|test={{{ref}}} |
||
|then={{qif |
|then={{qif |
||
|test={{ |
|test={{booleq |
||
| |
|{{{ref}}} |
||
| |
|none |
||
}} |
|||
|then= |
|||
|else=id="{{{ref}}}" |
|||
}} |
|||
⚫ | |||
⚫ | |||
|test={{booland |
|||
|1={{{last|}}} |
|||
}} |
|2={{{year|}}} |
||
}} |
}} |
||
|then=id="Reference-{{{last}}}-{{{year}}}" |
|||
⚫ | |||
⚫ | |||
⚫ | |||
}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
|test={{{authorlink|}}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
}} |
}} |
||
⚫ | |||
}} |
}} |
||
}} |
}} |
||
|else={{qif |
|||
|test={{{author| |
|test={{{author|}}} |
||
|then={{ |
|then={{{author}}} |
||
| |
|else={{{last|}}}{{qif |
||
| |
|test={{{first|}}} |
||
| |
|then=, {{{first}}} |
||
|then=,  |
|||
|else= &  |
|||
}} |
}} |
||
}} |
}} |
||
}}{{qif |
}}{{qif |
||
|test={{{ |
|test={{{coauthors|}}} |
||
|then={{ |
|then=<nowiki>,</nowiki> {{{coauthors}}} |
||
|test={{{author2link|}}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
|test={{{author2|}}} |
|||
|then={{{author2}}} |
|||
}} |
|||
}} |
|||
|else={{{author2|}}} |
|||
⚫ | |||
|test={{{author2|}}} |
|||
|then={{qif |
|||
|test={{{author3|}}} |
|||
|then={{qif |
|||
|test={{{author4|}}} |
|||
|then=,  |
|||
|else= &  |
|||
}} |
|||
}} |
|||
}}{{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=,  |
|||
|else= &  |
|||
}} |
|||
}} |
|||
}} |
|||
}}{{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= &  |
|||
}} |
|||
}} |
|||
}} |
|||
}}{{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={{{ |
|test={{{author|{{{last|{{{year|}}}}}}}}} |
||
|then=. |
|then=. |
||
}}{{qif |
}}{{qif |