Module:Achievements

-- local p = {}

local data = require("Module:Achievements/data") local all_achievements = data.achievements

Infobox local infobox_template = [=[ ]=]

function p.InfoboxBTD6(frame) local achievement_name = frame.args[1] ~= "" and frame.args[1] or mw.title.getCurrentTitle.text local achievement = all_achievements[achievement_name] return frame:preprocess(infobox_template:format( achievement_name or "", achievement.Image or "", achievement.Amount or "", achievement.Desc or "", achievement.Hidden or "", achievement.Coop or "", achievement.Version or "", achievement.Reward1 or "", achievement.Reward2 or "", achievement.Reward3 or "", achievement.Reward4 or "" )) end

Desc function p.Desc(frame) return Description(all_achievements[frame.args[1]].Desc) end

return p --