今天是2024年7月1日 第27周 星期一

代人,时大变了。

我们生活在大地上,但我们的梦想超越天空。

更改

跳到导航 跳到搜索
添加49字节 、 2014年6月18日 (三) 20:58
无编辑摘要
第24行: 第24行:  
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
if v.type == 'item' then
+
for i, v in ipairs( data.content ) do
table.insert( pieces, '-{H|' .. v.rule .. '}-' )
+
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
return tostring( mw.html.create( 'div' )
  −
:attr( 'data-noteta-group-source', 'module' )
  −
:attr( 'data-noteta-group', name )
  −
:wikitext( table.concat( pieces ) ) )
   
end
 
end
 
local templateTitle = mw.title.makeTitle( 'Template', 'CGroup/' .. name )
 
local templateTitle = mw.title.makeTitle( 'Template', 'CGroup/' .. name )
匿名用户

导航菜单