Hi Sven,
I was successful with a test of this workflow. I used the Headline field for the collection of Bib numbers. Each Bib number must be of the same format. I used 4 characters followed by the separator character. Eg 0011;1244;2101;3257. There shouldn't be any blank spaces or other characters in the Headline field.
The code replacement file will have two columns for the return names. The fist column of names will be used in the repeating such as Persons Shown and Keywords. Each name will be preceded with the separating character and a blank space.
Eg, 0011<tab>; Jimmy C. Bits<tab>Jimmy C. Bits<cr>
The second name column will be used in non repeating fields such as the Caption/Description. It will just have the Bib number athlete names.
Once the images have been updated with the Bib numbers following the above format, setup the Metadata (IPTC) Template with the following code replacement variables.
Repeating fields - Persons Shown :
={head:0,4}= ={head:5,4}= ={head:10,4}= ={head:15,4}= ={head:20,4}= and so on if you plan on adding more than 5 people to the field.
Non-repeating fields - Caption/Description :
={head:0,4}#2= ={head:5,4}#2= ={head:10,4}#2= ={head:15,4}#2= ={head:20,4}#2=
The final setting to check will be in the Set Code Replacements dialog. Make sure the Default replacement character is just a single blank space. This will prevent the code replacements returning == for the empty code replacement variables.
Best regards,
--Bob