Editing Module:ItemDataGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 534: | Line 534: | ||
-- Template: {{#invoke:ItemData|get_builds_into|ITEM_NAME}} | -- Template: {{#invoke:ItemData|get_builds_into|ITEM_NAME}} | ||
-- Returns | -- Returns: {{ItemIcon|Parent1}}, {{ItemIcon|Parent2}}, and {{ItemIcon|Parent3}} | ||
p.get_builds_into = function(frame) | p.get_builds_into = function(frame) | ||
local item = frame.args[1] | local item = frame.args[1] | ||
| Line 546: | Line 546: | ||
for _, key in ipairs(parents) do | for _, key in ipairs(parents) do | ||
local name = data[key] and data[key]["Name"] or key | local name = data[key] and data[key]["Name"] or key | ||
table.insert(parts, string.format("{{ItemIcon|%s}}", name)) | |||
end | end | ||