今天是2025年12月21日 第51周 星期日
代人,时大变了。
我们生活在大地上,但我们的梦想超越天空。
變更
跳至導覽
跳至搜尋
行 24:
行 24:
− +
− if v.type == 'item' then+
− table.insert( pieces, '-{H|' .. v.rule .. '}-' )+
+
+
+
+
+
+
− return tostring( mw.html.create( 'div' )
− :attr( 'data-noteta-group-source', 'module' )
− :attr( 'data-noteta-group', name )
− :wikitext( table.concat( pieces ) ) )
無編輯摘要
local data = require( 'Module:CGroup/' .. name )
local data = require( 'Module:CGroup/' .. name )
local pieces = {}
local pieces = {}
for i, v in ipairs( data.content ) do
if data.content then
for i, v in ipairs( data.content ) do
if v.type == 'item' and v.rule then
table.insert( pieces, '-{H|' .. v.rule .. '}-' )
end
end
end
return tostring( mw.html.create( 'div' )
:attr( 'data-noteta-group-source', 'module' )
:attr( 'data-noteta-group', name )
:wikitext( table.concat( pieces ) ) )
end
end
end
end
local templateTitle = mw.title.makeTitle( 'Template', 'CGroup/' .. name )
local templateTitle = mw.title.makeTitle( 'Template', 'CGroup/' .. name )