Module:Sandbox/One Bar: Difference between revisions

One Bar (talk | contribs)
typo
One Bar (talk | contribs)
remove flare
Line 43: Line 43:
-- query all the filtered items. itemName is the item table.
-- query all the filtered items. itemName is the item table.
for internalName, itemName in ipairs(filteredData) do  
for internalName, itemName in ipairs(filteredData) do  
local display = frame:expandTemplate{
local display = itemName["Name"]
title = 'ItemIcon',
args = {
itemName["Name"]
}
}
listofItems = listofItems .. itemName["Name"] .. "<br/>"
listofItems = listofItems .. itemName["Name"] .. "<br/>"
-- Get category display using ItemType template with appropriate parameters
local categoryDisplay
local categoryDisplay = itemName["Slot"]
if itemName["Slot"] == "Armor" then
categoryDisplay = frame:expandTemplate{
title = 'ItemType',
args = { "Armor", "Vitality" }
}
elseif itemName["Slot"] == "Tech" then
categoryDisplay = frame:expandTemplate{
title = 'ItemType',
args = { "Tech", "Spirit" }
}
else -- Weapon
categoryDisplay = frame:expandTemplate{
title = 'ItemType',
args = { "Weapon", "Weapon" }
}
end
local description = itemName["Description"]
local description = itemName["Description"]