Anonymous user
Module:Redirect template: Difference between revisions
add a \n before closing div incase the info text contains a list item
Johnrdorazio (talk | contribs) m (1 revision imported) |
(add a \n before closing div incase the info text contains a list item) |
||
Line 45: | Line 45: | ||
local beCompatibleWithBug12974 = args.info and (args.info:find('^[:;#*]', 1) == 1 or args.info:find('{|', 1, true) == 1) and '\n' or ' ' | local beCompatibleWithBug12974 = args.info and (args.info:find('^[:;#*]', 1) == 1 or args.info:find('{|', 1, true) == 1) and '\n' or ' ' | ||
local content = string.format('\n<div class="rcat %s">\n*%sThis is a redirect%s%s.%s%s</div>', | local content = string.format('\n<div class="rcat %s">\n*%sThis is a redirect%s%s.%s%s\n</div>', | ||
args.class or '', | args.class or '', | ||
args.name and getPrettyName(args) or '', | args.name and getPrettyName(args) or '', |