<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_in_category</id>
	<title>Module:If in category - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_in_category"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:If_in_category&amp;action=history"/>
	<updated>2026-10-31T16:18:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Module:If_in_category&amp;diff=112567&amp;oldid=prev</id>
		<title>Wikipedia&gt;HouseBlaster: clean code</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:If_in_category&amp;diff=112567&amp;oldid=prev"/>
		<updated>2025-03-05T20:22:10Z</updated>

		<summary type="html">&lt;p&gt;clean code&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)&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	-- create a title object&lt;br /&gt;
	local page = (args.page and mw.title.new(args.page)) or mw.title.getCurrentTitle()&lt;br /&gt;
	if require(&amp;#039;Module:TableTools&amp;#039;).inArray(page.categories, string.gsub( args[1], &amp;#039;^[Cc]ategory:&amp;#039;, &amp;#039;&amp;#039; )) then&lt;br /&gt;
		if not args[3] then&lt;br /&gt;
			-- if we are are not given anything to return, return &amp;#039;yes&amp;#039; if it evalulates to true&lt;br /&gt;
    		return args[2] or &amp;#039;yes&amp;#039;&lt;br /&gt;
    	else &lt;br /&gt;
    		return args[2]&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return args[3]&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;HouseBlaster</name></author>
	</entry>
</feed>