<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3APOTD_titletext</id>
	<title>Module:POTD titletext - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3APOTD_titletext"/>
	<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Module:POTD_titletext&amp;action=history"/>
	<updated>2026-05-15T18:45:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.tachyony.co.uk/w/index.php?title=Module:POTD_titletext&amp;diff=6586&amp;oldid=prev</id>
		<title>Tachyony: Created page with &quot;-- this module may be used by Template:POTD row to allow for substitution of the -- Template:POTD texttitle created when substituting a Template:POTD/YYYY-MM-DD -- template with the textitle parameter. -- -- For example, compare the result from --   {{subst:POTD/YYYY-MM-DD|texttitle}} -- with --   {{subst:#invoke:POTD titletext|main|YYYY-MM-DD}} -- local p = {} function p.main(frame) 	local date = frame.args[1] 	local success, result = pcall(frame.expandTempl...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Module:POTD_titletext&amp;diff=6586&amp;oldid=prev"/>
		<updated>2022-01-19T14:16:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- this module may be used by &lt;a href=&quot;/w/index.php?title=Template:POTD_row&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Template:POTD row (page does not exist)&quot;&gt;Template:POTD row&lt;/a&gt; to allow for substitution of the -- &lt;a href=&quot;/wiki/Template:POTD_texttitle&quot; title=&quot;Template:POTD texttitle&quot;&gt;Template:POTD texttitle&lt;/a&gt; created when substituting a &lt;a href=&quot;/w/index.php?title=Template:POTD/YYYY-MM-DD&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Template:POTD/YYYY-MM-DD (page does not exist)&quot;&gt;Template:POTD/YYYY-MM-DD&lt;/a&gt; -- template with the textitle parameter. -- -- For example, compare the result from --   {{subst:POTD/YYYY-MM-DD|texttitle}} -- with --   {{subst:#invoke:POTD titletext|main|YYYY-MM-DD}} -- local p = {} function p.main(frame) 	local date = frame.args[1] 	local success, result = pcall(frame.expandTempl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- this module may be used by [[Template:POTD row]] to allow for substitution of the&lt;br /&gt;
-- [[Template:POTD texttitle]] created when substituting a [[Template:POTD/YYYY-MM-DD]]&lt;br /&gt;
-- template with the textitle parameter.&lt;br /&gt;
--&lt;br /&gt;
-- For example, compare the result from&lt;br /&gt;
--   {{subst:POTD/YYYY-MM-DD|texttitle}}&lt;br /&gt;
-- with&lt;br /&gt;
--   {{subst:#invoke:POTD titletext|main|YYYY-MM-DD}}&lt;br /&gt;
--&lt;br /&gt;
local p = {}&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local date = frame.args[1]&lt;br /&gt;
	local success, result = pcall(frame.expandTemplate, frame, {title = &amp;#039;POTD/&amp;#039; .. date, args = { &amp;#039;texttitle&amp;#039;}})&lt;br /&gt;
	if success then&lt;br /&gt;
		local t = mw.ustring.gsub(result, &amp;#039;[%s]&amp;#039;, &amp;#039; &amp;#039;)&lt;br /&gt;
		t = mw.ustring.gsub(t, &amp;#039;.*|[%s]*texttitle[%s]*=&amp;#039;, &amp;#039;{{subst:#switch:texttitle|texttitle=&amp;#039;)&lt;br /&gt;
		success, result = pcall(frame.preprocess, frame, {text = t})&lt;br /&gt;
		if success then&lt;br /&gt;
			return result&lt;br /&gt;
		else&lt;br /&gt;
			return &amp;#039;??&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return &amp;#039;?&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Tachyony</name></author>
	</entry>
</feed>