<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nonbinary.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ATable_empty_cell</id>
	<title>Module:Table empty cell - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nonbinary.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ATable_empty_cell"/>
	<link rel="alternate" type="text/html" href="https://nonbinary.wiki/index.php?title=Module:Table_empty_cell&amp;action=history"/>
	<updated>2026-04-11T10:22:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://nonbinary.wiki/index.php?title=Module:Table_empty_cell&amp;diff=45568&amp;oldid=prev</id>
		<title>Techmo: Create module page</title>
		<link rel="alternate" type="text/html" href="https://nonbinary.wiki/index.php?title=Module:Table_empty_cell&amp;diff=45568&amp;oldid=prev"/>
		<updated>2026-04-06T05:57:41Z</updated>

		<summary type="html">&lt;p&gt;Create module page&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;
-- List of default title texts.&lt;br /&gt;
local defaultTitleTextlist = {&lt;br /&gt;
	[&amp;quot;TBA&amp;quot;] = &amp;quot;To be announced&amp;quot;,&lt;br /&gt;
	[&amp;quot;TBD&amp;quot;] = &amp;quot;To be determined&amp;quot;,&lt;br /&gt;
	[&amp;quot;N/A&amp;quot;] = &amp;quot;Not available&amp;quot;	&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
-- Local function which is used to retrieve the title text.&lt;br /&gt;
local function getTitleText(args, altText)&lt;br /&gt;
	local titleText = args[2] or args[&amp;quot;title_text&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
	-- If the title text was manually added, return it.&lt;br /&gt;
	if (titleText) then&lt;br /&gt;
		return titleText&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- The title text was not set, get the correct default text which corresponds to the alt text.&lt;br /&gt;
	for k, v in pairs(defaultTitleTextlist) do&lt;br /&gt;
		if (altText == k) then&lt;br /&gt;
			return v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Local function which is used to retrieve the alt text.&lt;br /&gt;
local function getAltText(args)&lt;br /&gt;
	local altText = args[1] or args[&amp;quot;alt_text&amp;quot;]&lt;br /&gt;
	&lt;br /&gt;
	if (altText == nil) then&lt;br /&gt;
		altText = &amp;quot;TBA&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return altText&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Local function which does the actual main process.&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	local altText = getAltText(args)&lt;br /&gt;
	local titleText = getTitleText(args, altText)&lt;br /&gt;
&lt;br /&gt;
	return &amp;quot;&amp;lt;small style=\&amp;quot;color: #2C2C2C\&amp;quot; title=\&amp;quot;&amp;quot; .. titleText .. &amp;quot;\&amp;quot;&amp;gt;&amp;quot; .. altText .. &amp;quot;&amp;lt;/small&amp;gt;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
Public function which is used to create information for an empty text cell.&lt;br /&gt;
&lt;br /&gt;
Parameters:&lt;br /&gt;
	-- |1= or |alt_text=		— optional; The text which will be written in the cell.&lt;br /&gt;
	-- |2= or |title_text=		— optional; The text which will be shown when hovering over the cell.&lt;br /&gt;
--]]&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs;&lt;br /&gt;
	local args = getArgs(frame);&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Techmo</name></author>
	</entry>
</feed>