Module:Sandbox/User:Microbrews/Variants: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
Microbrews (talk | contribs) (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...") |
Microbrews (talk | contribs) No edit summary |
||
Line 46: | Line 46: | ||
contents = '[[Category:Empty variant list]]' |
contents = '[[Category:Empty variant list]]' |
||
end |
end |
||
contents = '[[' .. main_variant .. ']]' .. ' : ' .. contents |
|||
return mw.html.create('div') |
return mw.html.create('div') |
||
:addClass('variants-header') |
:addClass('variants-header') |