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