Cite journal: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
(add Coauthors parameter to make this more similar to {{tl|book reference}})
(if -> qif - qif is the server friendlier variant of if)
Line 20: Line 20:
   |then={{wikilink
   |then={{wikilink
         |1={{{Authorlink}}}
         |1={{{Authorlink}}}
         |2={{{Author|{{{Last|}}}{{if|{{{First|}}}|, {{{First}}}}}}}}
         |2={{{Author|{{{Last|}}}{{qif|test={{{First|}}}|then=, {{{First}}}}}}}}
         }}
         }}
   |else={{{Author|{{{Last|}}}{{if|{{{First|}}}|, {{{First}}}}}}}}
   |else={{{Author|{{{Last|}}}{{qif|test={{{First|}}}|then=, {{{First}}}}}}}}
}}{{qif
}}{{qif
   |test={{{Coauthors|}}}
   |test={{{Coauthors|}}}
   |then=<nowiki>,</nowiki> {{{Coauthors}}}
   |then=<nowiki>,</nowiki> {{{Coauthors}}}
}}{{if
}}{{qif
   |{{{Date|}}}
   |test={{{Date|}}}
   |&#32;({{{Date}}})
   |then=&#32;({{{Date}}})
   |{{if
   |else={{qif
     |{{{Year|}}}
     |test={{{Year|}}}
     |{{if
     |then={{qif
       |{{{Month|}}}
       |test={{{Month|}}}
       |&#32;({{{Month}}} {{{Year}}})
       |then=&#32;({{{Month}}} {{{Year}}})
       |&#32;({{{Year}}})
       |else=&#32;({{{Year}}})
     }}
     }}
   }}
   }}
}}{{if
}}{{qif
   |{{{Author|{{{Last|{{{Year|}}}}}}}}}
   |test={{{Author|{{{Last|{{{Year|}}}}}}}}}
   |.&#32;
   |then=.&#32;
}}{{if
}}{{qif
   |1={{{URL|}}}
   |test={{{URL|}}}
   |2=[{{{URL}}}
   |then=[{{{URL}}}
   |3=
   |else=
}} {{{Title}}}{{if
}} {{{Title}}}{{qif
   |1={{{URL|}}}
   |test={{{URL|}}}
   |2=]
   |then=]
   |3=
   |else=
}}{{if
}}{{qif
   |{{{Journal|}}}
   |test={{{Journal|}}}
   |, ''{{{Journal}}}''
   |then=, ''{{{Journal}}}''
}}{{if
}}{{qif
   |{{{Volume|}}}
   |test={{{Volume|}}}
   |, {{{Volume}}}
   |then=, {{{Volume}}}
}}{{if
}}{{qif
   |{{{Issue|}}}
   |test={{{Issue|}}}
   |({{{Issue}}})
   |then=({{{Issue}}})
}}{{if
}}{{qif
   |{{{Pages|}}}
   |test={{{Pages|}}}
   |<nowiki>:</nowiki> {{{Pages}}}
   |then=<nowiki>:</nowiki> {{{Pages}}}
}}{{if
}}{{qif
   |1={{{ID|}}}
   |test={{{ID|}}}
   |2=. {{{ID}}}
   |then=. {{{ID}}}
}}.</cite><noinclude>
}}.</cite><noinclude>
{{esoteric}}
{{esoteric}}
[[Category:Citation templates|{{PAGENAME}}]]
[[Category:Citation templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 18:33, 14 December 2005