Module:BlueprintList: Difference between revisions
From Eco - English Wiki
| [checked revision] | [checked revision] |
Created page with "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 = '' return BlueprintList end return p" |
No edit summary |
||
| Line 8: | Line 8: | ||
function p.main() | function p.main() | ||
local BlueprintList = '' | 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 = Iname.Name[Lang], id = Iname.ID, size = 128, style = 4, link = Iname.Name[Lang] } | |||
end | |||
BlueprintList = BlueprintList .. '</div>' | |||
return BlueprintList | return BlueprintList | ||
end | end | ||
return p | return p | ||
Revision as of 09:01, 28 July 2025
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 = Iname.Name[Lang], id = Iname.ID, size = 128, style = 4, link = Iname.Name[Lang] }
end
BlueprintList = BlueprintList .. '</div>'
return BlueprintList
end
return p