<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://escforumwiki.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AXpsoc</id>
	<title>Module:Xpsoc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://escforumwiki.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AXpsoc"/>
	<link rel="alternate" type="text/html" href="https://escforumwiki.com/index.php?title=Module:Xpsoc&amp;action=history"/>
	<updated>2026-04-11T07:35:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://escforumwiki.com/index.php?title=Module:Xpsoc&amp;diff=73810&amp;oldid=prev</id>
		<title>Santos: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://escforumwiki.com/index.php?title=Module:Xpsoc&amp;diff=73810&amp;oldid=prev"/>
		<updated>2018-03-17T23:38:32Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{xpsoc}}.&lt;br /&gt;
&lt;br /&gt;
local mTemplateInvocation = require(&amp;#039;Module:Template invocation&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p._main(args, frame)&lt;br /&gt;
	frame = frame or mw.getCurrentFrame()&lt;br /&gt;
&lt;br /&gt;
	-- Get the invocation arguments.&lt;br /&gt;
	local name = args[1]&lt;br /&gt;
	if not name then&lt;br /&gt;
		error(&amp;#039;no template name passed to xpsoc&amp;#039;, 2)&lt;br /&gt;
	end&lt;br /&gt;
	local invArgs = {}&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		if k ~= 1 then&lt;br /&gt;
			if type(k) == &amp;#039;number&amp;#039; then&lt;br /&gt;
				invArgs[k - 1] = v&lt;br /&gt;
			else&lt;br /&gt;
				local num = k:match(&amp;#039;^n([1-9][0-9]*)$&amp;#039;)&lt;br /&gt;
				if num then&lt;br /&gt;
					invArgs[args[k]] = args[&amp;#039;v&amp;#039; .. num]&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local invocation = mTemplateInvocation.invocation(name, invArgs, &amp;#039;nowiki&amp;#039;)&lt;br /&gt;
	local gives = args.gives or mw.language.getContentLanguage():getArrow(&amp;#039;forwards&amp;#039;)&lt;br /&gt;
	local result = frame:preprocess(mTemplateInvocation.invocation(name, invArgs))&lt;br /&gt;
	&lt;br /&gt;
	return string.format(&amp;#039;&amp;lt;code&amp;gt;%s&amp;lt;/code&amp;gt; %s %s&amp;#039;, invocation, gives, result)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	return p._main(frame:getParent().args, frame)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Santos</name></author>
	</entry>
</feed>