Module:ProfessionList: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (fix edge cases with sell price arithmetic)
m (one_column_image_text has no sort parameter)
Line 167: Line 167:
end
end


function p.one_column_image_text(sort,materials)
function p.one_column_image_text(materials)
local materialCell = mw.html.create('td')
local materialCell = mw.html.create('td')


for _, mat in ipairs(item.materials) do
for _, mat in ipairs(materials) do
materialCell:wikitext(mat.quantity .. ' &times; [[File:' .. mat.name .. '.png|18px|link=' .. mat.name .. ']] [[' .. mat.name .. ']]<br>')
materialCell:wikitext(mat.quantity .. ' &times; [[File:' .. mat.name .. '.png|18px|link=' .. mat.name .. ']] [[' .. mat.name .. ']]<br>')
end
end