Module:Icon: Difference between revisions

Content deleted Content added
use require("strict") instead of require("Module:No globals")
Per edit request, fixing non-breaking space that wasn't actually preventing line breaks between the icon and link. This only affects the output/behavior of Template:Icon link, whose 1745 transclusions are predominantly in navboxes like Template:Law.
Line 54:
-- if display is link, just use standard wlink
if link == display then
return '<span class="nowrap">'..icon..'&nbsp; </span>[['..link..']]'
end
return '<span class="nowrap">'..icon..'&nbsp; </span>[['..link..'|'..display..']]'
end