Anonymous

Module:Traits: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Line 59: Line 59:
         t.details_cooldown = {args.cd, args.cd_pvp, args.cd_enhanced, args.cd_enhanced_pvp}
         t.details_cooldown = {args.cd, args.cd_pvp, args.cd_enhanced, args.cd_enhanced_pvp}
         t.details_duration = {args.duration, args.duration_pvp, args.duration_enhanced, args.duration_enhanced_pvp}
         t.details_duration = {args.duration, args.duration_pvp, args.duration_enhanced, args.duration_enhanced_pvp}
        -- Automatic math
        for k, v in pairs(t) do
            if string.find(k, 'details_') then
                for k2, v2 in ipairs(v) do
                    t[k][k2] = frame:preprocess('{{#expr: ' .. v2 .. '}}')
                end
            end
        end


         t.colspan = 1
         t.colspan = 1