Modul:Redirect hatnote: Unterschied zwischen den Versionen
Rephrased error message to make more sense for version with multiple redirects
(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) |
||
Zeile 46: | Zeile 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 |