<?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%3AHistorical_affiliations</id>
	<title>Module:Historical affiliations - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AHistorical_affiliations"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Historical_affiliations&amp;action=history"/>
	<updated>2026-04-21T22:15:25Z</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:Historical_affiliations&amp;diff=471907&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:Historical_affiliations&amp;diff=471907&amp;oldid=prev"/>
		<updated>2021-07-15T22:01:05Z</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 getArgs = require('Module:Arguments').getArgs&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function image (frame, image)&lt;br /&gt;
	local file = nil&lt;br /&gt;
	if not image then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	local file = ''&lt;br /&gt;
	if string.match(image,&amp;quot;(.-)%.(.*)&amp;quot;) then&lt;br /&gt;
		file = frame:expandTemplate{title = &amp;quot;flagicon image&amp;quot;, args = { image } }&lt;br /&gt;
	elseif string.match(image,&amp;quot;.-%s%(.-%)&amp;quot;) then&lt;br /&gt;
		local country, var = string.match(image,&amp;quot;(.-)%s%((.-)%)&amp;quot;)&lt;br /&gt;
		file = frame:expandTemplate{title = &amp;quot;flagdeco&amp;quot;, args = { country, var } }&lt;br /&gt;
	else&lt;br /&gt;
		file = frame:expandTemplate{title = &amp;quot;flagdeco&amp;quot;, args = { image } }&lt;br /&gt;
	end&lt;br /&gt;
	return file&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main (frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local out = ''&lt;br /&gt;
	local images = {}&lt;br /&gt;
	local countries = {}&lt;br /&gt;
	local i = 1&lt;br /&gt;
	while args['c' .. i] do&lt;br /&gt;
		images[i] = image(frame, args['i' .. i])&lt;br /&gt;
		countries[i] = args['c' .. i] .. (args['y' .. i] and ' (' .. args['y' .. i] .. ')' or '')&lt;br /&gt;
		i = i + 1&lt;br /&gt;
	end&lt;br /&gt;
	local hasimages = next(images)&lt;br /&gt;
	for i, country in ipairs(countries) do&lt;br /&gt;
		out = out .. '&amp;lt;tr&amp;gt;'&lt;br /&gt;
		out = out .. (images[i] and ('&amp;lt;td style=&amp;quot;vertical-align:top;&amp;quot;&amp;gt;' .. images[i] .. '&amp;lt;/td&amp;gt;') or (hasimages and '&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;' or ''))&lt;br /&gt;
		out = out .. '&amp;lt;td style=&amp;quot;width:100%;vertical-align:top;&amp;quot;&amp;gt;' .. country .. '&amp;lt;/td&amp;gt;'&lt;br /&gt;
		out = out .. '&amp;lt;/tr&amp;gt;'&lt;br /&gt;
	end&lt;br /&gt;
	local html = '&amp;lt;table style=&amp;quot;padding:5px;float:' .. (args.float or 'left') .. ';background-color:#B0C4DE;border:1px solid #aaa;width:20em;font-size:90%;&amp;quot;&amp;gt;'&lt;br /&gt;
	html = html .. '&amp;lt;tr&amp;gt;&amp;lt;th colspan=&amp;quot;' .. (hasimages and 2 or 1) .. '&amp;quot; style=&amp;quot;text-align:center;font-size:larger;font-weight:bold;&amp;quot;&amp;gt;' .. (args.title and args.title or 'Historical affiliations') .. '&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;'&lt;br /&gt;
	html = html .. out&lt;br /&gt;
	html = html .. '&amp;lt;/table&amp;gt;'&lt;br /&gt;
	return html&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>