<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FNardog%2F15</id>
	<title>Module:Sandbox/Nardog/15 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FNardog%2F15"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Nardog/15&amp;action=history"/>
	<updated>2026-04-21T07:47:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/Nardog/15&amp;diff=145873&amp;oldid=prev</id>
		<title>imported&gt;Legoktm: Replace Module:No globals with require( &quot;strict&quot; )</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Nardog/15&amp;diff=145873&amp;oldid=prev"/>
		<updated>2022-10-23T20:58:49Z</updated>

		<summary type="html">&lt;p&gt;Replace &lt;a href=&quot;/research/Module:No_globals&quot; title=&quot;Module:No globals&quot;&gt;Module:No globals&lt;/a&gt; with require( &amp;quot;strict&amp;quot; )&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;
local p = {}&lt;br /&gt;
local args, hasError&lt;br /&gt;
&lt;br /&gt;
local function check(sources, targets)&lt;br /&gt;
	local source&lt;br /&gt;
	for _, param in ipairs(sources) do&lt;br /&gt;
		if args[param] and args[param] ~= &amp;#039;&amp;#039; then&lt;br /&gt;
			source = param&lt;br /&gt;
			break&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if not source then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	for link in mw.ustring.gmatch(args[source], &amp;#039;%[%[[^%[%]]+%]%]&amp;#039;) do&lt;br /&gt;
		local name = mw.ustring.match(link, &amp;#039;([^%|]+)%]%]$&amp;#039;, 3)&lt;br /&gt;
		for _, param in ipairs(targets) do&lt;br /&gt;
			if args[param] and args[param] ~= &amp;#039;&amp;#039; and&lt;br /&gt;
				mw.ustring.find(args[param], &amp;#039;%f[%w]&amp;#039; .. name .. &amp;#039;%f[%W]&amp;#039;)&lt;br /&gt;
			then&lt;br /&gt;
				mw.log(&amp;#039;The link &amp;quot;&amp;#039; .. link .. &amp;#039;&amp;quot; in |&amp;#039; .. source .. &amp;#039;= should be moved to |&amp;#039; .. param .. &amp;#039;=.&amp;#039;)&lt;br /&gt;
				hasError = true&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	args = frame:getParent().args&lt;br /&gt;
	check({ &amp;#039;producer&amp;#039;, &amp;#039;producers&amp;#039; }, { &amp;#039;writer&amp;#039;, &amp;#039;writers&amp;#039;, &amp;#039;screenplay&amp;#039;, &amp;#039;story&amp;#039;, &amp;#039;based_on&amp;#039; })&lt;br /&gt;
	check({ &amp;#039;music&amp;#039; }, { &amp;#039;cinematography&amp;#039;, &amp;#039;editing&amp;#039; })&lt;br /&gt;
	if hasError and mw.title.getCurrentTitle().namespace == 0 then&lt;br /&gt;
		return &amp;#039;[[Category:Articles using Infobox film with incorrectly placed links]]&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Legoktm</name></author>
	</entry>
</feed>