ElEditors, Interface administrators, Administrators
70,866
edits
No edit summary |
(Fix an issue where tabs were displayed in a wrong order) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 50: | Line 50: | ||
args = new_args | args = new_args | ||
} | } | ||
local old_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 |