<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rollinglounge.net/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ASelf</id>
	<title>Module:Self - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rollinglounge.net/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ASelf"/>
	<link rel="alternate" type="text/html" href="https://wiki.rollinglounge.net/w/index.php?title=Module:Self&amp;action=history"/>
	<updated>2026-09-13T21:31:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.rollinglounge.net/w/index.php?title=Module:Self&amp;diff=3458&amp;oldid=prev</id>
		<title>AZMindroma: Created page with &quot;local p = {}  function p.setup_template_params(template_name, frame, args) 	local title = mw.title.new(template_name, 10) 	if not title.exists then 		return { 			txt = &#039;&#039;, 			errors = (&#039;&lt;span class=&quot;error scribunto-error&quot;&gt;The license &quot;&#039; .. template_name .. 				&#039;&quot; does not exist.&lt;/span&gt;Category:Files with invalid licenses&#039;) 		} 	end 	return { 		txt = frame:expandTemplate{ 			title = template_name, 			args = { dw = args[&#039;dw&#039;] or &#039;no&#039; } 		}, 		errors = &#039;&#039; 	} end  functi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.rollinglounge.net/w/index.php?title=Module:Self&amp;diff=3458&amp;oldid=prev"/>
		<updated>2026-08-06T19:41:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  function p.setup_template_params(template_name, frame, args) 	local title = mw.title.new(template_name, 10) 	if not title.exists then 		return { 			txt = &amp;#039;&amp;#039;, 			errors = (&amp;#039;&amp;lt;span class=&amp;quot;error scribunto-error&amp;quot;&amp;gt;The license &amp;quot;&amp;#039; .. template_name .. 				&amp;#039;&amp;quot; does not exist.&amp;lt;/span&amp;gt;&lt;a href=&quot;/w/index.php?title=Category:Files_with_invalid_licenses&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Files with invalid licenses (page does not exist)&quot;&gt;Category:Files with invalid licenses&lt;/a&gt;&amp;#039;) 		} 	end 	return { 		txt = frame:expandTemplate{ 			title = template_name, 			args = { dw = args[&amp;#039;dw&amp;#039;] or &amp;#039;no&amp;#039; } 		}, 		errors = &amp;#039;&amp;#039; 	} end  functi...&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;
function p.setup_template_params(template_name, frame, args)&lt;br /&gt;
	local title = mw.title.new(template_name, 10)&lt;br /&gt;
	if not title.exists then&lt;br /&gt;
		return {&lt;br /&gt;
			txt = &amp;#039;&amp;#039;,&lt;br /&gt;
			errors = (&amp;#039;&amp;lt;span class=&amp;quot;error scribunto-error&amp;quot;&amp;gt;The license &amp;quot;&amp;#039; .. template_name ..&lt;br /&gt;
				&amp;#039;&amp;quot; does not exist.&amp;lt;/span&amp;gt;[[Category:Files with invalid licenses]]&amp;#039;)&lt;br /&gt;
		}&lt;br /&gt;
	end&lt;br /&gt;
	return {&lt;br /&gt;
		txt = frame:expandTemplate{&lt;br /&gt;
			title = template_name,&lt;br /&gt;
			args = { dw = args[&amp;#039;dw&amp;#039;] or &amp;#039;no&amp;#039; }&lt;br /&gt;
		},&lt;br /&gt;
		errors = &amp;#039;&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.more_than_one(args)&lt;br /&gt;
	return args[2] ~= nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.start_line(args)&lt;br /&gt;
	return mw.ustring.format(&lt;br /&gt;
		&amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;%s, the copyright holder of this work,&amp;#039;&amp;#039;&amp;#039; hereby publish%s it under the following license%s:&amp;#039;&amp;#039;&amp;quot;,&lt;br /&gt;
		args[&amp;#039;author&amp;#039;] or &amp;#039;I&amp;#039;,&lt;br /&gt;
		args[&amp;#039;author&amp;#039;] and &amp;#039;es&amp;#039; or &amp;#039;&amp;#039;,&lt;br /&gt;
		p.more_than_one(args) and &amp;#039;s&amp;#039; or &amp;#039;&amp;#039;&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.categories(args)&lt;br /&gt;
	local currentTitle = mw.title.getCurrentTitle()&lt;br /&gt;
	if currentTitle.namespace ~= 6 then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	local cat = args[&amp;#039;author&amp;#039;] and &amp;#039;Files licensed by third parties&amp;#039; or &amp;#039;Self-published work&amp;#039;&lt;br /&gt;
	return mw.ustring.format(&amp;#039;[[Category:%s|%s]]&amp;#039;, cat, currentTitle.text)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	local tstyles = frame:extensionTag(&amp;#039;templatestyles&amp;#039;, &amp;#039;&amp;#039;, { src = &amp;#039;Module:Self/styles.css&amp;#039; })&lt;br /&gt;
	local templates, errors = &amp;#039;&amp;#039;, &amp;#039;&amp;#039;&lt;br /&gt;
	for _, template_name in ipairs(args) do&lt;br /&gt;
		local result = p.setup_template_params(template_name, frame, args)&lt;br /&gt;
		templates = templates .. result.txt&lt;br /&gt;
		errors = errors .. result.errors&lt;br /&gt;
	end&lt;br /&gt;
	local final_line = p.more_than_one(args)&lt;br /&gt;
		and &amp;quot;&amp;lt;div class=\&amp;quot;center\&amp;quot;&amp;gt;&amp;#039;&amp;#039;You may select the license of your choice.&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&amp;quot; or &amp;#039;&amp;#039;&lt;br /&gt;
	return tstyles .. mw.ustring.format(&lt;br /&gt;
		&amp;#039;&amp;lt;div class=&amp;quot;wp-tmpl-self-license-wrapper&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;center&amp;quot;&amp;gt;%s&amp;lt;/div&amp;gt;&amp;lt;div class=&amp;quot;center&amp;quot;&amp;gt;%s&amp;lt;/div&amp;gt;%s&amp;lt;/div&amp;gt;%s&amp;#039;,&lt;br /&gt;
		p.start_line(args), templates, final_line, p.categories(args)&lt;br /&gt;
	) .. errors&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>AZMindroma</name></author>
	</entry>
</feed>