Module:List: Difference between revisions
From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
Content deleted Content added
test fix for technically invalid parameters being passed to type by moving them (if possible) to list_style_type |
adjust match |
||
Line 67: | Line 67: | ||
root.css('margin-left', indent .. 'em') |
root.css('margin-left', indent .. 'em') |
||
end |
end |
||
if args['type'] and not args['type']:match('[1AaIi]') then |
if args['type'] and not args['type']:match('^%s*[1AaIi]%s*$') then |
||
if not args['list_style_type'] and not args['list-style-type'] then |
if not args['list_style_type'] and not args['list-style-type'] then |
||
args['list_style_type'] = args['type'] |
args['list_style_type'] = args['type'] |