8,756
edits
mNo edit summary |
mNo edit summary |
||
Line 6: | Line 6: | ||
local buildcode = frame.args['code'] | local buildcode = frame.args['code'] | ||
local beta = frame.args['beta'] or '1' | local beta = frame.args['beta'] or '1' | ||
return p.decode(buildcode, beta) | local title = frame.args['title'] | ||
return p.decode(buildcode, beta, title) | |||
end | end | ||
function p.decode(buildcode, beta) | function p.decode(buildcode, beta, title) | ||
local genotype | local genotype | ||
local subtype | local subtype | ||
Line 81: | Line 82: | ||
attributes = p.fixattributes(bonus, attributes) | attributes = p.fixattributes(bonus, attributes) | ||
end | end | ||
output = p.MakeUpSheet(buildcode, genotype, subtype, | |||
classcalled, extname, attributes, bonus, exts, title) | |||
classcalled, extname, attributes, bonus, exts) | |||
return output | return output | ||
end | end | ||
Line 147: | Line 147: | ||
function p.MakeUpSheet(codeIn, genoIn, subtype, classcalledIn, extnameIn, | function p.MakeUpSheet(codeIn, genoIn, subtype, classcalledIn, extnameIn, | ||
attributes, bonus, exts) | attributes, bonus, exts, title) | ||
local frame = mw.getCurrentFrame() | local frame = mw.getCurrentFrame() | ||
return frame:expandTemplate { | return frame:expandTemplate { | ||
Line 165: | Line 165: | ||
exts = utilTable.concat(exts, "</br>"), | exts = utilTable.concat(exts, "</br>"), | ||
skills = subtype[8], | skills = subtype[8], | ||
notes = subtype[14] | notes = subtype[14], | ||
buildname = title, | |||
author = "Legacy Build Code" | |||
} | } | ||
} | } |