Anonymous user
Module:Redirect template: Difference between revisions
don't set otherCategory if nil
(need Module:Arguments) |
(don't set otherCategory if nil) |
||
Line 43:
end
local namespace = mw.title.getCurrentTitle().namespace
local otherCategory = args['other category'] and (args.category or string.format('[[Category:%s]]', args['other category']))
local retval = string.format('*%sThis is a redirect%s%s. %s',
args.name and getPrettyName(args) or '',
|