<?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%3AAlternating_rows_table_section</id>
	<title>Module:Alternating rows table section - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AAlternating_rows_table_section"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Alternating_rows_table_section&amp;action=history"/>
	<updated>2026-06-13T22:08: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:Alternating_rows_table_section&amp;diff=470960&amp;oldid=prev</id>
		<title>Zoran: Moved page from wikipedia:en:Module:Alternating rows table section</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Alternating_rows_table_section&amp;diff=470960&amp;oldid=prev"/>
		<updated>2021-07-08T19:16:48Z</updated>

		<summary type="html">&lt;p&gt;Moved page from &lt;a href=&quot;/index.php?title=Wikipedia:en:Module:Alternating_rows_table_section&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Wikipedia:en:Module:Alternating rows table section (page does not exist)&quot;&gt;wikipedia:en:Module:Alternating rows table section&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements [[Template:Alternating rows table section]]&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p._buildrows(args)&lt;br /&gt;
	local ostyle = args['os'] and ' style=&amp;quot;' .. args['os'] .. '&amp;quot;' or ''&lt;br /&gt;
	local estyle = args['es'] and ' style=&amp;quot;' .. args['es'] .. '&amp;quot;' or ''&lt;br /&gt;
	&lt;br /&gt;
	local rownums = {}&lt;br /&gt;
	for k, _ in pairs( args ) do&lt;br /&gt;
		local i = tonumber(tostring(k):match( '^%s*([%d]+)%s*$' ) or '0')&lt;br /&gt;
		if( i &amp;gt; 0) then&lt;br /&gt;
			table.insert( rownums, i )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- sort the row numbers&lt;br /&gt;
	table.sort(rownums)&lt;br /&gt;
	&lt;br /&gt;
	local res = {}&lt;br /&gt;
	for k, idx in ipairs( rownums ) do&lt;br /&gt;
		table.insert(res, '|-' .. ((k % 2 == 0) and estyle or ostyle) )&lt;br /&gt;
		table.insert(res, args[idx])&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return res&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local getArgs = require('Module:Arguments').getArgs&lt;br /&gt;
	local args = getArgs(frame, {parentFirst = true})&lt;br /&gt;
	return table.concat(p._buildrows(args), '\n')&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>