Editing Module:Variants
Jump to navigation
Jump to search
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 25: | Line 25: | ||
} |
} |
||
local smw_data = mw.smw.ask(query) |
local smw_data = mw.smw.ask(query) |
||
if not smw_data then |
|||
return {'[[Category:Empty variant list]]'} |
|||
end |
|||
table.sort(smw_data, sort_entries) |
table.sort(smw_data, sort_entries) |
||
local table_contents = {} |
local table_contents = {} |
||
Line 45: | Line 42: | ||
function p.main(frame) |
function p.main(frame) |
||
local args = frame:getParent().args |
local args = frame:getParent().args |
||
mw.log('Test') |
|||
args.variant = args[1] or args.variant |
|||
return |
return args |
||
--return p.variant_table(args) |
|||
end |
end |
||