Module:Lang: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(is_latn() accepts guillemets as 'Latn' characters;)
(restore italic markup test to {{lang}};)
Line 626: Line 626:
end
end


if ('unset' ~= args.italic) and ('unset' ~= args.italics) then -- allow italic markup when |italic=unset or |italics=unset
if 'lang-xx' == template then -- for the time being, this error checking does not apply to {{lang}}
if ('unset' ~= args.italic) and ('unset' ~= args.italics) then -- allow italic markup when |italic=unset or |italics=unset
if args.text:match ("%f[\']\'\'[^\']+\'\'%f[^\']") or args.text:match ("\'\'\'\'\'[^\']+\'\'\'\'\'") then -- italic but not bold, or bold italic
return make_error_msg ('text has italic markup', args, template);
if args.text:match ("%f[\']\'\'[^\']+\'\'%f[^\']") or args.text:match ("\'\'\'\'\'[^\']+\'\'\'\'\'") then -- italic but not bold, or bold italic
return make_error_msg ('text has italic markup', args, template);
end
end
end
end
end