Module:Lang: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 496:
|translit-std = the standard that applies to the transliteration
|translit-script = ISO 15924 script name; falls back to code
 
For {{lang-xx}}, the positional parameters are:
{{{1}}} text
{{{2}}} transliterated text
{{{3}}} literal translation text
 
]]
Line 501 ⟶ 506:
function p.lang_xx (frame)
local args = getArgs(frame);
 
-- local args = getArgs(frame, {parentFirst = true});
args.translationtext = args.translation[1] or args.littext;
args.translit = args[2] or args.translit
args.translation = args[3] or args.translation or args.lit;
args.translation = args.translation or args.lit;
args.size = nil; -- size not supported in {{lang-xx}}
Anonymous user