Module:GetCreatureStats: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Created page with "local p = {} local cargo = mw.ext.cargo function p.main(frame) --[ If creature is specified, cargo query any unfilled stats] local creature = frame.args.creature or ''...")
 
mNo edit summary
Line 17: Line 17:
   hp = (frame.args.hp ~= '' and frame.args.hp or resulttable['HP']) or '0'
   hp = (frame.args.hp ~= '' and frame.args.hp or resulttable['HP']) or '0'


   frame:expandTemplate{title = 'CharaSim', args = {['title'] = dispname, ['hp'] = hp}}
   frame:expandTemplate{title = 'CharaSim', args = {title = dispname, hp = hp}}
end
end


return p
return p

Navigation menu