<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://research.moraleconomy.au/index.php?action=history&amp;feed=atom&amp;title=Module%3AFor</id>
	<title>Module:For - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://research.moraleconomy.au/index.php?action=history&amp;feed=atom&amp;title=Module%3AFor"/>
	<link rel="alternate" type="text/html" href="https://research.moraleconomy.au/index.php?title=Module:For&amp;action=history"/>
	<updated>2026-04-24T21:02:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://research.moraleconomy.au/index.php?title=Module:For&amp;diff=12179&amp;oldid=prev</id>
		<title>Reversedragon: template title</title>
		<link rel="alternate" type="text/html" href="https://research.moraleconomy.au/index.php?title=Module:For&amp;diff=12179&amp;oldid=prev"/>
		<updated>2026-01-21T09:46:55Z</updated>

		<summary type="html">&lt;p&gt;template title&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 09:46, 21 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function p.templatemain(frame)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function p.templatemain(frame)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   return p.main(frame:newChild{title = &quot;Template:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For_loop&lt;/del&gt;&quot;})&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   return p.main(frame:newChild{title = &quot;Template:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;For&lt;/ins&gt;&quot;})&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Reversedragon</name></author>
	</entry>
	<entry>
		<id>https://research.moraleconomy.au/index.php?title=Module:For&amp;diff=12176&amp;oldid=prev</id>
		<title>Reversedragon: update module - had an old one somehow? - date: 2025-04-24T07:41Z</title>
		<link rel="alternate" type="text/html" href="https://research.moraleconomy.au/index.php?title=Module:For&amp;diff=12176&amp;oldid=prev"/>
		<updated>2026-01-21T09:43:27Z</updated>

		<summary type="html">&lt;p&gt;update module - had an old one somehow? - date: 2025-04-24T07:41Z&lt;/p&gt;
&lt;a href=&quot;https://research.moraleconomy.au/index.php?title=Module:For&amp;amp;diff=12176&amp;amp;oldid=12128&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Reversedragon</name></author>
	</entry>
	<entry>
		<id>https://research.moraleconomy.au/index.php?title=Module:For&amp;diff=12128&amp;oldid=prev</id>
		<title>Reversedragon: copy from mediawiki.org page &quot;Module:For&quot;, time 2024-06-15T04:30Z</title>
		<link rel="alternate" type="text/html" href="https://research.moraleconomy.au/index.php?title=Module:For&amp;diff=12128&amp;oldid=prev"/>
		<updated>2026-01-21T05:05:01Z</updated>

		<summary type="html">&lt;p&gt;copy from mediawiki.org page &amp;quot;Module:For&amp;quot;, time 2024-06-15T04:30Z&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local export = {}&lt;br /&gt;
&lt;br /&gt;
function export.render(frame)&lt;br /&gt;
	local for_args = frame:getParent().args&lt;br /&gt;
&lt;br /&gt;
	local tname = for_args.call or &amp;quot;1x&amp;quot;&lt;br /&gt;
	local sep = for_args[1]&lt;br /&gt;
	local pv = for_args.pv or &amp;quot;1&amp;quot;&lt;br /&gt;
	local prefix = for_args.prefix or &amp;quot;&amp;quot;&lt;br /&gt;
	local suffix = for_args.suffix or for_args.postfix or &amp;quot;&amp;quot;&lt;br /&gt;
	local pc = {}&lt;br /&gt;
&lt;br /&gt;
	local output = {}&lt;br /&gt;
&lt;br /&gt;
	local i = 1&lt;br /&gt;
	while for_args[&amp;quot;pc&amp;quot; .. i .. &amp;quot;n&amp;quot;] do&lt;br /&gt;
		local pnam = for_args[&amp;quot;pc&amp;quot; .. i .. &amp;quot;n&amp;quot;]&lt;br /&gt;
		local pval = for_args[&amp;quot;pc&amp;quot; .. i .. &amp;quot;v&amp;quot;]&lt;br /&gt;
		pc[pnam] = pval&lt;br /&gt;
		i = i + 1&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	i = 2&lt;br /&gt;
	while for_args[i] do&lt;br /&gt;
		local args = mw.clone(pc)&lt;br /&gt;
		args[pv] = prefix .. for_args[i] .. suffix&lt;br /&gt;
&lt;br /&gt;
		if output[1] then&lt;br /&gt;
			output[#output + 1] = sep&lt;br /&gt;
		end&lt;br /&gt;
		output[#output + 1] = frame:expandTemplate {&lt;br /&gt;
			title = tname,&lt;br /&gt;
			args = args&lt;br /&gt;
		}&lt;br /&gt;
		i = i + 1&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return table.concat(output)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return export&lt;/div&gt;</summary>
		<author><name>Reversedragon</name></author>
	</entry>
</feed>