<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/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://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AIf_in_category"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Module:If_in_category&amp;action=history"/>
	<updated>2026-11-24T01:54:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Module:If_in_category&amp;diff=176733&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: updating</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Module:If_in_category&amp;diff=176733&amp;oldid=prev"/>
		<updated>2025-02-10T22:57:41Z</updated>

		<summary type="html">&lt;p&gt;updating&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;
local TableTools = require(&amp;#039;Module:TableTools&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
	local args = 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;
	local page&lt;br /&gt;
	-- create a title object&lt;br /&gt;
	if args.page then&lt;br /&gt;
		page = mw.title.new(args.page)&lt;br /&gt;
	else&lt;br /&gt;
		page = mw.title.getCurrentTitle()&lt;br /&gt;
	end&lt;br /&gt;
	if TableTools.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>imported&gt;Deadfire</name></author>
	</entry>
</feed>