ElEditors, Interface administrators, Administrators
70,892
edits
No edit summary |
(Fix an issue where tabs were displayed in a wrong order) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 53: | Line 53: | ||
local old_content = mw.html.create('div') | local old_content = mw.html.create('div') | ||
:tag('div'):wikitext(old_table) | :tag('div'):wikitext(old_table) | ||
:tag('div'):wikitext(args.old) | |||
if args.old then | |||
old_content:tag('div'):wikitext(frame:preprocess(string.char(10) .. args.old)) | |||
end | |||
local new_content = mw.html.create('div') | local new_content = mw.html.create('div') | ||
:tag('div'):wikitext(new_table) | :tag('div'):wikitext(new_table) | ||
:tag('div'):wikitext(args.new) | |||
if args.new or args.old then | |||
new_content:tag('div'):wikitext(frame:preprocess(string.char(10) .. (args.new or args.old))) | |||
end | |||
local kr_date = 'KR (' .. args.date .. ')' | local kr_date = 'KR (' .. args.date .. ')' | ||
local tabber = frame: | local tabber = frame:preprocess("<tabber>\\\\NA=".. tostring(old_content) .."\\\\".. kr_date .."=".. tostring(new_content) .."</tabber>") | ||
return tabber | return tabber |