Модуль:BlueprintList

Материал из Eco - Русская Wiki
Версия от 12:41, 28 июля 2025; StalEF (обсуждение | вклад) (Новая страница: «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 if (Idata.IsPaidItem == 'True') then BlueprintList = BlueprintLi...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к:навигация, поиск

Для документации этого модуля может быть создана страница Модуль: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
		if (Idata.IsPaidItem == 'True') then	BlueprintList = BlueprintList .. IconUtils.main{ name = Idata.Name[Lang], id = Idata.ID, size = 128, style = 4, link = Idata.Name[Lang] } end
	end
	
	BlueprintList = BlueprintList .. '</div>'
	return BlueprintList
end

return p