ElEditors, Interface administrators, Administrators
70,888
edits
No edit summary |
(Fix an issue where tabs were displayed in a wrong order) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 51: | Line 51: | ||
} | } | ||
local old_content = mw.html.create('div'): | local old_content = mw.html.create('div') | ||
local new_content = mw.html.create('div'): | :tag('div'):wikitext(old_table) | ||
if args.old then | |||
old_content:tag('div'):wikitext(frame:preprocess(string.char(10) .. args.old)) | |||
end | |||
local new_content = mw.html.create('div') | |||
:tag('div'):wikitext(new_table) | |||
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 |