<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ACite_LSA</id>
	<title>Module:Cite LSA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ACite_LSA"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Cite_LSA&amp;action=history"/>
	<updated>2026-07-27T04:02:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:Cite_LSA&amp;diff=471270&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Cite_LSA&amp;diff=471270&amp;oldid=prev"/>
		<updated>2021-07-15T21:01:32Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&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;
function p.cite(frame)&lt;br /&gt;
	local pframe = frame:getParent()&lt;br /&gt;
	local config = frame.args&lt;br /&gt;
	local args = pframe.args&lt;br /&gt;
	local authorfirst = {}&lt;br /&gt;
	local authorlast = {}&lt;br /&gt;
	local editorfirst = {}&lt;br /&gt;
	local editorlast = {}&lt;br /&gt;
	local title = args.title&lt;br /&gt;
	local journal = args.journal&lt;br /&gt;
	local chapter = args.chapter&lt;br /&gt;
	local series = args.seriestitle or args.series&lt;br /&gt;
	local year = args.year&lt;br /&gt;
	local volume = args.volume&lt;br /&gt;
	local edition = args.edition&lt;br /&gt;
	local pages = args.pages&lt;br /&gt;
	local publisher = args.publisher&lt;br /&gt;
	local author = args.last&lt;br /&gt;
	local url = args.url&lt;br /&gt;
	local doi = args.doi&lt;br /&gt;
	if doi ~= nil then&lt;br /&gt;
		url='https://doi.org/'..doi&lt;br /&gt;
	end&lt;br /&gt;
	local accessdate = args.accessdate&lt;br /&gt;
	local editorlist = nil&lt;br /&gt;
	local place = args.place&lt;br /&gt;
	local citation = nil&lt;br /&gt;
	argTable = {title,journal,chapter,series, year, volume, edition,pages,publisher,editors,place}&lt;br /&gt;
	for k,v in pairs(args) do&lt;br /&gt;
		if string.find(k, &amp;quot;first&amp;quot;) ~= nil then&lt;br /&gt;
			if string.find(k, &amp;quot;%d&amp;quot;) ~= nil then&lt;br /&gt;
				i,j = string.find(k, &amp;quot;%d&amp;quot;)&lt;br /&gt;
				num = string.sub(k,i,j)&lt;br /&gt;
				num = tonumber(num)&lt;br /&gt;
			else&lt;br /&gt;
				num = 1&lt;br /&gt;
			end&lt;br /&gt;
			if string.find(k, &amp;quot;editor&amp;quot;) ~= nil then&lt;br /&gt;
				editorfirst[num] = v&lt;br /&gt;
			else&lt;br /&gt;
				authorfirst[num] = v&lt;br /&gt;
			end&lt;br /&gt;
		elseif string.find(k, &amp;quot;last&amp;quot;) ~= nil then&lt;br /&gt;
			if string.find(k, &amp;quot;%d&amp;quot;) ~= nil then&lt;br /&gt;
				i,j = string.find(k, &amp;quot;%d&amp;quot;)&lt;br /&gt;
				num = string.sub(k,i,j)&lt;br /&gt;
				num = tonumber(num)&lt;br /&gt;
			else&lt;br /&gt;
				num = 1&lt;br /&gt;
			end&lt;br /&gt;
			if string.find(k, &amp;quot;editor&amp;quot;) ~= nil then&lt;br /&gt;
				editorlast[num] = v&lt;br /&gt;
			else&lt;br /&gt;
				authorlast[num] = v&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if table.getn(authorlast) &amp;lt; 1 and publisher ~= nil then&lt;br /&gt;
		authorlist=&amp;quot;&amp;lt;span class=\&amp;quot;smallcaps\&amp;quot; style=\&amp;quot;font-variant:small-caps;\&amp;quot;&amp;gt;&amp;quot; .. publisher .. &amp;quot;&amp;lt;/span&amp;gt;. &amp;quot;&lt;br /&gt;
		author=&amp;quot;&amp;quot;&lt;br /&gt;
	elseif table.getn(authorlast) &amp;gt; 0 then&lt;br /&gt;
		alimit = table.getn(authorlast)&lt;br /&gt;
		for i,v in ipairs(authorlast) do&lt;br /&gt;
			if i == 1 then&lt;br /&gt;
				authorlist = &amp;quot;&amp;lt;span class=\&amp;quot;smallcaps\&amp;quot; style=\&amp;quot;font-variant:small-caps;\&amp;quot;&amp;gt;&amp;quot; .. authorlast[1] .. &amp;quot;, &amp;quot; .. authorfirst[1] .. &amp;quot;&amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
			elseif i &amp;gt; 1 and i &amp;lt;= alimit then&lt;br /&gt;
				authorlist = authorlist .. &amp;quot;&amp;lt;span class=\&amp;quot;smallcaps\&amp;quot; style=\&amp;quot;font-variant:small-caps;\&amp;quot;&amp;gt;&amp;quot; .. authorfirst[i] .. &amp;quot; &amp;quot; .. authorlast[i] .. &amp;quot;&amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
			if i+1 == alimit then&lt;br /&gt;
				authorlist = authorlist .. &amp;quot;, and &amp;quot;&lt;br /&gt;
			elseif alimit == 1 then&lt;br /&gt;
				authorlist = authorlist .. &amp;quot;. &amp;quot;&lt;br /&gt;
			elseif alimit &amp;gt; 2 and i ~= alimit then&lt;br /&gt;
				authorlist = authorlist .. &amp;quot;; &amp;quot;&lt;br /&gt;
			elseif i == alimit then&lt;br /&gt;
				authorlist = authorlist .. &amp;quot;. &amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if editorlast ~= {} then&lt;br /&gt;
		editorlist = &amp;quot;&amp;quot;&lt;br /&gt;
		elimit = table.getn(editorlast)&lt;br /&gt;
		for i,v in ipairs(editorlast) do&lt;br /&gt;
			editorlist = editorlist .. editorfirst[i] .. &amp;quot; &amp;quot; .. editorlast[i]&lt;br /&gt;
			if i+1 == elimit and editorlist ~= &amp;quot; &amp;quot; then&lt;br /&gt;
				editorlist = editorlist .. &amp;quot;, and &amp;quot;&lt;br /&gt;
			elseif elimit &amp;gt; i and editorlist ~= &amp;quot; &amp;quot; then&lt;br /&gt;
				editorlist = editorlist .. &amp;quot;, &amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if editorlist == &amp;quot;&amp;quot; or editorlist == &amp;quot; &amp;quot; then&lt;br /&gt;
			editorlist = &amp;quot;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if author ~= nil then&lt;br /&gt;
		authorlist = authorlist .. year .. &amp;quot;. &amp;quot;&lt;br /&gt;
	elseif author == nil then&lt;br /&gt;
		authorlist = &amp;quot;&amp;lt;span style=\&amp;quot;color:#F00\&amp;quot;&amp;gt;Missing author name&amp;lt;/span&amp;gt;&amp;quot; .. year .. &amp;quot;. &amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	if journal ~= nil then&lt;br /&gt;
		if url ~= nil then&lt;br /&gt;
			if accessdate ~= nil then&lt;br /&gt;
				citation = authorlist .. &amp;quot;[&amp;quot; .. url .. &amp;quot; &amp;quot; .. title .. &amp;quot;]. \'\'&amp;quot; .. journal .. &amp;quot;\'\' &amp;quot; .. volume .. &amp;quot;. &amp;quot; .. pages .. &amp;quot;. Accessed &amp;quot; .. accessdate .. &amp;quot;.&amp;quot;&lt;br /&gt;
			else&lt;br /&gt;
				citation = authorlist .. &amp;quot;[&amp;quot; .. url .. &amp;quot; &amp;quot; .. title .. &amp;quot;]. \'\'&amp;quot; .. journal .. &amp;quot;\'\' &amp;quot; .. volume .. &amp;quot;. &amp;quot; .. pages .. &amp;quot;.&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			citation = authorlist .. title .. &amp;quot;. \'\'&amp;quot; .. journal .. &amp;quot;\'\' &amp;quot; .. volume .. &amp;quot;. &amp;quot; .. pages .. &amp;quot;. &amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	elseif journal == nil then&lt;br /&gt;
		if chapter ~= nil then&lt;br /&gt;
			if url ~= nil then&lt;br /&gt;
				citation = authorlist .. &amp;quot;[&amp;quot; .. url .. &amp;quot; &amp;quot; .. chapter .. &amp;quot;].&amp;quot;&lt;br /&gt;
			else&lt;br /&gt;
				citation = authorlist .. chapter .. &amp;quot;. &amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
			if title ~= nil then&lt;br /&gt;
				citation = citation .. &amp;quot;\'\'&amp;quot; .. title .. &amp;quot;\'\'&amp;quot;&lt;br /&gt;
				if editorlist ~= nil and editorlist ~= &amp;quot;&amp;quot; then&lt;br /&gt;
					citation = citation .. &amp;quot; ed. by &amp;quot; .. editorlist&lt;br /&gt;
				end&lt;br /&gt;
				if pages ~= nil then&lt;br /&gt;
					citation = citation .. &amp;quot;, &amp;quot; .. pages .. &amp;quot;. &amp;quot;&lt;br /&gt;
				else&lt;br /&gt;
					citation = citation .. &amp;quot;. &amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
				if edition ~= nil and volume ~= nil then&lt;br /&gt;
					citation = citation .. edition .. &amp;quot;, &amp;quot; .. volume .. &amp;quot;; &amp;quot; &lt;br /&gt;
				elseif edition ~= nil and volume == nil then&lt;br /&gt;
					citation = citation .. edition .. &amp;quot;; &amp;quot;&lt;br /&gt;
				elseif edition == nil and volume ~= nil then&lt;br /&gt;
					citation = citation .. volume .. &amp;quot;; &amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
				if series ~= nil then&lt;br /&gt;
					citation = citation .. &amp;quot;(&amp;quot; .. series .. &amp;quot;). &amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
				if place ~= nil and publisher ~= nil then&lt;br /&gt;
					citation = citation .. place .. &amp;quot;: &amp;quot; .. publisher .. &amp;quot;.&amp;quot;&lt;br /&gt;
				elseif place ~= nil and publisher == nil then&lt;br /&gt;
					citation = citation .. place .. &amp;quot;.&amp;quot;&lt;br /&gt;
				elseif place == nil and publisher ~= nil then&lt;br /&gt;
					citation = citation .. publisher .. &amp;quot;.&amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
				if url ~= nil then&lt;br /&gt;
					if accessdate ~= nil then&lt;br /&gt;
						citation = citation .. &amp;quot; Accessed &amp;quot; .. accessdate .. &amp;quot;. &amp;quot;&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			if title ~= nil then&lt;br /&gt;
				if url ~= nil then&lt;br /&gt;
					citation = authorlist .. &amp;quot;\'\'[&amp;quot; .. url .. &amp;quot; &amp;quot; .. title .. &amp;quot;]\'\'&amp;quot;&lt;br /&gt;
				else&lt;br /&gt;
					citation = authorlist .. &amp;quot;\'\'&amp;quot; .. title .. &amp;quot;\'\'&amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
				if editorlist ~= nil and editorlist ~= &amp;quot;&amp;quot; then&lt;br /&gt;
					citation = citation .. &amp;quot;, ed. by &amp;quot; .. editorlist&lt;br /&gt;
				end&lt;br /&gt;
				if pages ~= nil then&lt;br /&gt;
					citation = citation .. &amp;quot;, &amp;quot; .. pages .. &amp;quot;. &amp;quot;&lt;br /&gt;
				else&lt;br /&gt;
					citation = citation .. &amp;quot;. &amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
				if edition ~= nil and volume ~= nil then&lt;br /&gt;
					citation = citation .. edition .. &amp;quot;, &amp;quot; .. volume .. &amp;quot;; &amp;quot; &lt;br /&gt;
				elseif edition ~= nil and volume == nil then&lt;br /&gt;
					citation = citation .. edition .. &amp;quot;; &amp;quot;&lt;br /&gt;
				elseif edition == nil and volume ~= nil then&lt;br /&gt;
					citation = citation .. volume .. &amp;quot;; &amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
				if series ~= nil then&lt;br /&gt;
					citation = citation .. &amp;quot;(&amp;quot; .. series .. &amp;quot;). &amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
				if place ~= nil and publisher ~= nil then&lt;br /&gt;
					citation = citation .. place .. &amp;quot;: &amp;quot; .. publisher .. &amp;quot;.&amp;quot;&lt;br /&gt;
				elseif place ~= nil and publisher == nil then&lt;br /&gt;
					citation = citation .. place .. &amp;quot;.&amp;quot;&lt;br /&gt;
				elseif place == nil and publisher ~= nil then&lt;br /&gt;
					citation = citation .. publisher .. &amp;quot;.&amp;quot;&lt;br /&gt;
				end&lt;br /&gt;
				if url ~= nil then&lt;br /&gt;
					if accessdate ~= nil then&lt;br /&gt;
						citation = citation .. &amp;quot; Accessed &amp;quot; .. accessdate .. &amp;quot;.&amp;quot;&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return citation&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>