Editing Module:Template test case
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 758: | Line 758: | ||
------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ||
-- | -- Exports | ||
------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ||
local | local p = {} | ||
function | function p.table(args, cfg) | ||
cfg = cfg or mw.loadData(DATA_MODULE) | cfg = cfg or mw.loadData(DATA_MODULE) | ||
Line 795: | Line 792: | ||
end | end | ||
function | function p.nowiki(args, cfg) | ||
cfg = cfg or mw.loadData(DATA_MODULE) | cfg = cfg or mw.loadData(DATA_MODULE) | ||
Line 807: | Line 804: | ||
return tostring(testCaseObj) | return tostring(testCaseObj) | ||
end | end | ||
function p.main(frame, cfg) | function p.main(frame, cfg) | ||
Line 847: | Line 838: | ||
end | end | ||
return | return p[func](args, cfg) | ||
end | end | ||