<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://salisford.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ATFA_title</id>
	<title>Module:TFA title - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://salisford.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ATFA_title"/>
	<link rel="alternate" type="text/html" href="https://salisford.net/index.php?title=Module:TFA_title&amp;action=history"/>
	<updated>2026-05-02T02:51:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://salisford.net/index.php?title=Module:TFA_title&amp;diff=858&amp;oldid=prev</id>
		<title>Cascadia: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://salisford.net/index.php?title=Module:TFA_title&amp;diff=858&amp;oldid=prev"/>
		<updated>2023-04-05T14:40:14Z</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&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 14:40, 5 April 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&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>Cascadia</name></author>
	</entry>
	<entry>
		<id>https://salisford.net/index.php?title=Module:TFA_title&amp;diff=857&amp;oldid=prev</id>
		<title>wp&gt;Legoktm: Changed protection settings for &quot;Module:TFA title&quot;: Match Template:Editnotices/Namespace/Main, where it' ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://salisford.net/index.php?title=Module:TFA_title&amp;diff=857&amp;oldid=prev"/>
		<updated>2023-01-11T01:19:19Z</updated>

		<summary type="html">&lt;p&gt;Changed protection settings for &amp;quot;&lt;a href=&quot;/index.php?title=Module:TFA_title&quot; title=&quot;Module:TFA title&quot;&gt;Module:TFA title&lt;/a&gt;&amp;quot;: Match &lt;a href=&quot;/index.php?title=Template:Editnotices/Namespace/Main&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Template:Editnotices/Namespace/Main (page does not exist)&quot;&gt;Template:Editnotices/Namespace/Main&lt;/a&gt;, where it&amp;#039; ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))&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;
local data = mw.loadJsonData(&amp;quot;Template:TFA title/data.json&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
-- Get the TFA title for the specified &amp;quot;YYYY-MM-DD&amp;quot; date. May be&lt;br /&gt;
-- a single title, an array of multiple titles, or nil, if no title is known&lt;br /&gt;
function p.title(date)&lt;br /&gt;
	return data.titles[date] or nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Today's TFA, see title() for possible return values&lt;br /&gt;
function p.today_title()&lt;br /&gt;
	return p.title(today())&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Is the specified title the TFA today?&lt;br /&gt;
-- Returns &amp;quot;yes&amp;quot; or &amp;quot;&amp;quot;, for use with {{#if:}}&lt;br /&gt;
function p.is_todays_tfa(frame)&lt;br /&gt;
	return p.is_tfa_on(frame.args[1], today())&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Is the specified title the TFA on the specified date?&lt;br /&gt;
-- Returns &amp;quot;yes&amp;quot; or &amp;quot;&amp;quot;, for use with {{#if:}}&lt;br /&gt;
function p.is_tfa_on(title, date)&lt;br /&gt;
	local days_title = p.title(date)&lt;br /&gt;
	if days_title == nil then&lt;br /&gt;
		-- no clue&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	if type(days_title) == &amp;quot;string&amp;quot; then&lt;br /&gt;
		if title == days_title then&lt;br /&gt;
			return &amp;quot;yes&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			return &amp;quot;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- table case, multiple titles&lt;br /&gt;
	for _, check in pairs( days_title ) do&lt;br /&gt;
		if check == title then&lt;br /&gt;
			return &amp;quot;yes&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Internal, today's date as YYYY-MM-DD&lt;br /&gt;
function today()&lt;br /&gt;
	return os.date(&amp;quot;%Y-%m-%d&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wp&gt;Legoktm</name></author>
	</entry>
</feed>