×
Create a new article
Write your page title here:
We currently have 3,035 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,035Articles

Module:TestModule: Difference between revisions

(Created page with "local p = {} function p.add(frame) return tostring(tonumber(frame.args[1]) + tonumber(frame.args[2])) end return p")
 
No edit summary
Line 2: Line 2:


function p.add(frame)
function p.add(frame)
return tostring(tonumber(frame.args[1]) + tonumber(frame.args[2]))
return ("%02d"):format(tonumber(frame.args[1]) + tonumber(frame.args[2]))
end
end


return p
return p

Revision as of 20:46, 10 July 2024

Documentation for this module may be created at Module:TestModule/doc

local p = {}

function p.add(frame)
	return ("%02d"):format(tonumber(frame.args[1]) + tonumber(frame.args[2]))
end

return p