24,173
edits
Mistiryshak (talk | contribs) mNo edit summary |
Mistiryshak (talk | contribs) 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 = | nameattribute = getIcon.icon[attribute] .. ' ' .. name .. namenote -- Set icon | ||
else | else | ||
nameattribute = | nameattribute = name .. namenote .. '\n|style="text-align:center;"|' .. '[[' .. attributeout .. ']]' | ||
end | end | ||
end | end |