Content deleted Content added
more showerror support |
use ~= instead of not == |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 87:
local input = args[1] or args.url
if type(input) ~= "string" then
if args.
if type(input) == "nil" then
error("No URL specified", 2)
Line 153:
wikitext = interwiki .. ":" .. wikitext
end
if fragment and
wikitext = wikitext .. "#" .. fragment
end
Line 170:
display = args[2] or args.display -- The display text in piped links.
if (display and type(display) ~= "string") then
if args.
error("Non-string display value detected")
else
|