Module:Variants: Difference between revisions

70 bytes added ,  Saturday at 02:10
no edit summary
(Created page with "local p = {} function sort_entries(entry1, entry2) -- Sort the variants based on the sum of the profession levels local entry1_value = (entry1['Profession Level A'] or 0) + (entry1['Profession Level B'] or 0) local entry2_value = (entry2['Profession Level A'] or 0) + (entry2['Profession Level B'] or 0) return entry1_value < entry2_value end function format_entry(entry) -- Format the search result as Page. At the moment, don't include profession data in the tab...")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 42:
function p.main(frame)
local args = frame:getParent().args
args.variant = args[1] or args.variant
return p.variant_table(args)
end