Module:Abilities/card: Difference between revisionsGive feedback
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: | 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 = | local size = '' | ||
local color = 'Grey' | local color = 'Grey' | ||
if mappedAttr then | if mappedAttr then | ||