Module:Redirect template: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
m (Protected Module:Redirect template: Highly visible template ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite))) |
(fix bug reported on VPT) |
||
Line 44: | Line 44: | ||
local namespace = mw.title.getCurrentTitle().namespace |
local namespace = mw.title.getCurrentTitle().namespace |
||
local otherCategory = args['other category'] and (args.category or string.format('[[Category:%s]]', args['other category'])) |
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. |
local retval = string.format('*%sThis is a redirect%s%s.\n%s\n', |
||
args.name and getPrettyName(args) or '', |
args.name and getPrettyName(args) or '', |
||
args.from and (' from ' .. args.from) or '', |
args.from and (' from ' .. args.from) or '', |