Module:Sandbox/Hellknowz/Test: Difference between revisions

Content deleted Content added
test args
non zero based right
Line 4:
 
local args = frame.args
local arg1 = args[01]
local arg2 = args[12]
local arg3 = args[23]
local argNamed = args['named']
 
local s = 'Params: '
Line 12 ⟶ 13:
if (arg2 ~= nil) then s = s .. '; 2 = ' .. arg2 end
if (arg3 ~= nil) then s = s .. '; 3 = ' .. arg3 end
if (argNamed~= nil) then s = s .. '; named = ' .. argNamed end
return s