<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AUstring</id>
	<title>Module:Ustring - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AUstring"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Module:Ustring&amp;action=history"/>
	<updated>2026-04-25T17:45:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Module:Ustring&amp;diff=177081&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: Module Creation</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Module:Ustring&amp;diff=177081&amp;oldid=prev"/>
		<updated>2023-06-03T00:00:03Z</updated>

		<summary type="html">&lt;p&gt;Module Creation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;#039;strict&amp;#039;)&lt;br /&gt;
return setmetatable({}, {&lt;br /&gt;
	__index = function(t, k)&lt;br /&gt;
		local what = mw.ustring[k]&lt;br /&gt;
		if type(what) ~= &amp;quot;function&amp;quot; then&lt;br /&gt;
			return what&lt;br /&gt;
		end&lt;br /&gt;
		return function(frame)&lt;br /&gt;
			local fargs = frame.args&lt;br /&gt;
			local fargsused = { tag = true }&lt;br /&gt;
			local args = {}&lt;br /&gt;
			local str_i = 1&lt;br /&gt;
			while fargs[&amp;#039;s&amp;#039; .. str_i] do&lt;br /&gt;
				fargsused[&amp;#039;s&amp;#039; .. str_i] = true&lt;br /&gt;
				args[str_i] = fargs[&amp;#039;s&amp;#039; .. str_i]&lt;br /&gt;
				str_i = str_i + 1&lt;br /&gt;
			end&lt;br /&gt;
			for i, v in ipairs(fargs) do&lt;br /&gt;
				fargsused[i] = true&lt;br /&gt;
				args[i + str_i - 1] = tonumber(v) or v:gsub(&amp;quot;^\\&amp;quot;, &amp;quot;&amp;quot;, 1)&lt;br /&gt;
			end&lt;br /&gt;
			if not fargs.tag then&lt;br /&gt;
				return (what(unpack(args)))		-- Outside parens truncate to first result avoiding tail call&lt;br /&gt;
			end&lt;br /&gt;
			local tagargs = {}&lt;br /&gt;
			for x, y in pairs(fargs) do&lt;br /&gt;
				if not fargsused[x] then tagargs[x] = y end&lt;br /&gt;
			end&lt;br /&gt;
			return frame:extensionTag{name = fargs.tag, content = what(unpack(args)), args = tagargs}&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
})&lt;/div&gt;</summary>
		<author><name>imported&gt;Deadfire</name></author>
	</entry>
</feed>