8,756
edits
mNo edit summary |
mNo edit summary |
||
Line 53: | Line 53: | ||
local displayname = result[1]['DisplayName'] or name | local displayname = result[1]['DisplayName'] or name | ||
local image = (result[1]['Image'] ~= '' and result[1]['Image']~=nil) and result[1]['Image'] or 'None' | local image = (result[1]['Image'] ~= '' and result[1]['Image']~=nil) and result[1]['Image'] or 'None' | ||
local | local displayimg = result[1]['Display'] | ||
local displaychar = result[1]['DisplayChar'] or '•' | local displaychar = result[1]['DisplayChar'] or '•' | ||
Line 77: | Line 77: | ||
end | end | ||
local img = | local img = displayimg | ||
if string.len(display) > 4 then | if string.len(display) > 4 then | ||
if string.sub(display, -4) == '.png' then | if string.sub(display, -4) == '.png' then | ||
img = '[[File:' .. | img = '[[File:' .. displayimg.. '|16px|link='..pagelink..']]' | ||
end | end | ||
end | end |