Module:SkillDx2: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 42: Line 42:
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 .. namenote -- Set icon
nameattribute = getIcon.icon[attribute] .. ' ' .. name .. namenote -- Set icon
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 .. ']]'
else
else
nameattribute = '\n|style="text-align:center;"|' .. name .. namenote .. '\n|style="text-align:center;"|' .. '[[' .. attributeout .. ']]'
nameattribute = name .. namenote .. '\n|style="text-align:center;"|' .. '[[' .. attributeout .. ']]'
end
end
end
end

Navigation menu