<?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%3ATransclusion_count</id>
	<title>模块:Transclusion count - 版本历史</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%3ATransclusion_count"/>
	<link rel="alternate" type="text/html" href="https://www.ts-cn.wiki/index.php?title=%E6%A8%A1%E5%9D%97:Transclusion_count&amp;action=history"/>
	<updated>2026-04-20T00:36:23Z</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:Transclusion_count&amp;diff=1164&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:Transclusion_count&amp;diff=1164&amp;oldid=prev"/>
		<updated>2020-03-14T10:30:37Z</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:30的版本&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-1163:rev-1164 --&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:Transclusion_count&amp;diff=1163&amp;oldid=prev</id>
		<title>tswiki&gt;Ahecht：​Retrieve module usage data</title>
		<link rel="alternate" type="text/html" href="https://www.ts-cn.wiki/index.php?title=%E6%A8%A1%E5%9D%97:Transclusion_count&amp;diff=1163&amp;oldid=prev"/>
		<updated>2020-01-08T23:01:45Z</updated>

		<summary type="html">&lt;p&gt;Retrieve module usage data&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.fetch(frame)&lt;br /&gt;
	local template = nil&lt;br /&gt;
	local return_value = nil&lt;br /&gt;
&lt;br /&gt;
	-- Use demo parameter if it exists, otherswise use current template name&lt;br /&gt;
	local namespace = mw.title.getCurrentTitle().namespace&lt;br /&gt;
	if frame.args[&amp;quot;demo&amp;quot;] and frame.args[&amp;quot;demo&amp;quot;] ~= &amp;quot;&amp;quot; then&lt;br /&gt;
		template = frame.args[&amp;quot;demo&amp;quot;]&lt;br /&gt;
	elseif namespace == 10 then -- Template namespace&lt;br /&gt;
		template = mw.title.getCurrentTitle().text&lt;br /&gt;
	elseif namespace == 828 then -- Module namespace&lt;br /&gt;
		template = (mw.site.namespaces[828].name .. &amp;quot;:&amp;quot; .. mw.title.getCurrentTitle().text)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- If in template or module namespace, look up count in /data&lt;br /&gt;
	if template ~= nil then&lt;br /&gt;
		namespace = mw.title.new(template, &amp;quot;Template&amp;quot;).namespace&lt;br /&gt;
		if namespace == 10 or namespace == 828 then&lt;br /&gt;
			template =  mw.ustring.gsub(template, &amp;quot;/doc$&amp;quot;, &amp;quot;&amp;quot;) -- strip /doc from end&lt;br /&gt;
			local index = mw.ustring.sub(mw.title.new(template).text,1,1)&lt;br /&gt;
			local data = mw.loadData(&amp;#039;Module:Transclusion_count/data/&amp;#039; .. (mw.ustring.find(index, &amp;quot;%a&amp;quot;) and index or &amp;quot;other&amp;quot;))&lt;br /&gt;
			return_value = tonumber(data[mw.ustring.gsub(template, &amp;quot; &amp;quot;, &amp;quot;_&amp;quot;)])&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- If database value doesn&amp;#039;t exist, use value passed to template&lt;br /&gt;
	if return_value == nil and frame.args[1] ~= nil then&lt;br /&gt;
		local arg1=mw.ustring.match(frame.args[1], &amp;#039;[%d,]+&amp;#039;)&lt;br /&gt;
		return_value = tonumber(frame:callParserFunction(&amp;#039;formatnum&amp;#039;, arg1, &amp;#039;R&amp;#039;))&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return return_value	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>tswiki&gt;Ahecht</name></author>
	</entry>
</feed>