Module:Sandbox/One Bar: Difference between revisions

One Bar (talk | contribs)
generated table test
One Bar (talk | contribs)
m fix
Line 4: Line 4:
local soul_unlocks_data = mw.loadJsonData("Data:SoulUnlockData.json")
local soul_unlocks_data = mw.loadJsonData("Data:SoulUnlockData.json")


local function souls(item)
local function souls(frame, item)
return frame:expandTemplate{ title = 'Souls', args = {item}}
return frame:expandTemplate{ title = 'Souls', args = {item}}
end
end
Line 30: Line 30:
:tag('th'):wikitext('PL Increase'):done()
:tag('th'):wikitext('PL Increase'):done()
for _, v in ipairs(pi_souls_list) do
for _, v in ipairs(pi_souls_list) do
createTableHeader:tag('th'):wikitext(souls(v)):done()
createTableHeader:tag('th'):wikitext(souls(frame, v)):done()
end
end
createTable:node(createTableHeader)
createTable:node(createTableHeader)