Changes

Jump to navigation Jump to search
no edit summary
This template is used to convert an array of author names like "Thomas Kuhn, Imre Lakatos, Larry Laudan" into "Kuhn, Thomas; Lakatos, Imre; Laudan, Larry". If there are more than three authors, the "Kuhn, Thomas ''et al.'' will be returned.
'''NOTE:''' As any "printing" template, it doesn't store any values anywhere, but merely prints them on the page. '''Parameters:'''
* <code><nowiki>|authors=</nowiki></code> - a comma delimited list of authors.
* <code><nowiki>|intro=</nowiki></code> - if the results need to have a preceding text, write it here.
</noinclude><includeonly><!--
-->{{#if: {{{authors|}}}|<!-- --><!-- add intro -->{{{intro|}}}<!-- --><!-- add the authors -->{{#arraydefine:authorsArray |{{{authors|}}} }}<!--
-->{{#arrayunique:authorsArray}}<!-- remove duplicates and empty values
-->{{#ifexpr: {{#arraysize:authorsArray}} < 4 <!--

Navigation menu