Module:Redirect hatnote: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(Updated from sandbox with a couple of comment tweaks; now uses Module:Hatnote list for a good chunk of its functionality.) |
(Rephrased error message to make more sense for version with multiple redirects) |
||
Line 46: | Line 46: | ||
local redirect = {} |
local redirect = {} |
||
for i = 1, numRedirects do |
for i = 1, numRedirects do |
||
-- Return an error if |
-- Return an error if a redirect parameter is missing. |
||
if not args[i] then |
if not args[i] then |
||
return mHatnote.makeWikitextError( |
return mHatnote.makeWikitextError( |
||
' |
'missing redirect parameter', |
||
'Template:Redirect#Errors', |
'Template:Redirect#Errors', |
||
args.category |
args.category |