Module:Tasks

local p = {} local taskData = mw.loadData( 'Module:Tasks/data' )

function p.getDrops(frame) local tArgs = frame:getParent if not(tArgs.args[1]) then tArgs = frame end

local duration = tArgs.args[1] local joint   = (tArgs.args[2] and tArgs.args[2] ~= "") local ipName  = tArgs.args[3]

if ipName then ipName = string.lower(ipName) end local taskText

local ipTaskData = taskData[ipName] if not ipTaskData then ipTaskData = taskData["dmk"] end

--   if versionData[versionNo] then --       versionText = versionData[versionNo][1] .. " Update" -- --       if not txtOnly then --           versionText = "" .. versionText .. "" --       end -- --       if inclDate then --           versionText = versionText .. " on " .. versionData[versionNo][2] --       end --   else --       versionText = "Unknown Version" --   end local s = "|12h\n| nowrap|37, 158"

--   return frame:expandTemplate{title = ipTaskData["name"]} return frame:preprocess( s ) end return p