Module:SkillDx2: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 20: Line 20:
-- 1.2 SKILL LINK
-- 1.2 SKILL LINK
if getSkill.skill[input] and getSkill.skill[input].link then -- Check if an alternate link for a page is set in skill data
if getSkill.skill[input] and getSkill.skill[input].link then -- Check if an alternate link for a page is set in skill data
name = '[[' .. getSkill.skill[input].link .. '|' .. getSkill.skill[input].name .. ']]'
name = getSkill.skill[input].link .. '|' .. getSkill.skill[input].name  
else
else
name = '[[' .. getSkill.skill[input].name .. ']]'
name = getSkill.skill[input].name
end
end
-- 3 NAME AND ATTRIBUTE
-- 3 NAME AND ATTRIBUTE
Line 40: Line 40:
-- 4.2 IF ICON PAGE EXISTS
-- 4.2 IF ICON PAGE EXISTS
if iconPage.exists == true then
if iconPage.exists == true then
getIcon = require('Module:Data/Icon/' .. game)
getIcon = require('Module:Data/Icon/dx2')
if getIcon.icon[attribute] then -- Check if attribute is set in skill data
if getIcon.icon[attribute] then -- Check if attribute is set in skill data
nameattribute = getIcon.icon[attribute] .. ' ' .. name .. namenote -- Set icon
nameattribute = getIcon.icon[attribute] .. ' ' .. name .. namenote -- Set icon

Navigation menu