Module:Article history: Difference between revisions

Content deleted Content added
m add the two missing classes to p._exportClasses
add some more details of things to implement, and add a helper function
Line 7:
-- other information such as the date it was featured on the main page.
-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
-- Helper functions
-------------------------------------------------------------------------------
 
local function isPositiveInteger(num)
return type(num) == 'number'
and math.floor(num) == num
and num > 0
and num < math.huge
end
 
-------------------------------------------------------------------------------
Line 15 ⟶ 26:
local Action = {}
Action.__index = Action
 
-- Properties to implement:
-- * title
-- * oldid
-- * paramNum
 
function Action:getResult()
end
 
function Action:getCurrentStatus()
end
 
-------------------------------------------------------------------------------