Module:DropsLine/dg

local p = {} local pt = require('Module:Paramtest')

function p.main(frame) local a = frame:getParent.args local ret = {} table.insert(ret, string.format('| ', pt.default_to(a.Image, a.Name), a.Name)) table.insert(ret, string.format('| %s', a.Name)) table.insert(ret, string.format('| %s', a.Tier)) table.insert(ret, string.format('| %s', pt.default_to(a.Smugvalue, 'Unknown [ edit] '))) table.insert(ret, string.format('| %s', a.Members)) local smw = '' if a.nosmw ~= 'yes' then smw = string.format(' ', a.Name, a.Name, 1, 10, 'Varies') end table.insert(ret, string.format('|- %s\n', smw)) return table.concat(ret, '\n') end

return p