Module:Variants: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
No edit summary
(Fix error when no variant smw data exists, and add tracking category)
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 = {}