Module:Equipment/Recommended: Difference between revisions

m
a little bit of testing
mNo edit summary
m (a little bit of testing)
Line 70: Line 70:
end
end
local parent = mw.html.create('table'):addClass('wikitable')
local parent = mw.html.create('table')
-- If setname is passed in, apply it above the table
-- If style is passed in, apply it above the table
if args.setname and params.has_content(args.setname) then
if args.style and params.has_content(args.style) then
parent:tag('caption'):wikitext(string.format('Recommended equipment for %s', args.setname))
parent:tag('caption'):wikitext(string.format('Recommended equipment for %s', args.style))
end
end


Line 80: Line 79:
else
else
parent:addClass('wikitable')
parent:tag('tr')
parent:tag('tr')
:tag('th'):wikitext('Slot'):done()
:tag('th'):wikitext('Slot'):done()
892

edits