<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://base.transformap.co/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://base.transformap.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AYesno"/>
		<link rel="alternate" type="text/html" href="https://base.transformap.co/index.php?title=Module:Yesno&amp;action=history"/>
		<updated>2026-05-07T18:36:25Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.0-rc.1</generator>

	<entry>
		<id>https://base.transformap.co/index.php?title=Module:Yesno&amp;diff=3661&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;-- Function allowing for consistent treatment of boolean-like wikitext input. -- It works similarly to the template {{yesno}}. return function (val, default)     val = type(va...&quot;</title>
		<link rel="alternate" type="text/html" href="https://base.transformap.co/index.php?title=Module:Yesno&amp;diff=3661&amp;oldid=prev"/>
				<updated>2016-12-09T09:12:48Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Function allowing for consistent treatment of boolean-like wikitext input. -- It works similarly to the template {{yesno}}. return function (val, default)     val = type(va...&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;
-- It works similarly to the template {{yesno}}.&lt;br /&gt;
return function (val, default)&lt;br /&gt;
    val = type(val) == 'string' and mw.ustring.lower(val) or val -- put in lower case&lt;br /&gt;
    if val == nil then&lt;br /&gt;
        return nil&lt;br /&gt;
    elseif val == false or val == 'no' or val == 'n' or val == 'false' or tonumber(val) == 0 then&lt;br /&gt;
        return false&lt;br /&gt;
    elseif val == true or val == 'yes' or val == 'y' or val == 'true' or tonumber(val) == 1 then&lt;br /&gt;
        return true&lt;br /&gt;
    else&lt;br /&gt;
        return default&lt;br /&gt;
    end&lt;br /&gt;
end&lt;/div&gt;</summary>
		<author><name>Michael</name></author>	</entry>

	</feed>