Module:Review

local p = {}

function makeLinkText(reviewerName,altLink,userOrGroup) local linkText = "" if (reviewerName == nil) then linkText = "unknown" else linkText = "" .. reviewerName .. "" end return linkText end

function p.MakeCategories( frame ) local tArgs = frame:getParent if not(tArgs.args[1]) then tArgs = frame end local reviewerName = tArgs.args[1] or tArgs.args["reviewerName"] local wikitextOut = "" if not (tArgs.args["suppressCategories"]) then wikitextOut = wikitextOut .. ""	   if (reviewerName) then local reviewCat = "[[Category:articles under review by "	      reviewCat = reviewCat .. reviewerName	       reviewCat = reviewCat .. "]]" wikitextOut = wikitextOut .. reviewCat end end return wikitextOut end function p.main( frame ) local tArgs = frame:getParent if not(tArgs.args[1]) then tArgs = frame end local reviewerName = tArgs.args[1] or tArgs.args["reviewerName"] local altLink = tArgs.args[2] or tArgs.args["altLink"] local userOrGroup = tArgs.args["userOrGroup"] local displayText = "''This article is under review by " displayText = displayText .. makeLinkText(reviewerName,altLink,userOrGroup) displayText = displayText .. "''"   local wikitextOut = displayText return wikitextOut end return p