Module:Urltowiki/sandbox: Difference between revisions

Content deleted Content added
support "blank" parameter
Undid revision 678302754 by Ahecht (talk) undo
Line 84:
function p._urlToWiki(args)
-- Check the input is valid.
local input = args[1] or args.url or error("No URL specified", 2)
if args.blank == "yes" then
local input = args[1] or args.url or ""
else
local input = args[1] or args.url or error("No URL specified", 2)
end
if type(input) ~= "string" then
error("The URL must be a string value", 2)