<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://xenreference.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AYesno</id>
	<title>Module:Yesno - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://xenreference.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AYesno"/>
	<link rel="alternate" type="text/html" href="https://xenreference.com/wiki/index.php?title=Module:Yesno&amp;action=history"/>
	<updated>2026-07-12T02:15:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://xenreference.com/wiki/index.php?title=Module:Yesno&amp;diff=844&amp;oldid=prev</id>
		<title>Vector: Created page with &quot;-- Function allowing for consistent treatment of boolean-like wikitext input.  return function(val, default) 	-- If your wiki uses non-ascii characters for any of &quot;yes&quot;, &quot;no&quot;, etc., you 	-- should replace &quot;val:lower()&quot; with &quot;mw.ustring.lower(val)&quot; in the 	-- following line. 	val = (type(val) == &quot;string&quot; and mw.ustring.lower(val) or val) 	if val == nil then 		return nil 	elseif val == true  		or val == &quot;yes&quot; 		or val == &quot;y&quot; 		or val == &quot;true&quot; 		or val == &quot;t&quot; 		or val == &quot;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://xenreference.com/wiki/index.php?title=Module:Yesno&amp;diff=844&amp;oldid=prev"/>
		<updated>2025-12-16T05:05:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Function allowing for consistent treatment of boolean-like wikitext input.  return function(val, default) 	-- If your wiki uses non-ascii characters for any of &amp;quot;yes&amp;quot;, &amp;quot;no&amp;quot;, etc., you 	-- should replace &amp;quot;val:lower()&amp;quot; with &amp;quot;mw.ustring.lower(val)&amp;quot; in the 	-- following line. 	val = (type(val) == &amp;quot;string&amp;quot; and mw.ustring.lower(val) or val) 	if val == nil then 		return nil 	elseif val == true  		or val == &amp;quot;yes&amp;quot; 		or val == &amp;quot;y&amp;quot; 		or val == &amp;quot;true&amp;quot; 		or val == &amp;quot;t&amp;quot; 		or val == &amp;quot;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Function allowing for consistent treatment of boolean-like wikitext input.&lt;br /&gt;
&lt;br /&gt;
return function(val, default)&lt;br /&gt;
	-- If your wiki uses non-ascii characters for any of &amp;quot;yes&amp;quot;, &amp;quot;no&amp;quot;, etc., you&lt;br /&gt;
	-- should replace &amp;quot;val:lower()&amp;quot; with &amp;quot;mw.ustring.lower(val)&amp;quot; in the&lt;br /&gt;
	-- following line.&lt;br /&gt;
	val = (type(val) == &amp;quot;string&amp;quot; and mw.ustring.lower(val) or val)&lt;br /&gt;
	if val == nil then&lt;br /&gt;
		return nil&lt;br /&gt;
	elseif val == true &lt;br /&gt;
		or val == &amp;quot;yes&amp;quot;&lt;br /&gt;
		or val == &amp;quot;y&amp;quot;&lt;br /&gt;
		or val == &amp;quot;true&amp;quot;&lt;br /&gt;
		or val == &amp;quot;t&amp;quot;&lt;br /&gt;
		or val == &amp;quot;on&amp;quot;&lt;br /&gt;
		or tonumber(val) == 1&lt;br /&gt;
	then&lt;br /&gt;
		return true&lt;br /&gt;
	elseif val == false&lt;br /&gt;
		or val == &amp;quot;no&amp;quot;&lt;br /&gt;
		or val == &amp;quot;n&amp;quot;&lt;br /&gt;
		or val == &amp;quot;false&amp;quot;&lt;br /&gt;
		or val == &amp;quot;f&amp;quot;&lt;br /&gt;
		or val == &amp;quot;off&amp;quot;&lt;br /&gt;
		or tonumber(val) == 0&lt;br /&gt;
	then&lt;br /&gt;
		return false&lt;br /&gt;
	else&lt;br /&gt;
		return default&lt;br /&gt;
	end&lt;br /&gt;
end&lt;/div&gt;</summary>
		<author><name>Vector</name></author>
	</entry>
</feed>