Module:SkillDx2: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 11: Line 11:
local game = 'dx2'
local game = 'dx2'
local input = args[1]:lower()
local input = args[1]:lower()
local activeSkill = args[2]:lower()
local getSkill = require('Module:Data/Skill/dx2')
local getSkill = require('Module:Data/Skill/dx2')
local iconPage = mw.title.makeTitle('Module', 'Data/Icon/dx2') -- Creates information about a given page
local iconPage = mw.title.makeTitle('Module', 'Data/Icon/dx2') -- Creates information about a given page
Line 76: Line 77:
end
end
-- 10 FINAL OUTPUT
-- 10 FINAL OUTPUT
local output = nameattribute .. cost .. power .. target .. '\n|-'
if activeSkill ~= '' then
return output
local output = nameattribute .. cost .. power .. target .. '\n|-'
return output
else
local output = nameattribute '\n|-'
return output
end
end
end
end
end


return p
return p

Navigation menu