Changes

generate indexed strings for arrays or if an offset is defined
Line 151: Line 151:  
 
 
for index = 0, count - 1 do
 
for index = 0, count - 1 do
if count > 1 then
+
if count > 1 or (args['offset'] ~= nil and args['offset'] ~= "") then --generate indexed strings for arrays or if an offset is defined
 +
args['id'] = p.indexed_string( args['id'], index + id_offset)
 +
args['label'] = p.indexed_string( args['label'], index + label_offset)
 +
end
 +
if count > 1 or (args['custom_id_offset'] ~= nil and args['custom_id_offset'] ~= "") then --generate indexed strings for arrays or if an offset is defined
 
if args['custom_id'] ~= nil and args['custom_id'] ~= "" then
 
if args['custom_id'] ~= nil and args['custom_id'] ~= "" then
 
args['custom_id'] = p.indexed_string( args['custom_id'], index + custom_id_offset + 1)
 
args['custom_id'] = p.indexed_string( args['custom_id'], index + custom_id_offset + 1)
 
end
 
end
args['id'] = p.indexed_string( args['id'], index + id_offset)
  −
args['label'] = p.indexed_string( args['label'], index + label_offset)
   
end
 
end
 
--object_ids = object_ids .. args['id']
 
--object_ids = object_ids .. args['id']
Bots, bulkpusher, Bureaucrats, checkuser, filepusher, Interface administrators, oversight, pusher, rdfioadministrator, rdfiocurator, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Editors (Semantic MediaWiki), Administrators
5,444

edits