Module:Sandbox/Gioguch/temp: Difference between revisions

Content deleted Content added
Davidwr (talk | contribs)
just making sure this page can be saved
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1:
--[[--------------------------< S U B >------------------------------------------------------------------------
-- test, see https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Lua&diff=979667812&oldid=979411561
]]
 
local function sub (frame)
local a = frame.args[1]
local b = frame.args[2]
return a - b
end
 
 
--[[--------------------------< A D D >------------------------------------------------------------------------
]]
 
local function add (frame)
local a = frame.args[1]
local b = frame.args[2]
return a + b
end
 
 
--[[--------------------------< E X P O R T E D F U N C I O N S >--------------------------------------------
]]
 
return {
add = add,
sub = sub
}