Module:Lyrics:修订间差异

添加75字节 、​ 2022年1月27日 (星期四)
[InPageEdit] 没有编辑摘要 (编辑自 Special:Diff/117590)
imported>实验性:无用论废人
([InPageEdit] 没有编辑摘要)
imported>实验性:无用论废人
([InPageEdit] 没有编辑摘要 (编辑自 Special:Diff/117590))
 
(未显示同一用户的1个中间版本)
第21行: 第21行:
table.insert(tran, val)
table.insert(tran, val)
end
end
local lstyle = args.lstyle or ''
local rstyle = args.rstyle or ''


local html = mw.html.create('div')
local html = mw.html.create('div')
第50行: 第53行:
:tag('div')
:tag('div')
:addClass('Lyrics-original')
:addClass('Lyrics-original')
:node(lang.wrap(orig[i] or '', llang))
:cssText(lstyle)
:node(orig[i] or '')
:done()
:done()
if hastran then
if hastran then
line:tag('div')
line:tag('div')
:addClass('Lyrics-translated')
:addClass('Lyrics-translated')
:node(lang.wrap(tran[i] or '', rlang))
:cssText(rstyle)
:node(tran[i] or '')
:done()
:done()
end
end