<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans">
	<id>https://wiki.ottohub.cn/index.php?action=history&amp;feed=atom&amp;title=Module%3ACategory_handler%2Fshared</id>
	<title>Module:Category handler/shared - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ottohub.cn/index.php?action=history&amp;feed=atom&amp;title=Module%3ACategory_handler%2Fshared"/>
	<link rel="alternate" type="text/html" href="https://wiki.ottohub.cn/index.php?title=Module:Category_handler/shared&amp;action=history"/>
	<updated>2026-11-25T06:42:48Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.ottohub.cn/index.php?title=Module:Category_handler/shared&amp;diff=8062&amp;oldid=prev</id>
		<title>OctoberSama：​创建页面，内容为“--源代码来自维基百科:https://zh.wikipedia.org/w/index.php?title=Module:Category_handler/shared&amp;oldid=46539643 --该部分代码使用CC BY-SA 4.0许可证 (https://creativecommons.org/licenses/by-sa/4.0/) -- This module contains shared functions used by Module:Category handler -- and its submodules.  local p = {}  function p.matchesBlacklist(page, blacklist) 	for i, pattern in ipairs(blacklist) do 		local match = mw.ustring.match(page, pattern) 		i…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.ottohub.cn/index.php?title=Module:Category_handler/shared&amp;diff=8062&amp;oldid=prev"/>
		<updated>2025-06-18T08:17:09Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“--源代码来自维基百科:https://zh.wikipedia.org/w/index.php?title=Module:Category_handler/shared&amp;amp;oldid=46539643 --该部分代码使用CC BY-SA 4.0许可证 (https://creativecommons.org/licenses/by-sa/4.0/) -- This module contains shared functions used by &lt;a href=&quot;/Module:Category_handler&quot; title=&quot;Module:Category handler&quot;&gt;Module:Category handler&lt;/a&gt; -- and its submodules.  local p = {}  function p.matchesBlacklist(page, blacklist) 	for i, pattern in ipairs(blacklist) do 		local match = mw.ustring.match(page, pattern) 		i…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--源代码来自维基百科:https://zh.wikipedia.org/w/index.php?title=Module:Category_handler/shared&amp;amp;oldid=46539643&lt;br /&gt;
--该部分代码使用CC BY-SA 4.0许可证 (https://creativecommons.org/licenses/by-sa/4.0/)&lt;br /&gt;
-- This module contains shared functions used by [[Module:Category handler]]&lt;br /&gt;
-- and its submodules.&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.matchesBlacklist(page, blacklist)&lt;br /&gt;
	for i, pattern in ipairs(blacklist) do&lt;br /&gt;
		local match = mw.ustring.match(page, pattern)&lt;br /&gt;
		if match then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getParamMappings(useLoadData)&lt;br /&gt;
	local dataPage = &amp;#039;Module:Namespace detect/data&amp;#039;&lt;br /&gt;
	if useLoadData then&lt;br /&gt;
		return mw.loadData(dataPage).mappings&lt;br /&gt;
	else&lt;br /&gt;
		return require(dataPage).mappings&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getNamespaceParameters(titleObj, mappings)&lt;br /&gt;
	-- We don&amp;#039;t use title.nsText for the namespace name because it adds&lt;br /&gt;
	-- underscores.&lt;br /&gt;
	local mappingsKey&lt;br /&gt;
	if titleObj.isTalkPage then&lt;br /&gt;
		mappingsKey = &amp;#039;talk&amp;#039;&lt;br /&gt;
	else&lt;br /&gt;
		mappingsKey = mw.site.namespaces[titleObj.namespace].name&lt;br /&gt;
	end&lt;br /&gt;
	mappingsKey = mw.ustring.lower(mappingsKey)&lt;br /&gt;
	return mappings[mappingsKey] or {}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>OctoberSama</name></author>
	</entry>
</feed>