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

代人,时大变了。

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

更改

跳到导航 跳到搜索
添加488字节 、 2014年6月18日 (三) 19:49
无编辑摘要
第20行: 第20行:  
return ''
 
return ''
 
end
 
end
local title = mw.title.makeTitle( 'Template', 'CGroup/' .. name )
+
local moduleTitle = mw.title.makeTitle( 'Module', 'CGroup/' .. name )
if title and title.exists then
+
if moduleTitle and moduleTitle.exists then
return frame:expandTemplate{ title = title }
+
local data = require( 'Module:CGroup/' .. name ).content
else
+
local pieces = {}
 +
for i, v in ipairs( data.content ) do
 +
if v.type == 'item' then
 +
table.insert( pieces, '-{H|' .. v.rule .. '}-' )
 +
end
 +
end
 
return tostring( mw.html.create( 'div' )
 
return tostring( mw.html.create( 'div' )
-- :attr( 'id', 'noteTA-group-' .. mw.uri.anchorEncode( name ) )
+
:attr( 'data-noteta-group-source', 'module' )
:attr( 'class', 'noteTA-missing' )
+
:wikitext( table.concat( pieces ) ) )
:attr( 'data-noteta-group', name ) )
   
end
 
end
 +
local templateTitle = mw.title.makeTitle( 'Template', 'CGroup/' .. name )
 +
if templateTitle and templateTitle.exists then
 +
return frame:expandTemplate{ title = templateTitle }
 +
end
 +
return tostring( mw.html.create( 'div' )
 +
-- :attr( 'id', 'noteTA-group-' .. mw.uri.anchorEncode( name ) )
 +
:attr( 'class', 'noteTA-missing' )
 +
:attr( 'data-noteta-group', name ) )
 
end
 
end
  
匿名用户

导航菜单