Module:BlueprintList

From Eco - English Wiki
Revision as of 09:02, 28 July 2025 by StalEF (talk | contribs)

Documentation for this module may be created at Module:BlueprintList/doc

local p = {}

local Utils = require('Module:Utils')
local IconUtils = require('Module:IconUtils')
local L = require('Module:Localization')
local Lang = Utils.getLanguageName()

function p.main()
	local BlueprintList = ''
	local ItemData = require( "Module:ItemData" )
	local ItemList = ItemData.items
	BlueprintList = BlueprintList .. '<div class="row">'
	
	for Iname,Idata in pairs(ItemList) do
		BlueprintList = BlueprintList .. IconUtils.main{ name = Idata.Name[Lang], id = Idata.ID, size = 128, style = 4, link = Idata.Name[Lang] }
	end
	
	BlueprintList = BlueprintList .. '</div>'
	return BlueprintList
end

return p