Difference between revisions of "Module:Drop"
Line 2: | Line 2: | ||
function export.main(frame) | function export.main(frame) | ||
+ | local args = frame:getParent().args | ||
local row = mw.html.create('tr'):addClass('coa-drop-row') | local row = mw.html.create('tr'):addClass('coa-drop-row') | ||
− | row:tag('td'):wikitext( | + | row:tag('td'):wikitext(args.Name) |
row:tag('td'):wikitext(frame.args.Quantity) | row:tag('td'):wikitext(frame.args.Quantity) | ||
row:tag('td'):wikitext(frame.args.Rarity) | row:tag('td'):wikitext(frame.args.Rarity) |
Revision as of 12:24, 17 November 2019
Documentation for this module may be created at Module:Drop/doc
local export = {} function export.main(frame) local args = frame:getParent().args local row = mw.html.create('tr'):addClass('coa-drop-row') row:tag('td'):wikitext(args.Name) row:tag('td'):wikitext(frame.args.Quantity) row:tag('td'):wikitext(frame.args.Rarity) return tostring(row) end return export