24,172
edits
Mistiryshak (talk | contribs) mNo edit summary |
Mistiryshak (talk | contribs) mNo edit summary |
||
Line 37: | Line 37: | ||
attribute = '' | attribute = '' | ||
end | end | ||
attributeout = capitalFirst(attribute) | |||
-- 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/' .. game) | ||
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 = '\n|style="text-align:left;"|' .. getIcon.icon[attribute] .. ' ' .. name | nameattribute = '\n|style="text-align:left;"|' .. getIcon.icon[attribute] .. ' ' .. name .. namenote -- Set icon | ||
elseif getSkill.skill[input] and getSkill.skill[input].attribute_link then | elseif getSkill.skill[input] and getSkill.skill[input].attribute_link then | ||
nameattribute = '\n|style="text-align:center;"|' .. name .. namenote .. '\n|style="text-align:center;"|' .. '[[' .. getSkill.skill[input].attribute_link .. '|' .. attributeout .. ']]' | nameattribute = '\n|style="text-align:center;"|' .. name .. namenote .. '\n|style="text-align:center;"|' .. '[[' .. getSkill.skill[input].attribute_link .. '|' .. attributeout .. ']]' |