24,173
edits
Mistiryshak (talk | contribs) mNo edit summary |
Mistiryshak (talk | contribs) 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 = | name = getSkill.skill[input].link .. '|' .. getSkill.skill[input].name | ||
else | else | ||
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/' | 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 |