Module:Inventory slot: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 8: Line 8:
modLink = '$1:$2',
modLink = '$1:$2',
moduleAliases = [[Module:Inventory slot/Aliases]],
moduleAliases = [[Module:Inventory slot/Aliases]],
moduleParallelAliases = [[Module:ParallelAliases]],
moduleRandom = [[Module:Random]],
moduleRandom = [[Module:Random]],
-- List of special prefixes which should be handled by
-- List of special prefixes which should be handled by
Line 26: Line 27:
local random = require( i18n.moduleRandom ).random
local random = require( i18n.moduleRandom ).random
local aliases = mw.loadData( i18n.moduleAliases )
local aliases = mw.loadData( i18n.moduleAliases )
local parallelAliases = mw.loadData( i18n.moduleParallelAliases )
local pageName = mw.title.getCurrentTitle().text
local pageName = mw.title.getCurrentTitle().text


Line 337: Line 339:
-- end
-- end
if frame.mod then -- <--- THIS IS CHANGED
if frame.mod then -- <--- THIS IS CHANGED
if frame.mod ~= 'parallel' then
if frame.mod == 'parallel' then
modData.aliases = parallelAliases
else
id = frame.mod .. ':' .. id
id = frame.mod .. ':' .. id
end
end