Module:Lang: Difference between revisions

Content deleted Content added
No edit summary
m uppercase
Line 419:
table.insert (out, table.concat ({'[', args.text or 'undefined', '] '})); -- for error messages output args.text if available
table.insert (out, table.concat ({'<span style=\"font-size:100%; font-style:normal;\" class=\"error\">errorError: {{', template, '}}: '}));
table.insert (out, msg);
table.insert (out, table.concat ({' ([[:Category:', category, ' template errors|help]])'}));
Line 443:
if is_set (link) then
if is_set (display) then
return table.concat ({'[[Wikipedia:', link, '|', display, ']]'});
else
return table.concat ({'[[Wikipedia:', link, ']]'});
end
else
Line 892:
local tag = 'span'; -- initial value for make_text_html()
local template = args.template or 'lang';
 
validate_cat_args (args); -- determine if categorization should be suppressed
 
if args[1] and args.code then
Line 911 ⟶ 913:
args.text, tag = html_tag_select (args.text); -- inspects text; returns appropriate html tag with text trimmed accordingly
 
validate_cat_args (args); -- determine if categorization should be suppressed
 
args.rtl = args.rtl == 'yes'; -- convert to boolean: 'yes' -> true, other values -> false
Line 1,577:
_lang_xx_italic = _lang_xx_italic,
_is_ietf_tag = _is_ietf_tag,
get_ietf_parts = get_ietf_parts,
_tag_from_name = _tag_from_name,
_name_from_tag = _name_from_tag,