<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://zybkcn.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ANoteTA</id>
	<title>Module:NoteTA - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://zybkcn.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ANoteTA"/>
	<link rel="alternate" type="text/html" href="https://zybkcn.com/w/index.php?title=Module:NoteTA&amp;action=history"/>
	<updated>2026-05-04T17:03:07Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://zybkcn.com/w/index.php?title=Module:NoteTA&amp;diff=23509&amp;oldid=prev</id>
		<title>入我相思门：​创建页面，内容为“local z = {} local WikitextLC = require( &#039;Module:WikitextLC&#039; )  function Tcode( args ) 	if args.T == nil or args.T == &#039;&#039; then 		return &#039;&#039; 	end 	local div = mw.html.create( &#039;div&#039; ) 		:attr( &#039;class&#039;, &#039;noteTA-title&#039; ) 		:attr( &#039;data-noteta-code&#039;, args.T ) 		:wikitext( WikitextLC.title( args.T ) ) 	if args.dt ~= nil and args.dt ~= &#039;&#039; then 		div:attr( &#039;data-noteta-desc&#039;, args.dt ) 	end 	return tostring( div ) end  function group( name, frame ) 	if name == nil or nam…”</title>
		<link rel="alternate" type="text/html" href="https://zybkcn.com/w/index.php?title=Module:NoteTA&amp;diff=23509&amp;oldid=prev"/>
		<updated>2022-05-02T14:19:46Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“local z = {} local WikitextLC = require( &amp;#039;Module:WikitextLC&amp;#039; )  function Tcode( args ) 	if args.T == nil or args.T == &amp;#039;&amp;#039; then 		return &amp;#039;&amp;#039; 	end 	local div = mw.html.create( &amp;#039;div&amp;#039; ) 		:attr( &amp;#039;class&amp;#039;, &amp;#039;noteTA-title&amp;#039; ) 		:attr( &amp;#039;data-noteta-code&amp;#039;, args.T ) 		:wikitext( WikitextLC.title( args.T ) ) 	if args.dt ~= nil and args.dt ~= &amp;#039;&amp;#039; then 		div:attr( &amp;#039;data-noteta-desc&amp;#039;, args.dt ) 	end 	return tostring( div ) end  function group( name, frame ) 	if name == nil or nam…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local z = {}&lt;br /&gt;
local WikitextLC = require( &amp;#039;Module:WikitextLC&amp;#039; )&lt;br /&gt;
&lt;br /&gt;
function Tcode( args )&lt;br /&gt;
	if args.T == nil or args.T == &amp;#039;&amp;#039; then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	local div = mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
		:attr( &amp;#039;class&amp;#039;, &amp;#039;noteTA-title&amp;#039; )&lt;br /&gt;
		:attr( &amp;#039;data-noteta-code&amp;#039;, args.T )&lt;br /&gt;
		:wikitext( WikitextLC.title( args.T ) )&lt;br /&gt;
	if args.dt ~= nil and args.dt ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		div:attr( &amp;#039;data-noteta-desc&amp;#039;, args.dt )&lt;br /&gt;
	end&lt;br /&gt;
	return tostring( div )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function group( name, frame )&lt;br /&gt;
	if name == nil or name == &amp;#039;&amp;#039; then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	local moduleTitle = mw.title.makeTitle( &amp;#039;Module&amp;#039;, &amp;#039;CGroup/&amp;#039; .. name )&lt;br /&gt;
	if moduleTitle and moduleTitle.exists then&lt;br /&gt;
		local data = mw.loadData( &amp;#039;Module:CGroup/&amp;#039; .. name )&lt;br /&gt;
		local pieces = {}&lt;br /&gt;
		if data.content then&lt;br /&gt;
			for i, v in ipairs( data.content ) do&lt;br /&gt;
				if v.type == &amp;#039;item&amp;#039; and v.rule then&lt;br /&gt;
					table.insert( pieces, &amp;#039;-{H|&amp;#039; .. v.rule .. &amp;#039;}-&amp;#039; )&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			return tostring( mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
				:attr( &amp;#039;data-noteta-group-source&amp;#039;, &amp;#039;module&amp;#039; )&lt;br /&gt;
				:attr( &amp;#039;data-noteta-group&amp;#039;, data.name or name )&lt;br /&gt;
				:wikitext( table.concat( pieces ) ) )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local templateTitle = mw.title.makeTitle( &amp;#039;Template&amp;#039;, &amp;#039;CGroup/&amp;#039; .. name )&lt;br /&gt;
	if templateTitle and templateTitle.exists then&lt;br /&gt;
		return frame:expandTemplate{ title = templateTitle }&lt;br /&gt;
	end&lt;br /&gt;
	return tostring( mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
			-- :attr( &amp;#039;id&amp;#039;, &amp;#039;noteTA-group-&amp;#039; .. mw.uri.anchorEncode( name ) )&lt;br /&gt;
			:attr( &amp;#039;data-noteta-group-source&amp;#039;, &amp;#039;none&amp;#039; )&lt;br /&gt;
			:attr( &amp;#039;data-noteta-group&amp;#039;, name ) )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Gcode( args, frame )&lt;br /&gt;
	local code = {}&lt;br /&gt;
	for i = 1, 30 do&lt;br /&gt;
		table.insert( code, group( args[&amp;#039;G&amp;#039; .. i], frame ) )&lt;br /&gt;
	end&lt;br /&gt;
	code = table.concat( code )&lt;br /&gt;
	if code ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		code = tostring( mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
				:attr( &amp;#039;class&amp;#039;, &amp;#039;noteTA-group&amp;#039; )&lt;br /&gt;
				:wikitext( code ) )&lt;br /&gt;
		if args.G31 ~= nil then&lt;br /&gt;
			code = code .. &amp;#039;[[Category:NoteTA模板参数使用数量超过限制的页面|G]]&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return code&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function local_( i, code, desc )&lt;br /&gt;
	if code == nil or code == &amp;#039;&amp;#039; then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	local div = mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
		-- :attr( &amp;#039;id&amp;#039;, &amp;#039;noteTA-local-&amp;#039; .. i )&lt;br /&gt;
		:attr( &amp;#039;data-noteta-code&amp;#039;, code )&lt;br /&gt;
		:wikitext( WikitextLC.hidden( code ) )&lt;br /&gt;
	if desc ~= nil and desc ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		div:attr( &amp;#039;data-noteta-desc&amp;#039;, desc )&lt;br /&gt;
	end&lt;br /&gt;
	return tostring( div )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Lcode( args )&lt;br /&gt;
	local code = {}&lt;br /&gt;
	for i = 1, 30 do&lt;br /&gt;
		table.insert( code, local_( i, args[i], args[&amp;#039;d&amp;#039; .. i] ) )&lt;br /&gt;
	end&lt;br /&gt;
	code = table.concat( code )&lt;br /&gt;
	if code ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		code = tostring( mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
				:attr( &amp;#039;class&amp;#039;, &amp;#039;noteTA-local&amp;#039; )&lt;br /&gt;
				:wikitext( code ) )&lt;br /&gt;
		if args[31] ~= nil then&lt;br /&gt;
			code = code .. &amp;#039;[[Category:NoteTA模板参数使用数量超过限制的页面|L]]&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return code&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function z.main( frame )&lt;br /&gt;
	local args&lt;br /&gt;
	if frame == mw.getCurrentFrame() then&lt;br /&gt;
		-- Being called from {{noteTA}}&lt;br /&gt;
		args = frame:getParent().args&lt;br /&gt;
	else&lt;br /&gt;
		-- Being called from another module&lt;br /&gt;
		args = frame&lt;br /&gt;
		frame = mw.getCurrentFrame()&lt;br /&gt;
	end&lt;br /&gt;
	local Tc = Tcode( args )&lt;br /&gt;
	local Gc = Gcode( args, frame )&lt;br /&gt;
	local Lc = Lcode( args )&lt;br /&gt;
	local code = Tc .. Gc .. Lc&lt;br /&gt;
	if code ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		local hash = require( &amp;#039;Module:Crc32lua&amp;#039; ).crc32( mw.dumpObject( args ) )&lt;br /&gt;
		code = frame:extensionTag{&lt;br /&gt;
			name = &amp;#039;indicator&amp;#039;,&lt;br /&gt;
			content = &amp;#039;[[File:Zh conversion icon m.svg|35px|本页使用了标题或全文手工转换|link=]]&amp;#039;,&lt;br /&gt;
			args = { name = string.format( &amp;#039;noteTA-%x&amp;#039;, hash ) },&lt;br /&gt;
		} .. tostring( mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
				:attr( &amp;#039;id&amp;#039;, string.format( &amp;#039;noteTA-%x&amp;#039;, hash ) )&lt;br /&gt;
				:attr( &amp;#039;class&amp;#039;, &amp;#039;noteTA&amp;#039; )&lt;br /&gt;
				:wikitext( code ) )&lt;br /&gt;
		if mw.title.getCurrentTitle():inNamespace( &amp;#039;Template&amp;#039; ) then&lt;br /&gt;
			code = code .. &amp;#039;[[Category:放置于模板的noteTA]]&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return code&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return z&lt;/div&gt;</summary>
		<author><name>入我相思门</name></author>
	</entry>
</feed>