Module:Lang: Difference between revisions

restore italic markup test to {{lang}};
(is_latn() accepts guillemets as 'Latn' characters;)
(restore italic markup test to {{lang}};)
Line 626:
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 args.text:match ("%f[\'unset]\'\'[^\']+\'\'%f[^\']") ~=or args.italic) andtext:match ("\'unset\' ~= args.italics\'\'\'[^\']+\'\'\'\'\'") then -- allow italic markupbut whennot |italic=unsetbold, or |italics=unsetbold 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
Anonymous user