Anonymous user
Module:Lang: Difference between revisions
Jump to navigation
Jump to search
m
synch from sandbox;
(synch from sandbox;) |
m (synch from sandbox;) |
||
Line 415:
]]
local function make_text_span (code, text, rtl, style, size, language)
local span = {};
local style_added = '';
Line 449:
end
if is_set (language) then
table.insert (span, table.concat ({style_added, '>'})); -- close the style attribute and close opening span tag▼
table.insert (span, table.concat ({style_added, ' title=\"', language, ' language text\"', '>'})); -- add title text and close opening span tag
else
▲
end
table.insert (span, text); -- insert the text
Line 750 ⟶ 754:
args.text = proto_prefix (args.text, language_name); -- prefix proto-language text with a splat
table.insert (out, make_text_span (args.code, args.text, args.rtl, args.italic, args.size, language_name));
table.insert (out, make_category (code, language_name, args.nocat));
table.insert (out, render_maint(args.nocat)); -- maintenance messages and categories
|