Module:Inventory slot: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 27: Line 27:
local aliases = mw.loadData( i18n.moduleAliases )
local aliases = mw.loadData( i18n.moduleAliases )
local pageName = mw.title.getCurrentTitle().text
local pageName = mw.title.getCurrentTitle().text
local mod = nil  -- <--- THIS IS NEW


--[[Splits a given text into fragments separated by semicolons that are not
--[[Splits a given text into fragments separated by semicolons that are not
Line 102: Line 104:
local category
local category
local title = frame.title or mw.text.trim( args.title or '' )
local title = frame.title or mw.text.trim( args.title or '' )
local mod = frame.mod
-- local mod = frame.mod
mod = frame.mod  -- <----- THIS IS CHANGED
local name = frame.name or ''
local name = frame.name or ''
local num = frame.num
local num = frame.num
Line 246: Line 249:
if args.mod == '' then
if args.mod == '' then
modData.default = nil
modData.default = nil
end
if mod == 'parallel' then  -- <------ THIS IS NEW
modData.aliases = mw.loadData( 'Module:ParallelAliases' )
end
end