更改
无编辑摘要
local div = mw.html.create( 'div' )
local div = mw.html.create( 'div' )
:attr( 'class', 'noteTA-title' )
:attr( 'class', 'noteTA-title' )
:attr( 'data-noteta-code', mw.uri.encode( args.T ) )
:attr( 'data-noteta-code', args.T )
:wikitext( WikitextLC.title( args.T ) )
:wikitext( WikitextLC.title( args.T ) )
if args.dt ~= nil and args.dt ~= '' then
if args.dt ~= nil and args.dt ~= '' then
div:attr( 'data-noteta-desc', mw.uri.encode( args.dt ) )
div:attr( 'data-noteta-desc', args.dt )
end
end
return tostring( div )
return tostring( div )
local div = mw.html.create( 'div' )
local div = mw.html.create( 'div' )
-- :attr( 'id', 'noteTA-local-' .. i )
-- :attr( 'id', 'noteTA-local-' .. i )
:attr( 'data-noteta-code', mw.uri.encode( code ) )
:attr( 'data-noteta-code', code )
:wikitext( WikitextLC.hidden( code ) )
:wikitext( WikitextLC.hidden( code ) )
if desc ~= nil and desc ~= '' then
if desc ~= nil and desc ~= '' then
div:attr( 'data-noteta-desc', mw.uri.encode( desc ) )
div:attr( 'data-noteta-desc', desc )
end
end
return tostring( div )
return tostring( div )