<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://irony.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AExtract</id>
	<title>Module:Extract - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://irony.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AExtract"/>
	<link rel="alternate" type="text/html" href="https://irony.wiki/index.php?title=Module:Extract&amp;action=history"/>
	<updated>2026-04-17T02:37:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://irony.wiki/index.php?title=Module:Extract&amp;diff=9870&amp;oldid=prev</id>
		<title>Saucy: see if this helps fix things</title>
		<link rel="alternate" type="text/html" href="https://irony.wiki/index.php?title=Module:Extract&amp;diff=9870&amp;oldid=prev"/>
		<updated>2023-07-16T00:01:01Z</updated>

		<summary type="html">&lt;p&gt;see if this helps fix things&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Extracts certain types of strings from a larger string. Useful for passing data into Cargo tables.&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Extracts the first instance of a number (a substring of continuous digits). Returns an empty string if none are found&lt;br /&gt;
function extractNumber(input)&lt;br /&gt;
	local match = mw.ustring.match(input, &amp;quot;%d+&amp;quot;)&lt;br /&gt;
	if match == nil then&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		return match&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	if frame.args[1] == &amp;quot;number&amp;quot; then&lt;br /&gt;
		return extractNumber(frame.args[2])&lt;br /&gt;
	else&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Saucy</name></author>
	</entry>
</feed>