<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.mktimothy.com/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://wiki.mktimothy.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AYesno"/>
	<link rel="alternate" type="text/html" href="https://wiki.mktimothy.com/index.php?title=Module:Yesno&amp;action=history"/>
	<updated>2026-05-26T02:02:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.mktimothy.com/index.php?title=Module:Yesno&amp;diff=688&amp;oldid=prev</id>
		<title>Parvej Husen Talukder: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.mktimothy.com/index.php?title=Module:Yesno&amp;diff=688&amp;oldid=prev"/>
		<updated>2026-05-25T11:42:51Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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-GB&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 11:42, 25 May 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&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>Parvej Husen Talukder</name></author>
	</entry>
	<entry>
		<id>https://wiki.mktimothy.com/index.php?title=Module:Yesno&amp;diff=687&amp;oldid=prev</id>
		<title>parvej&gt;Wikitia at 15:40, 1 May 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.mktimothy.com/index.php?title=Module:Yesno&amp;diff=687&amp;oldid=prev"/>
		<updated>2026-05-01T15:40:53Z</updated>

		<summary type="html">&lt;p&gt;&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;
-- Import yesno function safely&lt;br /&gt;
local yesno&lt;br /&gt;
local success, result = pcall(require, &amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
if success then&lt;br /&gt;
    yesno = result._yesno  -- Use the internal function directly&lt;br /&gt;
else&lt;br /&gt;
    -- Fallback function if Module:Yesno is not available&lt;br /&gt;
    yesno = function(val, default)&lt;br /&gt;
        if val == nil then return default end&lt;br /&gt;
        if type(val) == &amp;quot;string&amp;quot; then&lt;br /&gt;
            val = mw.text.trim(val:lower())&lt;br /&gt;
        end&lt;br /&gt;
        if val == &amp;#039;yes&amp;#039; or val == &amp;#039;y&amp;#039; or val == &amp;#039;true&amp;#039; or val == &amp;#039;1&amp;#039; or val == true then&lt;br /&gt;
            return true&lt;br /&gt;
        elseif val == &amp;#039;no&amp;#039; or val == &amp;#039;n&amp;#039; or val == &amp;#039;false&amp;#039; or val == &amp;#039;0&amp;#039; or val == false then&lt;br /&gt;
            return false&lt;br /&gt;
        else&lt;br /&gt;
            return default&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Then in your template function:&lt;br /&gt;
function p.infobox(frame)&lt;br /&gt;
    -- Use yesno like this:&lt;br /&gt;
    local autoheaders = yesno(frame.args.autoheaders, false)&lt;br /&gt;
    -- or&lt;br /&gt;
    local decat = yesno(frame.args.decat, false)&lt;br /&gt;
    -- NOT: require(&amp;#039;Module:Yesno&amp;#039;).yesno(frame) &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>parvej&gt;Wikitia</name></author>
	</entry>
</feed>