Module:Variants: Difference between revisions

Fix error when no variant smw data exists, and add tracking category
No edit summary
(Fix error when no variant smw data exists, and add tracking category)
Line 25:
}
local smw_data = mw.smw.ask(query)
if not smw_data then
return {'[[Category:Empty variant list]]'}
end
table.sort(smw_data, sort_entries)
local table_contents = {}