Module:Sandbox/One Bar: Difference between revisions

Jump to navigation Jump to search
One Bar (talk | contribs)
No edit summary
One Bar (talk | contribs)
No edit summary
Line 19: Line 19:
}
}


p.pi_table = function(frame)
p.write_power_increase_table = function(frame)
local pi_souls_list = {}
local pi_souls_list = {}
for _, v in ipairs(soul_unlocks_data) do
for _, v in ipairs(soul_unlocks_data) do
Line 40: Line 40:
local suffix = property == "BulletDamage" and " (Full Shot)" or ""
local suffix = property == "BulletDamage" and " (Full Shot)" or ""
local create_div = mw.html.create("div"):css("overflow-x", "auto")
local create_table = mw.html.create("table"):addClass("wikitable sortable mw-collapsible mw-collapsed"):done()
local create_table = mw.html.create("table"):addClass("wikitable sortable mw-collapsible mw-collapsed"):done()
local title_header = mw.html.create("tr")
local title_header = mw.html.create("tr")
title_header:tag("th"):attr("colspan", (level_count + 3)):wikitext("Base " .. name .. " based on PI"):done()
title_header:tag("th"):attr("colspan", (level_count + 3)):wikitext("Base " .. name .. " based on PI"):done()
Line 111: Line 109:
end
end
create_div:node(create_table)
return tostring(create_table)
return tostring(create_div)
end
end