Template:Citation: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Ligulem
eliminating third wikilink (last one, template no longer uses {{wikilink}})
meta>Ligulem
qif -> #if: using AWB
Line 1: Line 1:
'''FOR TESTING ONLY'''
'''FOR TESTING ONLY'''
<cite style="font-style:normal">{{qif
<cite style="font-style:normal">{{#if:
   |test={{{last{{{author|}}}}}}
   {{{last{{{author|}}}}}}
   |then={{qif
   |{{#if:
     |test={{{authorlink|}}}
     {{{authorlink|}}}
     |then=[[{{{authorlink}}}|{{{author|{{{last}}}{{qif|test={{{first|}}}|then=, {{{first}}}}}}}}]]
     |[[{{{authorlink}}}|{{{author|{{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}}}}]]
     |else={{{author|{{{last}}}{{qif|test={{{first|}}}|then=, {{{first}}}}}}}}
     |{{{author|{{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}}}}
   }}{{qif
   }}{{#if:
     |test={{{last2|{{{author2|}}}}}}
     {{{last2|{{{author2|}}}}}}
     |then={{qif
     |{{#if:
         |test={{{author3|{{{last3|}}}}}}
         {{{author3|{{{last3|}}}}}}
         |then=,&#32;
         |,&#32;
         |else=&#32;&amp;&#32;
         |&#32;&amp;&#32;
       }}{{qif
       }}{{#if:
         |test={{{authorlink2|}}}
         {{{authorlink2|}}}
         |then=[[{{{authorlink2}}}|{{{author2|{{qif|test={{{first2|}}}|then={{{first2}}}&#32;}}{{{last2|}}}}}}]]
         |[[{{{authorlink2}}}|{{{author2|{{#if:{{{first2|}}}|{{{first2}}}&#32;}}{{{last2|}}}}}}]]
         |else={{{author2|{{qif|test={{{first2|}}}|then={{{first2}}}&#32;}}{{{last2|}}}}}}
         |{{{author2|{{#if:{{{first2|}}}|{{{first2}}}&#32;}}{{{last2|}}}}}}
       }}{{qif
       }}{{#if:
         |test={{{last3|{{{author3|}}}}}}
         {{{last3|{{{author3|}}}}}}
         |then=&#32;&amp; {{qif
         |&#32;&amp; {{#if:
           |test={{{authorlink3|}}}
           {{{authorlink3|}}}
           |then=[[{{{authorlink3}}}|{{{author3|{{qif|test={{{first3|}}}|then={{{first3}}}&#32;}}{{{last3|}}}}}}]]
           |[[{{{authorlink3}}}|{{{author3|{{#if:{{{first3|}}}|{{{first3}}}&#32;}}{{{last3|}}}}}}]]
           |else={{{author3|{{qif|test={{{first3|}}}|then={{{first3}}}&#32;}}{{{last3|}}}}}}
           |{{{author3|{{#if:{{{first3|}}}|{{{first3}}}&#32;}}{{{last3|}}}}}}
         }}{{qif
         }}{{#if:
           |test={{{last4|{{{author4|}}}}}}
           {{{last4|{{{author4|}}}}}}
           |then=, et al.
           |, et al.
         }}
         }}
       }}
       }}
   }}
   }}
   |…
   |…
}} ({{{year}}}){{qif
}} ({{{year}}}){{#if:
   |test={{{journal|}}}
   {{{journal|}}}
   |then={{qif
   |{{#if:
       |test={{{title|}}}
       {{{title|}}}
       |then=, {{link|1={{{url|}}}|2="{{{title}}}"}}
       |, {{link|1={{{url|}}}|2="{{{title}}}"}}
     }}, ''{{{journal}}}''{{qif
     }}, ''{{{journal}}}''{{#if:
       |test={{{volume|}}}
       {{{volume|}}}
       |then=, vol. {{{volume}}}
       |, vol. {{{volume}}}
     }}{{qif
     }}{{#if:
       |test={{{issue|}}}
       {{{issue|}}}
       |then=, no. {{{issue}}}
       |, no. {{{issue}}}
     }}{{qif
     }}{{#if:
       |test={{{pages|}}}
       {{{pages|}}}
       |then=, pp. {{{pages}}}
       |, pp. {{{pages}}}
       |else={{qif
       |{{#if:
           |test={{{page|}}}
           {{{page|}}}
           |then=, p. {{{page}}}
           |, p. {{{page}}}
         }}
         }}
     }}
     }}
   |else={{qif
   |{{#if:
       |test={{{chapter|}}}
       {{{chapter|}}}
       |then=, {{link|1={{{url|}}}|2="{{{chapter}}}"}} in {{qif
       |, {{link|1={{{url|}}}|2="{{{chapter}}}"}} in {{#if:
             |test={{{editor|}}}
             {{{editor|}}}
             |then={{{editor}}}, ed.,&#32;
             |{{{editor}}}, ed.,&#32;
           }}''{{{title}}}''{{qif
           }}''{{{title}}}''{{#if:
               |test={{{edition|}}}
               {{{edition|}}}
               |then=&#32;({{{edition}}} ed.)
               |&#32;({{{edition}}} ed.)
           }}{{qif
           }}{{#if:
               |test={{{publisher|}}}
               {{{publisher|}}}
               |then=, {{{publisher}}}
               |, {{{publisher}}}
           }}{{qif
           }}{{#if:
               |test={{{place|}}}
               {{{place|}}}
               |then=, {{{place}}}
               |, {{{place}}}
           }}{{qif
           }}{{#if:
               |test={{{ISBN|{{{id|}}}}}}
               {{{ISBN|{{{id|}}}}}}
               |then=, {{{id|ISBN {{{ISBN}}}}}}
               |, {{{id|ISBN {{{ISBN}}}}}}
           }}{{qif
           }}{{#if:
             |test={{{pages|}}}
             {{{pages|}}}
             |then=, pp. {{{pages}}}
             |, pp. {{{pages}}}
             |else={{qif
             |{{#if:
               |test={{{page|}}}
               {{{page|}}}
               |then=, p. {{{page}}}
               |, p. {{{page}}}
             }}
             }}
           }}
           }}
       |else={{qif
       |{{#if:
             |test={{{title|}}}
             {{{title|}}}
             |then=, {{link|1={{{url|}}}|2=''{{{title}}}''}}
             |, {{link|1={{{url|}}}|2=''{{{title}}}''}}
           }}{{qif
           }}{{#if:
               |test={{{edition|}}}
               {{{edition|}}}
               |then=&#32;({{{edition}}} ed.)
               |&#32;({{{edition}}} ed.)
           }}{{qif
           }}{{#if:
               |test={{{publisher|}}}
               {{{publisher|}}}
               |then=, {{{publisher}}}
               |, {{{publisher}}}
           }}{{qif
           }}{{#if:
               |test={{{place|}}}
               {{{place|}}}
               |then=, {{{place}}}
               |, {{{place}}}
           }}{{qif
           }}{{#if:
               |test={{{ISBN|{{{id|}}}}}}
               {{{ISBN|{{{id|}}}}}}
               |then=, {{{id|ISBN {{{ISBN}}}}}}
               |, {{{id|ISBN {{{ISBN}}}}}}
           }}
           }}
     }}
     }}
}}{{qif
}}{{#if:
     |test={{{accessdate|}}}
     {{{accessdate|}}}
     |then=&#32;<nowiki>[</nowiki>{{{accessdate}}}<nowiki>]</nowiki>
     |&#32;<nowiki>[</nowiki>{{{accessdate}}}<nowiki>]</nowiki>
}}</cite><noinclude>
}}</cite><noinclude>
{{esoteric}}
{{esoteric}}
[[Category:Citation templates|{{PAGENAME}}]]
[[Category:Citation templates|{{PAGENAME}}]]
[[Category:Templates using ParserFunctions|{{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.'''
'''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>

Revision as of 22:25, 18 April 2006

FOR TESTING ONLY {{{last}}} ({{{year}}}) Template:Esoteric 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.