Template:Citation: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Ligulem
if -> qif - qif is the server friendlier variant of if
Ookami (talk | contribs)
m 2 revisions imported
 
(125 intermediate revisions by 42 users not shown)
Line 1: Line 1:
'''FOR TESTING ONLY'''
<includeonly>{{#invoke:citation/CS1|citation
<cite style="font-style:normal" {{qif
|CitationClass=citation
  |test={{{Ref|}}}
}}</includeonly><noinclude>
  |then={{qif
{{Documentation}}
      |test={{booleq
            |{{{Ref}}}
            |none
          }}
      |then=
      |else=id="{{{Ref}}}"
    }}
  |else={{qif
      |test={{{Surname|{{{Last|{{{Surname1|{{{Last1}}}}}}}}}}}}
      |then=id="CITEREF{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{{Surname2|{{{Last2|}}}}}}{{{Surname3|{{{Last3|}}}}}}{{{Surname4|{{{Last4|}}}}}}{{{Year}}}"
    }}
}}>{{qif
  |test={{{Surname|{{{Last|{{{Surname1|{{{Last1|{{{Author|{{{Author1}}}}}}}}}}}}}}}}}}
  |then={{qif
    |test={{{Authorlink|{{{Authorlink1|}}}}}}
    |then={{wikilink
        |1={{{Authorlink1|{{{Authorlink}}}}}}
        |2={{{Author1|{{{Author
            |{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{qif
              |test={{{Given|{{{First|{{{Given1|{{{First1|{{{Initials|{{{Initials1|}}}}}}}}}}}}}}}}}}
              |then=, {{{Initials1|{{{Given1|{{{First1|{{{Initials|{{{Given|{{{First}}}}}}}}}}}}}}}}}}
            }}
        }}}}}}
      }}
    |else={{{Author1|{{{Author
        |{{{Surname1|{{{Last1|{{{Surname|{{{Last}}}}}}}}}}}}{{qif
            |test={{{Given|{{{First|{{{Given1|{{{First1|{{{Initials|{{{Initials1}}}}}}}}}}}}}}}}}}
            |then=, {{{Initials1|{{{Given1|{{{First1|{{{Initials|{{{Given|{{{First}}}}}}}}}}}}}}}}}}
          }}
      }}}}}}
  }}{{qif
    |test={{{Surname2|{{{Last2|{{{Author2|}}}}}}}}}
    |then={{qif
        |test={{{Author3|{{{Surname3|{{{Last3|}}}}}}}}}
        |then=,&#32;
        |else=&#32;&amp;&#32;
      }}{{qif
        |test={{{Authorlink2|}}}
        |then={{wikilink
          |1={{{Authorlink2}}}
          |2={{{Author2|{{{Surname2|{{{Last2|}}}}}}{{qif|test={{{Given2|{{{First2|{{{Initials2|}}}}}}}}}|then=, {{{Initials2|{{{Given2|{{{First2}}}}}}}}}}}}}}
        }}
        |else={{{Author2|{{{Surname2|{{{Last2|}}}}}}{{qif|test={{{Given2|{{{First2|{{{Initials2|}}}}}}}}}|then=, {{{Initials2|{{{Given2|{{{First2}}}}}}}}}}}}}}
      }}{{qif
        |test={{{Surname3|{{{Last3|{{{Author3|}}}}}}}}}
        |then=&#32;&amp; {{qif
          |test={{{Authorlink3|}}}
          |then={{wikilink
            |1={{{Authorlink3}}}
            |2={{{Author3|{{{Surname3|{{{Last3|}}}}}}{{qif|test={{{Given3|{{{First3|{{{Initials3|}}}}}}}}}|then=, {{{Initials3|{{{Given3|{{{First3}}}}}}}}}}}}}}
            }}
          |else={{{Author3|{{{Surname3|{{{Last3|}}}}}}{{qif|test={{{Given3|{{{First3|{{{Initials3|}}}}}}}}}|then=, {{{Initials3|{{{Given3|{{{First3}}}}}}}}}}}}}}
        }}{{qif
          |test={{{Surname4|{{{Last4|{{{Author4|}}}}}}}}}
          |then=, et al.
        }}
      }}
  }}
  |…
}} ({{{Year}}}){{qif
  |test={{{Journal|{{{Periodical|}}}}}}
  |then={{qif
      |test={{{Title|}}}
      |then=, {{Link|1={{{URL|}}}|2="{{{Title}}}"}}
    }}, ''{{{Journal|{{{Periodical}}}}}}''{{qif
      |test={{{Volume|}}}
      |then=, vol. {{{Volume}}}
    }}{{qif
      |test={{{Issue|{{{Number|}}}}}}
      |then=, no. {{{Number|{{{Issue}}}}}}
    }}{{qif
      |test={{{Pages|}}}
      |then=, pp. {{{Pages}}}
      |else={{qif
          |test={{{Page|}}}
          |then=, p. {{{Page}}}
        }}
    }}
  |else={{qif
      |test={{{Chapter|{{{Contribution|}}}}}}
      |then=, {{Link|1={{{URL|}}}|2="{{{Chapter|{{{Contribution}}}}}}"}} in {{qif
            |test={{{Editor|}}}
            |then={{{Editor}}}, ed.,&#32;
          }}''{{{Title}}}''{{qif
              |test={{{Edition|}}}
              |then=&#32;({{{Edition}}} ed.)
          }}{{qif
              |test={{{Publisher|}}}
              |then=, {{{Publisher}}}
          }}{{qif
              |test={{{Place|}}}
              |then=, {{{Place}}}
          }}{{qif
              |test={{{ISBN|{{{ID|}}}}}}
              |then=, {{{ID|ISBN {{{ISBN}}}}}}
          }}{{qif
            |test={{{Pages|}}}
            |then=, pp. {{{Pages}}}
            |else={{qif
              |test={{{Page|}}}
              |then=, p. {{{Page}}}
            }}
          }}
      |else={{qif
            |test={{{Title|}}}
            |then=, {{Link|1={{{URL|}}}|2=''{{{Title}}}''}}
          }}{{qif
              |test={{{Edition|}}}
              |then=&#32;({{{Edition}}} ed.)
          }}{{qif
              |test={{{Publisher|}}}
              |then=, {{{Publisher}}}
          }}{{qif
              |test={{{Place|}}}
              |then=, {{{Place}}}
          }}{{qif
              |test={{{ISBN|{{{ID|}}}}}}
              |then=, {{{ID|ISBN {{{ISBN}}}}}}
          }}
    }}
}}{{qif
    |test={{{Access-date|}}}
    |then=&#32;<nowiki>[</nowiki>{{{Access-date}}}<nowiki>]</nowiki>
}}</cite><noinclude>
{{esoteric}}
[[Category:Citation templates|{{PAGENAME}}]]
'''This template is subject to periodic changes and breaking, and for now should be used only by testers and developers who can correct problems when they appear.'''
</noinclude>
</noinclude>

Latest revision as of 00:37, 2 September 2020