Cite journal: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
(cat)
(add Coauthors parameter to make this more similar to {{tl|book reference}})
Line 1: Line 1:
<cite style="font-style:normal" {{if
<cite style="font-style:normal" {{qif
   |1={{{Ref|}}}
   |test={{{Ref|}}}
   |2={{if
   |then={{qif
      |1={{booleq
        |test={{booleq
            |{{{Ref}}}
              |{{{Ref}}}
            |none
              |none
          }}
              }}
      |2=
        |then=
      |3=id="{{{Ref}}}"
        |else=id="{{{Ref}}}"
    }}
        }}
   |3={{if
   |else={{qif
      |1={{booland
        |test={{booland
          |1={{{Last|}}}
              |1={{{Last|}}}
          |2={{{Year|}}}
              |2={{{Year|}}}
      }}
              }}
      |2=id="Reference-{{{Last}}}-{{{Year}}}"
        |then=id="Reference-{{{Last}}}-{{{Year}}}"
    }}
        }}
}}>{{if
}}>{{qif
  |{{{Authorlink|}}}
  |test={{{Authorlink|}}}
  |{{wikilink
  |then={{wikilink
    |{{{Authorlink}}}
        |1={{{Authorlink}}}
    |{{{Author|{{{Last|}}}{{if|{{{First|}}}|, {{{First}}}}}}}}
        |2={{{Author|{{{Last|}}}{{if|{{{First|}}}|, {{{First}}}}}}}}
  }}
        }}
  |{{{Author|{{{Last|}}}{{if|{{{First|}}}|, {{{First}}}}}}}}
  |else={{{Author|{{{Last|}}}{{if|{{{First|}}}|, {{{First}}}}}}}}
}}{{qif
  |test={{{Coauthors|}}}
  |then=<nowiki>,</nowiki> {{{Coauthors}}}
}}{{if
}}{{if
   |{{{Date|}}}
   |{{{Date|}}}

Revision as of 18:59, 11 December 2005

Template:QifTemplate:Qif{{ safesubst:p{{ safesubst:#if

 : ({{{Date}}})
 |1|2}}|{{ safesubst:p{{ safesubst:#if
   :{{ safesubst:p{{ safesubst:#if
     : ({{{Month}}} {{{Year}}})
     |1|2}}| ({{{Year}}})
    |}}
  |1|2}}|{{{3}}}|}}

|}}{{ safesubst:p{{ safesubst:#if

 :. 

|1|2}}|{{{3}}}|}} {{{Title}}}{{ safesubst:p{{ safesubst:#if

 :, {{{Journal}}}

|1|2}}|{{{3}}}|}}{{ safesubst:p{{ safesubst:#if

 :, {{{Volume}}}

|1|2}}|{{{3}}}|}}{{ safesubst:p{{ safesubst:#if

 :({{{Issue}}})

|1|2}}|{{{3}}}|}}{{ safesubst:p{{ safesubst:#if

 :: {{{Pages}}}

|1|2}}|{{{3}}}|}}{{{3}}}. Template:Esoteric