Module:Sandbox/User:Microbrews/Variants: Difference between revisions

no edit summary
(Created page with "require('Module:Mw.html extension') 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 get_table_info(args, get_images) local variant_name = args.variant or mw.title.g...")
 
No edit summary
Line 46:
contents = '[[Category:Empty variant list]]'
end
contents = '[[' .. main_variant .. ']]' .. '&nbsp;:&nbsp;' .. contents
return mw.html.create('div')
:addClass('variants-header')
291

edits