<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hacks.guide/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ATitle_ID</id>
	<title>Module:Title ID - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hacks.guide/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ATitle_ID"/>
	<link rel="alternate" type="text/html" href="https://wiki.hacks.guide/w/index.php?title=Module:Title_ID&amp;action=history"/>
	<updated>2026-05-02T21:40:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.hacks.guide/w/index.php?title=Module:Title_ID&amp;diff=2595&amp;oldid=prev</id>
		<title>Ihaveahax: I forgot Lua indexes tables starting with 1</title>
		<link rel="alternate" type="text/html" href="https://wiki.hacks.guide/w/index.php?title=Module:Title_ID&amp;diff=2595&amp;oldid=prev"/>
		<updated>2022-12-15T22:20:34Z</updated>

		<summary type="html">&lt;p&gt;I forgot Lua indexes tables starting with 1&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:20, 15 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function p.makeTitleId(frame)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function p.makeTitleId(frame)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	return uniqueIdToTitleId(frame.args[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0&lt;/del&gt;])&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	return uniqueIdToTitleId(frame.args[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;1&lt;/ins&gt;])&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;return p&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;return p&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key hacksguidewiki:diff:1.41:old-2594:rev-2595:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Ihaveahax</name></author>
	</entry>
	<entry>
		<id>https://wiki.hacks.guide/w/index.php?title=Module:Title_ID&amp;diff=2594&amp;oldid=prev</id>
		<title>Ihaveahax: Created page with &quot;local p = {}  local function uniqueIdToTitleId(uidstr) 	local uniqueId 	if type(uidstr) == &#039;number&#039; then 		uniqueId = uidstr 	else 		-- check if it starts with 0x 		local start = string.sub(uidstr, 0, 2) 		if start == &#039;0x&#039; then 			uniqueId = tonumber(uidstr) 		else 			uniqueId = tonumber(uidstr, 16) 		end 	end 	-- maybe this should allow for stuff like choosing content category? 	return string.format(&#039;00040000%06x00&#039;, uniqueId) end  function p.makeTitleId(frame) 	return...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hacks.guide/w/index.php?title=Module:Title_ID&amp;diff=2594&amp;oldid=prev"/>
		<updated>2022-12-15T22:15:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  local function uniqueIdToTitleId(uidstr) 	local uniqueId 	if type(uidstr) == &amp;#039;number&amp;#039; then 		uniqueId = uidstr 	else 		-- check if it starts with 0x 		local start = string.sub(uidstr, 0, 2) 		if start == &amp;#039;0x&amp;#039; then 			uniqueId = tonumber(uidstr) 		else 			uniqueId = tonumber(uidstr, 16) 		end 	end 	-- maybe this should allow for stuff like choosing content category? 	return string.format(&amp;#039;00040000%06x00&amp;#039;, uniqueId) end  function p.makeTitleId(frame) 	return...&amp;quot;&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 function uniqueIdToTitleId(uidstr)&lt;br /&gt;
	local uniqueId&lt;br /&gt;
	if type(uidstr) == &amp;#039;number&amp;#039; then&lt;br /&gt;
		uniqueId = uidstr&lt;br /&gt;
	else&lt;br /&gt;
		-- check if it starts with 0x&lt;br /&gt;
		local start = string.sub(uidstr, 0, 2)&lt;br /&gt;
		if start == &amp;#039;0x&amp;#039; then&lt;br /&gt;
			uniqueId = tonumber(uidstr)&lt;br /&gt;
		else&lt;br /&gt;
			uniqueId = tonumber(uidstr, 16)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- maybe this should allow for stuff like choosing content category?&lt;br /&gt;
	return string.format(&amp;#039;00040000%06x00&amp;#039;, uniqueId)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.makeTitleId(frame)&lt;br /&gt;
	return uniqueIdToTitleId(frame.args[0])&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Ihaveahax</name></author>
	</entry>
</feed>