Jump to content

Module:GAN link and Module:GAN link/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
fix error message for bad nomination page titles
 
Create sandbox version of Module:GAN link; make less verbose
 
Line 82: Line 82:


-- Formatting parameters
-- Formatting parameters
local hasIcon = not not args.icon
local isItalic = not not args.i


-- Output
-- Output
local ret = {}
local ret = {}
if hasIcon then
if args.icon then
ret[#ret + 1] = getGANIcon()
ret[#ret + 1] = getGANIcon()
end
end
Line 94: Line 92:
formattedArticle = formattedArticle,
formattedArticle = formattedArticle,
display = display,
display = display,
isItalic = isItalic,
isItalic = args.i
}
}
ret[#ret + 1] = string.format(
ret[#ret + 1] = string.format(