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 351: | Line 351: | ||
p.get_component_name = function(frame) | p.get_component_name = function(frame) | ||
local item_name = frame.args[1] | local item_name = frame.args[1] | ||
local item = get_json_item(item_name) | local item = get_json_item(item_name) | ||
if(item == nil) then return "<span style=\"color:red;\">Item Not Found.</span>" end | if(item == nil) then return "<span style=\"color:red;\">Item Not Found.</span>" end | ||
| Line 360: | Line 358: | ||
if(components == nil) then return nil end | if(components == nil) then return nil end | ||
local component_key = components[1] | |||
local component_key = components[ | |||
local component = data[component_key] | local component = data[component_key] | ||
local component = data[component_key] | local component = data[component_key] | ||