<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ml">
	<id>https://schoolwiki.in/index.php?action=history&amp;feed=atom&amp;title=%E0%B4%98%E0%B4%9F%E0%B4%95%E0%B4%82%3ASelf</id>
	<title>ഘടകം:Self - നാൾവഴി</title>
	<link rel="self" type="application/atom+xml" href="https://schoolwiki.in/index.php?action=history&amp;feed=atom&amp;title=%E0%B4%98%E0%B4%9F%E0%B4%95%E0%B4%82%3ASelf"/>
	<link rel="alternate" type="text/html" href="https://schoolwiki.in/index.php?title=%E0%B4%98%E0%B4%9F%E0%B4%95%E0%B4%82:Self&amp;action=history"/>
	<updated>2026-04-14T22:17:52Z</updated>
	<subtitle>വിക്കിയിൽ ഈ താളിന്റെ നാൾവഴി</subtitle>
	<generator>MediaWiki 1.43.4</generator>
	<entry>
		<id>https://schoolwiki.in/index.php?title=%E0%B4%98%E0%B4%9F%E0%B4%95%E0%B4%82:Self&amp;diff=2540136&amp;oldid=prev</id>
		<title>Ranjithsiji: fix wikidata get value</title>
		<link rel="alternate" type="text/html" href="https://schoolwiki.in/index.php?title=%E0%B4%98%E0%B4%9F%E0%B4%95%E0%B4%82:Self&amp;diff=2540136&amp;oldid=prev"/>
		<updated>2024-07-30T14:19:48Z</updated>

		<summary type="html">&lt;p&gt;fix wikidata get value&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ml&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←പഴയ രൂപം&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;19:49, 30 ജൂലൈ 2024-നു നിലവിലുണ്ടായിരുന്ന രൂപം&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l139&quot;&gt;വരി 139:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;വരി 139:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if namespace==6 then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if namespace==6 then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		table.insert(cats, &amp;#039;[[Category:Self-published work]]&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		table.insert(cats, &amp;#039;[[Category:Self-published work]]&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local entity = mw.wikibase.getEntity()&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- &lt;/ins&gt;local entity = mw.wikibase.getEntity()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		-- check if SDC statement exist&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		-- check if SDC statement exist&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		if not(entity and entity.statements and entity.statements[&#039;P275&#039;]) then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- &lt;/ins&gt;if not(entity and entity.statements and entity.statements[&#039;P275&#039;]) then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			table.insert(cats, &amp;#039;[[Category:Self-published work missing SDC copyright license]]&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			table.insert(cats, &amp;#039;[[Category:Self-published work missing SDC copyright license]]&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- &lt;/ins&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		results = results .. table.concat(cats) -- add categories only to files&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		results = results .. table.concat(cats) -- add categories only to files&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key schoolwiki_db-sch_:diff:1.41:old-2540129:rev-2540136:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Ranjithsiji</name></author>
	</entry>
	<entry>
		<id>https://schoolwiki.in/index.php?title=%E0%B4%98%E0%B4%9F%E0%B4%95%E0%B4%82:Self&amp;diff=2540129&amp;oldid=prev</id>
		<title>Ranjithsiji: ഒരു പതിപ്പ് ഇറക്കുമതി ചെയ്തു</title>
		<link rel="alternate" type="text/html" href="https://schoolwiki.in/index.php?title=%E0%B4%98%E0%B4%9F%E0%B4%95%E0%B4%82:Self&amp;diff=2540129&amp;oldid=prev"/>
		<updated>2024-07-30T14:16:12Z</updated>

		<summary type="html">&lt;p&gt;ഒരു പതിപ്പ് ഇറക്കുമതി ചെയ്തു&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ml&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←പഴയ രൂപം&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;19:46, 30 ജൂലൈ 2024-നു നിലവിലുണ്ടായിരുന്ന രൂപം&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;ml&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(വ്യത്യാസം ഇല്ല)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key schoolwiki_db-sch_:diff:1.41:old-2540128:rev-2540129 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ranjithsiji</name></author>
	</entry>
	<entry>
		<id>https://schoolwiki.in/index.php?title=%E0%B4%98%E0%B4%9F%E0%B4%95%E0%B4%82:Self&amp;diff=2540128&amp;oldid=prev</id>
		<title>20:53, 4 ജൂലൈ 2024 സമയത്ത് commons&gt;Sjoerddebruin</title>
		<link rel="alternate" type="text/html" href="https://schoolwiki.in/index.php?title=%E0%B4%98%E0%B4%9F%E0%B4%95%E0%B4%82:Self&amp;diff=2540128&amp;oldid=prev"/>
		<updated>2024-07-04T20:53:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;പുതിയ താൾ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- .___  ___.   ______    _______   __    __   __       _______        _______. _______  __       _______ &lt;br /&gt;
-- |   \/   |  /  __  \  |       \ |  |  |  | |  |     |   ____| _    /       ||   ____||  |     |   ____|&lt;br /&gt;
-- |  \  /  | |  |  |  | |  .--.  ||  |  |  | |  |     |  |__   (_)  |   (----`|  |__   |  |     |  |__   &lt;br /&gt;
-- |  |\/|  | |  |  |  | |  |  |  ||  |  |  | |  |     |   __|        \   \    |   __|  |  |     |   __|  &lt;br /&gt;
-- |  |  |  | |  `--&amp;#039;  | |  &amp;#039;--&amp;#039;  ||  `--&amp;#039;  | |  `----.|  |____  _.----)   |   |  |____ |  `----.|  |     &lt;br /&gt;
-- |__|  |__|  \______/  |_______/  \______/  |_______||_______|(_)_______/    |_______||_______||__|     &lt;br /&gt;
                                                                                                       &lt;br /&gt;
-- Written by [[user:jarekt]]&lt;br /&gt;
 &lt;br /&gt;
-- Original Template:Self used the following templates and modules:&lt;br /&gt;
-- * Template:Dir&lt;br /&gt;
-- * Template:Lang&lt;br /&gt;
-- * Template:License migration is redundant&lt;br /&gt;
-- * Template:License migration is redundant multiple&lt;br /&gt;
-- * Template:Self/is-pd-expired&lt;br /&gt;
-- * Template:SDC statement exist&lt;br /&gt;
-- * Module:SDC tracking&lt;br /&gt;
&lt;br /&gt;
require(&amp;#039;strict&amp;#039;) -- used for debugging purposes as it detects cases of unintended global variables&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local function normalize_input_args(input_args, output_args)&lt;br /&gt;
	for name, value in pairs( input_args ) do &lt;br /&gt;
		value = mw.text.trim(value) -- trim whitespaces from the beggining and the end of the string&lt;br /&gt;
		if value ~= &amp;#039;&amp;#039; then -- nuke empty strings&lt;br /&gt;
			if type(name)==&amp;#039;string&amp;#039; then &lt;br /&gt;
				name =  string.lower(name)&lt;br /&gt;
			end&lt;br /&gt;
			output_args[name] = value&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return output_args&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local function startswith(name, str) &lt;br /&gt;
	-- test if strings starts with &amp;quot;str&amp;quot;&lt;br /&gt;
	 return (string.sub(name,1,string.len(str))==str)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local function license_migration_is_redundant(name)&lt;br /&gt;
	-- Lua version of Template:License migration is redundant&lt;br /&gt;
	name = string.lower(name)&lt;br /&gt;
	return (startswith(name, &amp;#039;cc-by-3.0&amp;#039; ) &lt;br /&gt;
		 or startswith(name, &amp;#039;cc-by-sa-3.0&amp;#039;) &lt;br /&gt;
		 or name==&amp;#039;cc-by-4.0&amp;#039; 		 or name==&amp;#039;cc-by-all&amp;#039;&lt;br /&gt;
		 or name==&amp;#039;cc-by-sa-4.0&amp;#039;	 or name==&amp;#039;cc-by-sa-all&amp;#039;&lt;br /&gt;
		 or name==&amp;#039;cc-by-sa-any&amp;#039;	 or name==&amp;#039;cc-by-sa-1.0+&amp;#039;&lt;br /&gt;
		 or name==&amp;#039;cc-by-sa-2.0+&amp;#039;	 or name==&amp;#039;cc-by-sa-4.0,3.0,2.5,2.0,1.0&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
local function pd_is_expired(name)&lt;br /&gt;
	-- Lua version of [[Template:Self/is-pd-expired]]&lt;br /&gt;
	name = string.lower(name)&lt;br /&gt;
	return (startswith(name, &amp;#039;pd-us-&amp;#039;) or startswith(name, &amp;#039;pd-old&amp;#039;) or startswith(name, &amp;#039;pd-anon&amp;#039;) &lt;br /&gt;
		or name==&amp;#039;pd-us&amp;#039; or name==&amp;#039;pd-1923&amp;#039; or name==&amp;#039;pd-canada-anon&amp;#039; or name==&amp;#039;anonymous-eu&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
function p.main(frame)    &lt;br /&gt;
	-- parse inputs&lt;br /&gt;
	local args = {}&lt;br /&gt;
	args = normalize_input_args(frame:getParent().args, args)&lt;br /&gt;
	args = normalize_input_args(frame.args, args)&lt;br /&gt;
	local lang = args.lang or frame:callParserFunction(&amp;quot;int&amp;quot;,&amp;quot;lang&amp;quot;)  -- get user&amp;#039;s chosen language&lt;br /&gt;
	local dir  = mw.language.new( lang ):getDir()                     -- get text direction&lt;br /&gt;
	local page = mw.title.getCurrentTitle()&lt;br /&gt;
	local namespace = page.namespace                                  -- get page namespace&lt;br /&gt;
	local author = args.author&lt;br /&gt;
	&lt;br /&gt;
	-- evaluate numbered inputs&lt;br /&gt;
	local tag = {}&lt;br /&gt;
	local ntag = 0 -- will count numbered inputs&lt;br /&gt;
	local pd_expired = false -- Do we have any public domain tags due to expiration &lt;br /&gt;
	local redundant  = false&lt;br /&gt;
	for name, value in pairs( args ) do -- loop through numbered variables&lt;br /&gt;
		if (type(name)==&amp;#039;number&amp;#039; and value~=&amp;#039;Self&amp;#039;) then &lt;br /&gt;
			ntag = ntag+1&lt;br /&gt;
			tag[ntag]  = value&lt;br /&gt;
			pd_expired = pd_expired or pd_is_expired(tag[ntag])&lt;br /&gt;
			redundant  = redundant  or license_migration_is_redundant(tag[ntag])&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- One of the tags indicate public domain work not released by the author&lt;br /&gt;
	local output, cats = {}, {}&lt;br /&gt;
	local msg&lt;br /&gt;
	if pd_expired then&lt;br /&gt;
		msg = mw.message.new( &amp;#039;wm-license-self-invalid-parameter&amp;#039;):inLanguage(lang):plain()&lt;br /&gt;
		msg = mw.ustring.format(&amp;#039;&amp;lt;div class=&amp;quot;error&amp;quot; style=&amp;quot;text-align:center; font-weight:bold;&amp;quot;&amp;gt;%s&amp;lt;/div&amp;gt;&amp;#039;, msg)&lt;br /&gt;
		table.insert(output, msg)&lt;br /&gt;
		table.insert(cats, &amp;#039;[[Category:Files with invalid parameter in Self template]]&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- get proper header, like (&amp;quot;I, the copyright holder of this work, hereby publish it under the following license:&amp;quot;)&lt;br /&gt;
	if (ntag&amp;gt;1 and author) then&lt;br /&gt;
		msg = mw.message.new( &amp;#039;wm-license-self-multiple-licenses-with-author&amp;#039;, author)&lt;br /&gt;
	elseif (ntag==1 and author) then&lt;br /&gt;
		msg = mw.message.new( &amp;#039;wm-license-self-one-license-with-author&amp;#039;, author)&lt;br /&gt;
	elseif (ntag&amp;gt;1) then -- no author&lt;br /&gt;
		msg = mw.message.new( &amp;#039;wm-license-self-multiple-licenses&amp;#039;)&lt;br /&gt;
	else -- ntag==1 and no author&lt;br /&gt;
		msg = mw.message.new( &amp;#039;wm-license-self-one-license&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	msg = msg:inLanguage(lang):plain()&lt;br /&gt;
	local lang_fmt = &amp;#039;&amp;lt;div lang=&amp;quot;%s&amp;quot; dir=&amp;quot;%s&amp;quot; class=&amp;quot;description %s&amp;quot; style=&amp;quot;display:inline;&amp;quot;&amp;gt;%s&amp;lt;/div&amp;gt;&amp;#039;&lt;br /&gt;
	msg = mw.ustring.format(lang_fmt, lang, dir, lang, msg)&lt;br /&gt;
	msg = mw.ustring.format(&amp;#039;&amp;lt;div class=&amp;quot;center&amp;quot; style=&amp;quot;font-weight:bold;&amp;quot;&amp;gt;%s&amp;lt;/div&amp;gt;&amp;#039;, msg)&lt;br /&gt;
	table.insert(output, msg)&lt;br /&gt;
	&lt;br /&gt;
	-- render license templates&lt;br /&gt;
	local sargs = {}&lt;br /&gt;
	sargs.attribution = args.attribution or author&lt;br /&gt;
	sargs.migration   = args.migration&lt;br /&gt;
	if not args.migration and redundant then&lt;br /&gt;
		sargs.migration=&amp;#039;redundant&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	for i=1,ntag do &lt;br /&gt;
		table.insert(output, frame:expandTemplate{ title = tag[i], args=sargs } )&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- extra message if multiple templates present (&amp;quot;You may select the license of your choice.&amp;quot;)&lt;br /&gt;
	if (ntag&amp;gt;1) then&lt;br /&gt;
		msg = mw.message.new( &amp;#039;wm-license-self-multiple-licenses-select&amp;#039;):inLanguage(lang):plain()&lt;br /&gt;
		msg = mw.ustring.format(lang_fmt, lang, dir, lang, msg)&lt;br /&gt;
		msg = mw.ustring.format(&amp;#039;&amp;lt;div class=&amp;quot;center&amp;quot;&amp;gt;%s&amp;lt;/div&amp;gt;&amp;#039;, msg)&lt;br /&gt;
		table.insert(output, msg)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- assemble the final template and save as string&lt;br /&gt;
	local results = table.concat(output,&amp;#039;\n&amp;#039;)&lt;br /&gt;
	msg = &amp;#039;&amp;lt;div style=&amp;quot;clear:both; margin:0.5em auto; background-color:var(--background-color-interactive,#eaecf0); color:inherit; border:2px solid var(--border-color-subtle,#c8ccd1); padding:8px; direction:%s; &amp;quot; class=&amp;quot;licensetpl_wrapper&amp;quot;&amp;gt;%s&amp;lt;/div&amp;gt;&amp;#039;&lt;br /&gt;
	results = mw.ustring.format(msg, dir, results)&lt;br /&gt;
	&lt;br /&gt;
	-- If used in files then add some categories if needed&lt;br /&gt;
	if namespace==6 then&lt;br /&gt;
		table.insert(cats, &amp;#039;[[Category:Self-published work]]&amp;#039;)&lt;br /&gt;
		local entity = mw.wikibase.getEntity()&lt;br /&gt;
		-- check if SDC statement exist&lt;br /&gt;
		if not(entity and entity.statements and entity.statements[&amp;#039;P275&amp;#039;]) then&lt;br /&gt;
			table.insert(cats, &amp;#039;[[Category:Self-published work missing SDC copyright license]]&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		results = results .. table.concat(cats) -- add categories only to files&lt;br /&gt;
	end&lt;br /&gt;
	return results&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>commons&gt;Sjoerddebruin</name></author>
	</entry>
</feed>