<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://www.ts-cn.wiki/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ACategory_handler%2Fshared</id>
	<title>模块:Category handler/shared - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://www.ts-cn.wiki/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ACategory_handler%2Fshared"/>
	<link rel="alternate" type="text/html" href="https://www.ts-cn.wiki/index.php?title=%E6%A8%A1%E5%9D%97:Category_handler/shared&amp;action=history"/>
	<updated>2026-04-19T23:06:32Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://www.ts-cn.wiki/index.php?title=%E6%A8%A1%E5%9D%97:Category_handler/shared&amp;diff=1188&amp;oldid=prev</id>
		<title>AltracasysHC：​导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://www.ts-cn.wiki/index.php?title=%E6%A8%A1%E5%9D%97:Category_handler/shared&amp;diff=1188&amp;oldid=prev"/>
		<updated>2020-03-14T10:31:10Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&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;zh-Hans-CN&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;2020年3月14日 (六) 10:31的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key tonesphere_db:diff:1.41:old-1187:rev-1188 --&gt;
&lt;/table&gt;</summary>
		<author><name>AltracasysHC</name></author>
	</entry>
	<entry>
		<id>https://www.ts-cn.wiki/index.php?title=%E6%A8%A1%E5%9D%97:Category_handler/shared&amp;diff=1187&amp;oldid=prev</id>
		<title>tswiki&gt;El C：​Changed protection level for &quot;Module:Category handler/shared&quot;: High-risk Lua module ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://www.ts-cn.wiki/index.php?title=%E6%A8%A1%E5%9D%97:Category_handler/shared&amp;diff=1187&amp;oldid=prev"/>
		<updated>2019-04-27T19:03:28Z</updated>

		<summary type="html">&lt;p&gt;Changed protection level for &amp;quot;&lt;a href=&quot;/%E6%A8%A1%E5%9D%97:Category_handler/shared&quot; title=&quot;模块:Category handler/shared&quot;&gt;Module:Category handler/shared&lt;/a&gt;&amp;quot;: &lt;a href=&quot;/index.php?title=WP:High-risk_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:High-risk templates（页面不存在）&quot;&gt;High-risk Lua module&lt;/a&gt; ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&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>tswiki&gt;El C</name></author>
	</entry>
</feed>