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 67: Line 67:
local filtered_heroes = filtered_heroes()
local filtered_heroes = filtered_heroes()
mw.logObject(filtered_heroes)
for _, hero in ipairs(filtered_heroes) do
for _, hero in ipairs(filtered_heroes) do
local base = hero[property]
local base = hero[property]
Line 74: Line 73:
local tableData = mw.html.create("tr")
local tableData = mw.html.create("tr")
tableData
tableData
:tag("td"):wikitext(hero_icon(hero["Name"])):done()
:tag("td"):wikitext(hero_icon(frame, hero["Name"])):done()
:tag("td"):wikitext(base):done()
:tag("td"):wikitext(base):done()
:tag("td"):wikitext("+" .. level):done()
:tag("td"):wikitext("+" .. level):done()