Module:Article history: Difference between revisions

Content deleted Content added
add code for category rendering
more structure rearranging
Line 33:
-- * oldid
-- * paramNum
 
function Action.new()
local obj = setmetatable({}, Action)
return obj
end
 
function Action:getResult()
Line 53 ⟶ 58:
-------------------------------------------------------------------------------
-- Status class
-- Status objects deal with possible current statuses of the article. Articles
-- can have more than one current status; for example, an article can be both a
-- good article and a former featured article.
-------------------------------------------------------------------------------
 
local Status = {}
Status.__index = Status
 
-------------------------------------------------------------------------------
-- DoubleStatus class
-- For when an article can have two distinct statuses, e.g. former featured
-- article status and good article status.
-------------------------------------------------------------------------------
 
local DoubleStatus = {}
DoubleStatus.__index = DoubleStatus
 
-------------------------------------------------------------------------------