<?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%3ALicense_scope</id>
	<title>Module:License scope - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://afropedia.world/index.php?action=history&amp;feed=atom&amp;title=Module%3ALicense_scope"/>
	<link rel="alternate" type="text/html" href="https://afropedia.world/index.php?title=Module:License_scope&amp;action=history"/>
	<updated>2026-09-19T20:19:59Z</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:License_scope&amp;diff=8634&amp;oldid=prev</id>
		<title>Djehuti: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://afropedia.world/index.php?title=Module:License_scope&amp;diff=8634&amp;oldid=prev"/>
		<updated>2024-07-09T00:44:59Z</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:License scope]] and [[Template:License grammar]]&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 namespace = mw.title.getCurrentTitle().nsText&lt;br /&gt;
&lt;br /&gt;
function p.plural_namespace()&lt;br /&gt;
	local plural_namespaces = {&lt;br /&gt;
		[&amp;quot;Author&amp;quot;] = true,&lt;br /&gt;
		[&amp;quot;Author talk&amp;quot;] = true,&lt;br /&gt;
		[&amp;quot;Portal&amp;quot;] = true,&lt;br /&gt;
		[&amp;quot;Portal talk&amp;quot;] = true,&lt;br /&gt;
		[&amp;quot;Category&amp;quot;] = true,&lt;br /&gt;
		[&amp;quot;Category talk&amp;quot;] = true&lt;br /&gt;
	}&lt;br /&gt;
	return plural_namespaces[namespace] or false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[=[&lt;br /&gt;
Implements [[Template:License scope]]&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
function p._license_scope(args)&lt;br /&gt;
	if not args then&lt;br /&gt;
		args = {}&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local text&lt;br /&gt;
	if p.plural_namespace() then&lt;br /&gt;
		local usesome&lt;br /&gt;
		if namespace == &amp;quot;Category&amp;quot; or namespace == &amp;quot;Category talk&amp;quot; then&lt;br /&gt;
			usesome = yesno(args.usesome or &amp;#039;no&amp;#039;)&lt;br /&gt;
		else&lt;br /&gt;
			usesome = yesno(args.usesome or &amp;#039;yes&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		if usesome then&lt;br /&gt;
			text = &amp;quot;Some or all works &amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			text = &amp;quot;Works &amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		if namespace == &amp;quot;Author&amp;quot; or namespace == &amp;quot;Author talk&amp;quot; then&lt;br /&gt;
			text = text .. &amp;quot;by this author&amp;quot;&lt;br /&gt;
		elseif namespace == &amp;quot;Portal&amp;quot; or namespace == &amp;quot;Portal talk&amp;quot; then&lt;br /&gt;
			text = text .. &amp;quot;listed in this portal&amp;quot;&lt;br /&gt;
		elseif namespace == &amp;quot;Category&amp;quot; or namespace == &amp;quot;Category talk&amp;quot; then&lt;br /&gt;
			text = text .. &amp;quot;in this category&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	elseif namespace == &amp;quot;File&amp;quot; or namespace == &amp;quot;File talk&amp;quot; then&lt;br /&gt;
		text = &amp;quot;This file&amp;quot;&lt;br /&gt;
	elseif namespace == &amp;quot;Image&amp;quot; or namespace == &amp;quot;Image talk&amp;quot; then&lt;br /&gt;
		text = &amp;quot;This image&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		text = &amp;quot;This work&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local useverb = yesno(args.useverb) or args.useverb == nil&lt;br /&gt;
	if useverb then&lt;br /&gt;
		local past = yesno(args.past or &amp;#039;no&amp;#039;)&lt;br /&gt;
		if past and p.plural_namespace() then&lt;br /&gt;
			text = text .. &amp;quot; were&amp;quot;&lt;br /&gt;
		elseif past then&lt;br /&gt;
			text = text .. &amp;quot; was&amp;quot;&lt;br /&gt;
		elseif p.plural_namespace() then&lt;br /&gt;
			text = text .. &amp;quot; are&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			text = text .. &amp;quot; is&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if yesno(args.lc or &amp;#039;no&amp;#039;) then&lt;br /&gt;
		text = string.lower(text)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.license_scope(frame)&lt;br /&gt;
	return p._license_scope(getArgs(frame))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--[=[&lt;br /&gt;
Implements [[Template:License grammar]]&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
function p._license_grammar(args)&lt;br /&gt;
	if not args then&lt;br /&gt;
		args = {}&lt;br /&gt;
	end&lt;br /&gt;
	if p.plural_namespace() then&lt;br /&gt;
		return args[2]&lt;br /&gt;
	else&lt;br /&gt;
		return args[1]&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.license_grammar(frame)&lt;br /&gt;
	return p._license_grammar(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>