Module:AchievementsList

From Eco - English Wiki
Revision as of 10:44, 19 June 2024 by StalEF (talk | contribs)

local p = {}

function p.main()
	local wiki = ''

	-- import the required modules
	local AchievementsData = require( "Module:AchievementsData" )	
	
	local Achievements = AchievementsData.Achievements

	wiki = '<div class="row">'

	for k,v in pairs(Achievements) do
		local row = ''
		row = row .. '<div  class="col-lg-2">[[file:' .. v.id.. '_Icon.png|64px|link=]] <div><b>' .. v.Name.. '</b><br>' .. v.Description.. '</div></div>'
		wiki = wiki .. row
	end

	wiki = wiki .. '</div>'
	return wiki
	end

return p