<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://afropedia.world/index.php?action=history&amp;feed=atom&amp;title=Module%3ATranslation_license</id>
	<title>Module:Translation license - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://afropedia.world/index.php?action=history&amp;feed=atom&amp;title=Module%3ATranslation_license"/>
	<link rel="alternate" type="text/html" href="https://afropedia.world/index.php?title=Module:Translation_license&amp;action=history"/>
	<updated>2026-08-04T08:57:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://afropedia.world/index.php?title=Module:Translation_license&amp;diff=8644&amp;oldid=prev</id>
		<title>Djehuti: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://afropedia.world/index.php?title=Module:Translation_license&amp;diff=8644&amp;oldid=prev"/>
		<updated>2024-07-09T00:45:00Z</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;--[=[&lt;br /&gt;
Implements [[Template:Translation license]]&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
local p = {} --p stands for package&lt;br /&gt;
&lt;br /&gt;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
local yesno = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local license_scope = require(&amp;#039;Module:License_scope&amp;#039;)._license_scope&lt;br /&gt;
local categoryHandler = require(&amp;#039;Module:Category handler&amp;#039;).main&lt;br /&gt;
&lt;br /&gt;
local namespace = mw.title.getCurrentTitle().nsText&lt;br /&gt;
&lt;br /&gt;
function p._license_collapsible_container(args)&lt;br /&gt;
	-- license table&lt;br /&gt;
	local license_rows = {}&lt;br /&gt;
	for k = 1, #args, 2 do&lt;br /&gt;
		local header = args[k] or &amp;#039;&amp;#039;&lt;br /&gt;
		local license = args[k + 1] or &amp;#039;&amp;#039;&lt;br /&gt;
		license_rows[(k + 1)/2] = &amp;#039;&amp;lt;tr&amp;gt;&amp;lt;th scope=&amp;quot;row&amp;quot;&amp;gt;&amp;#039; .. header .. &amp;#039;&amp;lt;/th&amp;gt;&amp;lt;td&amp;gt;&amp;#039; .. license .. &amp;#039;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	local tag_table = &amp;#039;&amp;lt;table id=&amp;quot;licenseTags&amp;quot; class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&amp;#039; .. table.concat(license_rows, &amp;#039;&amp;#039;) .. &amp;#039;&amp;lt;/table&amp;gt;&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	-- license container&lt;br /&gt;
	local frame = mw.getCurrentFrame()&lt;br /&gt;
	local container_begin = frame:expandTemplate {&lt;br /&gt;
		[&amp;#039;title&amp;#039;] = &amp;#039;License container begin&amp;#039;,&lt;br /&gt;
		[&amp;#039;args&amp;#039;] = {&lt;br /&gt;
			[&amp;#039;images&amp;#039;] = args.images,&lt;br /&gt;
			[&amp;#039;message&amp;#039;] = args.message&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
	local container_end = frame:expandTemplate {&lt;br /&gt;
		[&amp;#039;title&amp;#039;] = &amp;#039;License container end&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	return container_begin .. tag_table .. container_end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.license_collapsible_container(frame)&lt;br /&gt;
	return p._license_collapsible_container(getArgs(frame))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._no_license(args)&lt;br /&gt;
	local scope = args.scope or &amp;#039;content&amp;#039;&lt;br /&gt;
	local category = args.category or &amp;#039;&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	local text = &amp;quot;&amp;lt;p&amp;gt;&amp;#039;&amp;#039;&amp;#039;This page does not provide license information for the &amp;quot; .. scope .. &amp;quot;.&amp;#039;&amp;#039;&amp;#039;&amp;lt;/p&amp;gt;&amp;lt;p style=&amp;#039;font-size:83%;&amp;#039;&amp;gt;Pages with no license information may be nominated for deletion. If you&amp;#039;d like to help, see [[Help:Copyright tags]] or [[&amp;quot; .. tostring(mw.title.getCurrentTitle().talkPageTitle) .. &amp;quot;|comment]].&amp;lt;/p&amp;gt;&amp;quot; .. category&lt;br /&gt;
	&lt;br /&gt;
	local frame = mw.getCurrentFrame()&lt;br /&gt;
	return frame:expandTemplate {&lt;br /&gt;
		[&amp;#039;title&amp;#039;] = &amp;#039;license&amp;#039;,&lt;br /&gt;
		[&amp;#039;args&amp;#039;] = {&lt;br /&gt;
			[&amp;#039;image&amp;#039;] = &amp;#039;Ambox_warning_pn.svg&amp;#039;,&lt;br /&gt;
			[&amp;#039;class&amp;#039;] = &amp;#039;warningLicenseContainer&amp;#039;,&lt;br /&gt;
			[&amp;#039;text&amp;#039;] = text&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.no_license(frame)&lt;br /&gt;
	return p._no_license(getArgs(frame))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._translation_license(args)&lt;br /&gt;
	local frame = mw.getCurrentFrame()&lt;br /&gt;
	&lt;br /&gt;
	local original = args.original&lt;br /&gt;
	local translation = args.translation&lt;br /&gt;
	&lt;br /&gt;
	local trans_ns = namespace == &amp;quot;Translation&amp;quot; or namespace == &amp;quot;Translation talk&amp;quot;&lt;br /&gt;
	if not translation and trans_ns then&lt;br /&gt;
		translation = frame:expandTemplate {&lt;br /&gt;
			[&amp;#039;title&amp;#039;] = &amp;#039;GFDL/CC-BY-SA-4.0&amp;#039;&lt;br /&gt;
		}&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- images in title&lt;br /&gt;
	local images&lt;br /&gt;
	if not (original and translation) then&lt;br /&gt;
		images = &amp;#039;[[File:Copyright.svg|20px|link=]][[File:Achtung.svg|20px|link=]]&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- text in title&lt;br /&gt;
	local message = args.message&lt;br /&gt;
	if not message then&lt;br /&gt;
		message = license_scope() .. &amp;quot; a translation and has a separate copyright status &amp;quot;&lt;br /&gt;
		if namespace == &amp;quot;Author&amp;quot; or namespace == &amp;quot;Author talk&amp;quot; then&lt;br /&gt;
			message = message .. &amp;quot;to some or all of the original content attributed to this author.&amp;quot;&lt;br /&gt;
		elseif namespace == &amp;quot;File&amp;quot; or namespace == &amp;quot;File talk&amp;quot; then&lt;br /&gt;
			message = message .. &amp;quot;to the applicable copyright protections of the originating source.&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			message = message .. &amp;quot;to the applicable copyright protections of the original content.&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- license tags&lt;br /&gt;
	if not original then&lt;br /&gt;
		original = p._no_license({&lt;br /&gt;
			[&amp;#039;scope&amp;#039;] = &amp;#039;original content&amp;#039;,&lt;br /&gt;
			[&amp;#039;cateogry&amp;#039;] = categoryHandler{&lt;br /&gt;
				[&amp;#039;main&amp;#039;] = &amp;#039;[[Category:Works with no license template]]&amp;#039;,&lt;br /&gt;
				[&amp;#039;author&amp;#039;] = &amp;#039;[[Category:Author pages with no license template]]&amp;#039;,&lt;br /&gt;
				[&amp;#039;file&amp;#039;] = &amp;#039;[[Category:Files with no license template]]&amp;#039;,&lt;br /&gt;
    		}&lt;br /&gt;
		})&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if not translation then&lt;br /&gt;
		local category&lt;br /&gt;
		local noCatNamespaces = {&lt;br /&gt;
			[&amp;#039;Help&amp;#039;] = true,&lt;br /&gt;
			[&amp;#039;Help talk&amp;#039;] = true,&lt;br /&gt;
			[&amp;#039;Template&amp;#039;] = true,&lt;br /&gt;
			[&amp;#039;Template talk&amp;#039;] = true,&lt;br /&gt;
			[&amp;#039;Wikisource&amp;#039;] = true,&lt;br /&gt;
			[&amp;#039;Wikisource talk&amp;#039;] = true,&lt;br /&gt;
			[&amp;#039;Category&amp;#039;] = true,&lt;br /&gt;
			[&amp;#039;Category talk&amp;#039;] = true,&lt;br /&gt;
			[&amp;#039;Module&amp;#039;] = true,&lt;br /&gt;
			[&amp;#039;Module talk&amp;#039;] = true&lt;br /&gt;
		}&lt;br /&gt;
		if not noCatNamespaces[namespace] then&lt;br /&gt;
			category = &amp;#039;[[Category:Translations with no license template]]&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
		translation = p._no_license({&lt;br /&gt;
			[&amp;#039;scope&amp;#039;] = &amp;#039;translation&amp;#039;,&lt;br /&gt;
			[&amp;#039;category&amp;#039;] = category&lt;br /&gt;
		})&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return p._license_collapsible_container({&lt;br /&gt;
		[&amp;#039;images&amp;#039;] = images,&lt;br /&gt;
		[&amp;#039;message&amp;#039;] = message,&lt;br /&gt;
		[1] = &amp;#039;Original:&amp;#039;,&lt;br /&gt;
		[2] = original,&lt;br /&gt;
		[3] = &amp;#039;Translation:&amp;#039;,&lt;br /&gt;
		[4] = translation&lt;br /&gt;
	})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.translation_license(frame)&lt;br /&gt;
	return p._translation_license(getArgs(frame))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Djehuti</name></author>
	</entry>
</feed>