Modulo:String/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Moroboshi (discussione | contributi)
ops sbagliato versione
Moroboshi (discussione | contributi)
fix typo
Riga 419:
 
function Param:get_other_value(args, index)
if par_nameself.name == '$index' then
return tostring(index), true
else
Riga 427:
 
function Param:get_first_value(args, index, base_index)
if par_nameself.name == '$index' then
return tostring(index), true
end
if index == base_index then
return args[mw.ustring.gsub(self.name, '#', tostring(index), 1)] or args[self.base_name] or args[self.alt] or '', false
else
return args[mw.ustring.gsub(self.name, '#', tostring(index), 1)] or args[self.alt] or '', false
end
end
 
Riga 644:
found = false
for i = index, index+par_number-1 do
message:add_value(args[i] or '')
if args[i] then
found = true
Riga 673:
congiunzione = base_args.congiunzione or separatore
end
return pre .. mw.text.listToText(elements, separatore, congiunzione) .. post
end