Module:NoteTA: Difference between revisions
创建页面,内容为“local z = {} local WikitextLC = require( 'Module:WikitextLC' ) function Tcode( args ) if args.T == nil or args.T == '' then return '' end local div = mw.html.create( 'div' ) :attr( 'class', 'noteTA-title' ) :attr( 'data-noteta-code', args.T ) :wikitext( WikitextLC.title( args.T ) ) if args.dt ~= nil and args.dt ~= '' then div:attr( 'data-noteta-desc', args.dt ) end return tostring( div ) end function group( name, frame ) if name == nil or nam…” |
m Text replacement - "{{lc:}}" to "" |
||
(4 intermediate revisions by the same user not shown) | |||
Line 57: | Line 57: | ||
:wikitext( code ) ) | :wikitext( code ) ) | ||
if args.G31 ~= nil then | if args.G31 ~= nil then | ||
code = code .. '[[Category: | code = code .. '[[Category:N{{lc:oteTA模板参数使用数量超过限制的页面|G}}]]' | ||
end | end | ||
end | end | ||
Line 88: | Line 88: | ||
:wikitext( code ) ) | :wikitext( code ) ) | ||
if args[31] ~= nil then | if args[31] ~= nil then | ||
code = code .. '[[Category: | code = code .. '[[Category:N{{lc:oteTA模板参数使用数量超过限制的页面|L}}]]' | ||
end | end | ||
end | end |