"ഘടകം:WDL" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

Content deleted Content added
imported>Qed237
Correct minus sign as per Template talk:WDL and tested at module sandbox
compare with tonumber
വരി 66:
if args.diff == 'yes' then
if tonumber(args['for']) and tonumber(args.against) then
retval = retval .. tableprefix .. string.format('%s%d\n', tonumber(args['for']) < tonumber(args.against) and '−' or '+', math.abs(args['for'] - args.against))
else
retval = retval .. tableprefix .. '<span style="display:none">!</span>—\n'
"https://ml.wikipedia.org/wiki/ഘടകം:WDL" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്