Module:Abilities/card: Difference between revisions

Jump to navigation Jump to search
m added function to just get attr icon
m Fixed formatting of attr icon
Line 373: Line 373:
local attr_type = frame.args[0]
local attr_type = frame.args[0]
local icon = get_icon(attr_type)
local icon = get_icon(attr_type)
 
return string.format([[File:{{{%s}}}|{{{%s|18px}}}|link={{{%s}}}]], icon.img, icon.size, icon.link)
return string.format('[[File:%s|%s|18px|link=%s]]', icon.img, icon.size, icon.link)
end
end


Line 381: Line 381:
local img = 'GenericProperty.png'
local img = 'GenericProperty.png'
local link = ''
local link = ''
local size = nil
local size = ''
local color = 'Grey'
local color = 'Grey'
if mappedAttr then
if mappedAttr then