Module:Lang: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 505: | Line 505: | ||
function p.lang_xx (frame) |
function p.lang_xx (frame) |
||
local args = getArgs(frame, {parentFirst= true}); -- parameters in the template override parameters set in the {{#invoke:}}; is that the right thing to do? |
|||
local args = getArgs(frame); |
|||
⚫ | |||
return make_error_msg ('{{lang-xx}}: conflicting: {{{1}}} and |text=', args.nocat); |
|||
else |
|||
⚫ | |||
end |
|||
if args[2] and args.translit then |
|||
return make_error_msg ('{{lang-xx}}: conflicting: {{{2}}} and |translit=', args.nocat); |
|||
else |
|||
args.translit = args[2] or args.translit |
|||
end |
|||
⚫ | |||
return make_error_msg ('{{lang-xx}}: conflicting: {{{3}}} and |lit= or |translation=', args.nocat); |
|||
else |
|||
args.translation = args[3] or args.translation or args.lit; |
|||
end |
|||
if args.translation and args.lit then |
|||
return make_error_msg ('{{lang-xx}}: conflicting: |lit= and |translation=', args.nocat); |
|||
else |
|||
args.translation = args.translation or args.lit; |
|||
end |
|||
⚫ | |||
⚫ | |||
⚫ | |||
args.size = nil; -- size not supported in {{lang-xx}} |
args.size = nil; -- size not supported in {{lang-xx}} |
||