Module:Inventory slot: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 250: Line 250:
modData.default = nil
modData.default = nil
end
end
if mod == 'parallel' then  -- <------ THIS IS NEW
-- if mod == 'parallel' then  -- <------ THIS IS NEW
modData.aliases = mw.loadData( 'Module:ParallelAliases' )
-- modData.aliases = mw.loadData( 'Module:ParallelAliases' )
end
-- end
local frames
local frames
Line 335: Line 335:
if aliases or modData.aliases then
if aliases or modData.aliases then
local id = frame.name
local id = frame.name
if frame.mod then
-- if frame.mod then
id = frame.mod .. ':' .. id
-- id = frame.mod .. ':' .. id
end
-- end
if frame.mod then -- <--- THIS IS CHANGED
if mod ~= 'parallel' then
id = frame.mod .. ':' .. id
end
end
local alias = modData and modData.aliases and modData.aliases[id] or
local alias = modData and modData.aliases and modData.aliases[id] or