Module:Icon/sandbox: Difference between revisions

Content deleted Content added
lazy load getPlain, tighten output
load module right before use
Line 31:
 
function p._link(args, data)
getPlain = getPlain or require("Module:Text").Text().getPlain
args.size = args.size or args.iconsize
local icon = p._main(args, data)
Line 37 ⟶ 36:
return icon
end
getPlain = getPlain or require("Module:Text").Text().getPlain
local link = getPlain(args[2])
local display = args[3] or args[2]