<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://projectmailer.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AParseVauthors</id>
	<title>Module:ParseVauthors - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://projectmailer.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AParseVauthors"/>
	<link rel="alternate" type="text/html" href="https://projectmailer.net/index.php?title=Module:ParseVauthors&amp;action=history"/>
	<updated>2026-04-21T23:16:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://projectmailer.net/index.php?title=Module:ParseVauthors&amp;diff=1378&amp;oldid=prev</id>
		<title>Grlucas: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://projectmailer.net/index.php?title=Module:ParseVauthors&amp;diff=1378&amp;oldid=prev"/>
		<updated>2018-11-27T12:49:15Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:49, 27 November 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key projectmailer-mw5w_:diff:1.41:old-1377:rev-1378 --&gt;
&lt;/table&gt;</summary>
		<author><name>Grlucas</name></author>
	</entry>
	<entry>
		<id>https://projectmailer.net/index.php?title=Module:ParseVauthors&amp;diff=1377&amp;oldid=prev</id>
		<title>en&gt;Boghog: replaced deprecated &quot;authorformat&quot;, &quot;author-separator&quot;, and &quot;author-name-separator&quot; with &quot;name-list-format&quot;</title>
		<link rel="alternate" type="text/html" href="https://projectmailer.net/index.php?title=Module:ParseVauthors&amp;diff=1377&amp;oldid=prev"/>
		<updated>2015-02-14T14:24:09Z</updated>

		<summary type="html">&lt;p&gt;replaced deprecated &amp;quot;authorformat&amp;quot;, &amp;quot;author-separator&amp;quot;, and &amp;quot;author-name-separator&amp;quot; with &amp;quot;name-list-format&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.parse(frame)&lt;br /&gt;
	local args = frame:getParent().args -- This gets the arguments passed to the template that called #invoke, so we don&amp;#039;t need to pass them all through to the module. See also [[Module:Arguments]].&lt;br /&gt;
	local vauthors = args[1] or args.vauthors&lt;br /&gt;
	local authorTable&lt;br /&gt;
	local lastfirstTable&lt;br /&gt;
	local nauthors&lt;br /&gt;
	if vauthors then&lt;br /&gt;
		if string.find(vauthors, &amp;#039;;&amp;#039;) or string.find(vauthors, &amp;#039;%.&amp;#039;) then&lt;br /&gt;
			verror = true -- Vancouver author format should not contain semicolons or periods&lt;br /&gt;
		else&lt;br /&gt;
			verror = false&lt;br /&gt;
		end&lt;br /&gt;
		authorTable = mw.text.split(vauthors, &amp;quot;%s*,%s*&amp;quot;)&lt;br /&gt;
	else&lt;br /&gt;
		authorTable = {}&lt;br /&gt;
	end&lt;br /&gt;
	local citeArgs = {}&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		citeArgs[k] = v&lt;br /&gt;
	end&lt;br /&gt;
	citeArgs[1] = nil -- Erase vauthors from the citation arguments.&lt;br /&gt;
	citeArgs.vauthors = nil -- Erase vauthors from the citation arguments.&lt;br /&gt;
	nauthors = 0&lt;br /&gt;
	for i, author in ipairs(authorTable) do&lt;br /&gt;
		if string.find(author, &amp;quot;%s&amp;quot;) then&lt;br /&gt;
		    lastfirstTable = {}&lt;br /&gt;
		    lastfirstTable = mw.text.split(author, &amp;quot;%s&amp;quot;)&lt;br /&gt;
		    first = table.remove(lastfirstTable)&lt;br /&gt;
		    last  = table.concat(lastfirstTable, &amp;quot; &amp;quot;)&lt;br /&gt;
		    citeArgs[&amp;#039;first&amp;#039; .. i] = first&lt;br /&gt;
		    citeArgs[&amp;#039;last&amp;#039; .. i]  = last&lt;br /&gt;
		    nauthors = nauthors + 1&lt;br /&gt;
		else&lt;br /&gt;
			citeArgs[&amp;#039;first&amp;#039; .. i] = &amp;quot;&amp;quot;&lt;br /&gt;
			citeArgs[&amp;#039;last&amp;#039; .. i]  = author&lt;br /&gt;
		    nauthors = nauthors + 1&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if citeArgs[&amp;#039;name-list-format&amp;#039;] == nil then&lt;br /&gt;
	    citeArgs[&amp;#039;name-list-format&amp;#039;] = &amp;quot;vanc&amp;quot; -- change default settings of authorformat, etc. parameters so that Vancouver style author format is used&lt;br /&gt;
	end&lt;br /&gt;
	if citeArgs[&amp;#039;display-authors&amp;#039;] == nil and citeArgs[&amp;#039;displayauthors&amp;#039;] == nil and nauthors &amp;gt; 6 then&lt;br /&gt;
		citeArgs[&amp;#039;display-authors&amp;#039;] = &amp;#039;6&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
	if verror then&lt;br /&gt;
        errorArgs = {}&lt;br /&gt;
        errorArgs[&amp;#039;1&amp;#039;]=&amp;#039;vauthors format&amp;#039;&lt;br /&gt;
		return frame:expandTemplate{title = &amp;#039;cite journal&amp;#039;, args = citeArgs}, frame:expandTemplate{title = &amp;#039;citation error&amp;#039;, args = errorArgs}&lt;br /&gt;
	else&lt;br /&gt;
		return frame:expandTemplate{title = &amp;#039;cite journal&amp;#039;, args = citeArgs}&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>en&gt;Boghog</name></author>
	</entry>
</feed>