Module:Icons: Difference between revisions

Added ability to pass in Expansion Icon to the Icon function
(Amend/fix overrides for Summoning marks)
(Added ability to pass in Expansion Icon to the Icon function)
Line 380: Line 380:
local altText = args.alt ~= nil and args.alt or (notext and (text or link)) or ''
local altText = args.alt ~= nil and args.alt or (notext and (text or link)) or ''
local nospan = args.nospan ~= nil and args.nospan
local nospan = args.nospan ~= nil and args.nospan
local expIcon = args.expicon ~= nil and args.expicon or ''


link = fixPagename(link)
link = fixPagename(link)
Line 486: Line 487:


if menu then
if menu then
return '{| class="articletable" style="display:inline-block;vertical-align:middle;"\r\n|-\r\n|' .. resultText .. '\r\n|}'
return '{| class="articletable" style="display:inline-block;vertical-align:middle;"\r\n|-\r\n|' .. expIcon .. resultText .. '\r\n|}'
elseif not noicon and not nospan then
elseif not noicon and not nospan then
return '<span style="display:inline-block">' .. resultText .. '</span>'
return '<span style="display:inline-block">' .. expIcon .. resultText .. '</span>'
else
else
return resultText
return resultText