<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3APOTD_titletext%2Fsandbox</id>
	<title>Module:POTD titletext/sandbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3APOTD_titletext%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:POTD_titletext/sandbox&amp;action=history"/>
	<updated>2026-04-20T00:47:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:POTD_titletext/sandbox&amp;diff=144219&amp;oldid=prev</id>
		<title>imported&gt;Frietjes at 14:46, 22 July 2020</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:POTD_titletext/sandbox&amp;diff=144219&amp;oldid=prev"/>
		<updated>2020-07-22T14:46:44Z</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;-- 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>imported&gt;Frietjes</name></author>
	</entry>
</feed>