From WikiChip
Difference between revisions of "Template:cite article"

(Created page with "<includeonly><!-- -->{{#replace:{{#if:{{#arraymap:{{{authors|}}}|;|x|1|}}<!-- -->|{{#ifexpr:{{#len:{{#arraymap:{{{authors|}}}|;|x|1|}}}}>4<!-- -->|{{#explode:{{#arraymap:{{{a...")
 
Line 1: Line 1:
<includeonly><!--
+
<cite style="font-style:normal">{{#if:
-->{{#replace:{{#if:{{#arraymap:{{{authors|}}}|;|x|1|}}<!--
+
  {{{last{{{author|}}}}}}
-->|{{#ifexpr:{{#len:{{#arraymap:{{{authors|}}}|;|x|1|}}}}>4<!--
+
  |{{#if:
-->|{{#explode:{{#arraymap:{{{authors|}}}|;|name<!-- first non-blank name only
+
    {{{authorlink|}}}
  -->|{{#arraymap:{{#explode:<!-- first three parts only, remove (..., cleanup
+
    |[[{{{authorlink}}}|{{{author|{{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}}}}]]
    -->{{#explode:name|,}},{{#explode:name|,|1}},{{#explode:name|,|2}}<!--
+
    |{{{author|{{{last}}}{{#if:{{{first|}}}|, {{{first}}}}}}}}
    -->|(}}|,|x|x|,_}}|;}}|;}} et al{{#if:{{{date|}}}|.}}<!--
+
  }}{{#if:
-->|{{#arraymap:{{{authors|}}}|;|name|{{#arraymap:{{#explode:<!--
+
    {{{last2|{{{author2|}}}}}}
    -->{{#explode:name|,}},{{#explode:name|,|1}},{{#explode:name|,|2}}<!--
+
    |{{#if:
  -->|(}}|,|x|x|,_}}|;_}}<!--
+
        {{{author3|{{{last3|}}}}}}
-->}}{{#if:{{{date|}}}|_({{#time:Y|{{{date}}}}})}}._}}|_|&#32;}}<!--
+
        |,&#32;
--><cite>{{#if:{{{file|}}}|[[:File:{{{file}}}|{{{title}}}]]<!--
+
        |&#32;&amp;&#32;
-->|{{#if:{{{url|}}}|[{{{url}}} {{{title}}}]|{{{title}}}}}}}</cite><!--
+
      }}{{#if:
-->{{#if:{{{conference|}}}|. {{{conference}}}<!--
+
        {{{authorlink2|}}}
-->{{#if:{{{pages|}}}|. {{#if:{{#pos:{{{pages}}}|-}}|pp|p}}. {{{pages}}}}}<!--
+
        |[[{{{authorlink2}}}|{{{author2|{{#if:{{{first2|}}}|{{{first2}}}&#32;}}{{{last2|}}}}}}]]
-->|{{#if:{{{journal|}}}|. {{{journal}}}. {{#if:{{{volume|}}}|{{{volume}}} ({{{issue}}})|{{{issue}}}}}<!--
+
        |{{{author2|{{#if:{{{first2|}}}|{{{first2}}}&#32;}}{{{last2|}}}}}}
-->{{#if:{{{pages|}}}|&#58; {{{pages}}}}}}}}}<!--
+
      }}{{#if:
-->{{doi link|{{{doi|}}}|prefix=.&#32;}}</includeonly>
+
        {{{last3|{{{author3|}}}}}}
 +
        |&#32;&amp; {{#if:
 +
          {{{authorlink3|}}}
 +
          |[[{{{authorlink3}}}|{{{author3|{{#if:{{{first3|}}}|{{{first3}}}&#32;}}{{{last3|}}}}}}]]
 +
          |{{{author3|{{#if:{{{first3|}}}|{{{first3}}}&#32;}}{{{last3|}}}}}}
 +
        }}{{#if:
 +
          {{{last4|{{{author4|}}}}}}
 +
          |, et al.
 +
        }}
 +
      }}
 +
  }}
 +
  |
 +
}} ({{{year}}}){{#if:
 +
  {{{journal|}}}
 +
  |{{#if:
 +
      {{{title|}}}
 +
      |, {{link|1={{{url|}}}|2="{{{title}}}"}}
 +
    }}, ''{{{journal}}}''{{#if:
 +
      {{{volume|}}}
 +
      |, vol. {{{volume}}}
 +
    }}{{#if:
 +
      {{{issue|}}}
 +
      |, no. {{{issue}}}
 +
    }}{{#if:
 +
      {{{pages|}}}
 +
      |, pp. {{{pages}}}
 +
      |{{#if:
 +
          {{{page|}}}
 +
          |, p. {{{page}}}
 +
        }}
 +
    }}
 +
  |{{#if:
 +
      {{{chapter|}}}
 +
      |, {{link|1={{{url|}}}|2="{{{chapter}}}"}} in {{#if:
 +
            {{{editor|}}}
 +
            |{{{editor}}}, ed.,&#32;
 +
          }}''{{{title}}}''{{#if:
 +
              {{{edition|}}}
 +
              |&#32;({{{edition}}} ed.)
 +
          }}{{#if:
 +
              {{{publisher|}}}
 +
              |, {{{publisher}}}
 +
          }}{{#if:
 +
              {{{place|}}}
 +
              |, {{{place}}}
 +
          }}{{#if:
 +
              {{{ISBN|{{{id|}}}}}}
 +
              |, {{{id|ISBN {{{ISBN}}}}}}
 +
          }}{{#if:
 +
            {{{pages|}}}
 +
            |, pp. {{{pages}}}
 +
            |{{#if:
 +
              {{{page|}}}
 +
              |, p. {{{page}}}
 +
            }}
 +
          }}
 +
      |{{#if:
 +
            {{{title|}}}
 +
            |, {{link|1={{{url|}}}|2=''{{{title}}}''}}
 +
          }}{{#if:
 +
              {{{edition|}}}
 +
              |&#32;({{{edition}}} ed.)
 +
          }}{{#if:
 +
              {{{publisher|}}}
 +
              |, {{{publisher}}}
 +
          }}{{#if:
 +
              {{{place|}}}
 +
              |, {{{place}}}
 +
          }}{{#if:
 +
              {{{ISBN|{{{id|}}}}}}
 +
              |, {{{id|ISBN {{{ISBN}}}}}}
 +
          }}
 +
    }}
 +
}}{{#if:
 +
    {{{accessdate|}}}
 +
    |&#32;<nowiki>[</nowiki>{{{accessdate}}}<nowiki>]</nowiki>
 +
}}</cite><noinclude>
 +
[[Category:Citation templates|{{PAGENAME}}]]
 +
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 +
</noinclude>

Revision as of 12:51, 6 September 2024

{{{last}}} ({{{year}}})