<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://boroondarawiki.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_empty</id>
	<title>Module:If empty - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://boroondarawiki.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_empty"/>
	<link rel="alternate" type="text/html" href="https://boroondarawiki.org/index.php?title=Module:If_empty&amp;action=history"/>
	<updated>2026-05-01T05:18:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://boroondarawiki.org/index.php?title=Module:If_empty&amp;diff=627&amp;oldid=prev</id>
		<title>Philip: Protected &quot;Module:If empty&quot;: High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://boroondarawiki.org/index.php?title=Module:If_empty&amp;diff=627&amp;oldid=prev"/>
		<updated>2016-08-23T00:19:21Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/wiki/Module:If_empty&quot; title=&quot;Module:If empty&quot;&gt;Module:If empty&lt;/a&gt;&amp;quot;: High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:19, 23 August 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&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;/table&gt;</summary>
		<author><name>Philip</name></author>
	</entry>
	<entry>
		<id>https://boroondarawiki.org/index.php?title=Module:If_empty&amp;diff=626&amp;oldid=prev</id>
		<title>Philip: Created page with &quot;local p = {}  function p.main(frame) 	local args = require(&#039;Module:Arguments&#039;).getArgs(frame, {wrappers = &#039;Template:If empty&#039;, removeBlanks = false})  	-- For backwards compat...&quot;</title>
		<link rel="alternate" type="text/html" href="https://boroondarawiki.org/index.php?title=Module:If_empty&amp;diff=626&amp;oldid=prev"/>
		<updated>2016-08-23T00:19:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  function p.main(frame) 	local args = require(&amp;#039;Module:Arguments&amp;#039;).getArgs(frame, {wrappers = &amp;#039;Template:If empty&amp;#039;, removeBlanks = false})  	-- For backwards compat...&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.main(frame)&lt;br /&gt;
	local args = require(&amp;#039;Module:Arguments&amp;#039;).getArgs(frame, {wrappers = &amp;#039;Template:If empty&amp;#039;, removeBlanks = false})&lt;br /&gt;
&lt;br /&gt;
	-- For backwards compatibility reasons, the first 8 parameters can be unset instead of being blank,&lt;br /&gt;
	-- even though there&amp;#039;s really no legitimate use case for this. At some point, this will be removed.&lt;br /&gt;
	local lowestNil = math.huge&lt;br /&gt;
	for i = 8,1,-1 do&lt;br /&gt;
		if args[i] == nil then&lt;br /&gt;
			args[i] = &amp;#039;&amp;#039;&lt;br /&gt;
			lowestNil = i&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	for k,v in ipairs(args) do&lt;br /&gt;
		if v ~= &amp;#039;&amp;#039; then&lt;br /&gt;
			if lowestNil &amp;lt; k then&lt;br /&gt;
				-- If any uses of this template depend on the behavior above, add them to a tracking category.&lt;br /&gt;
				-- This is a rather fragile, convoluted, hacky way to do it, but it ensures that this module&amp;#039;s output won&amp;#039;t be modified&lt;br /&gt;
				-- by it.&lt;br /&gt;
				frame:extensionTag(&amp;#039;ref&amp;#039;, &amp;#039;[[Category:Instances of Template:If_empty missing arguments]]&amp;#039;, {group = &amp;#039;TrackingCategory&amp;#039;})&lt;br /&gt;
				frame:extensionTag(&amp;#039;references&amp;#039;, &amp;#039;&amp;#039;, {group = &amp;#039;TrackingCategory&amp;#039;})&lt;br /&gt;
			end&lt;br /&gt;
			return v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Philip</name></author>
	</entry>
</feed>