Anonymous user
Module:Redirect template: Difference between revisions
replace class param with a new id param for better parsing by scripts (class param was added by me in Jan 2019; it's completely unused and was never documented anywhere)
Johnrdorazio (talk | contribs) m (1 revision imported) |
(replace class param with a new id param for better parsing by scripts (class param was added by me in Jan 2019; it's completely unused and was never documented anywhere)) |
||
Line 46: | Line 46: | ||
local content = string.format('\n<div class="rcat %s">\n*%sThis is a redirect%s%s.%s%s\n</div>', | local content = string.format('\n<div class="rcat %s">\n*%sThis is a redirect%s%s.%s%s\n</div>', | ||
args. | args.id and ('rcat-' .. string.gsub(args.id, ' ', '_')) or '', | ||
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 '', |