Module:Babel: Difference between revisions

From Test Wiki
Content deleted Content added
some users stick parameters in the args, so it can't pass it all as a title
users also do weird stuff with this parameter
Line 67: Line 67:
if args[1] and args[1]:find('%S') then
if args[1] and args[1]:find('%S') then
userboxes = frame:expandTemplate{title='User '..args[1]}
userboxes = frame:preprocess('{{User '..args[1]..'}}')
else
else
userboxes = "''You haven't set up any languages. Please see [[Template:Babel/doc]] for help.''"
userboxes = "''You haven't set up any languages. Please see [[Template:Babel/doc]] for help.''"