Thread: Author Emblems
View Single Post
Old 09-21-2022, 12:39 PM   #2
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 443
Karma: 672378
Join Date: Dec 2017
Device: Kobo
For only the first author:
Code:
program: list_item($authors, 0, '&') & '.png'
this whil return: Arthur C. Clarke.png

Get emblems for all authors [composed icons]:
Code:
program: rslt=''; authors = $authors;
rslt = list_item(authors, 0, '&') & '.png';
for i in range(1, list_count(authors, '&')):
  if i == 6 then break fi;
  rslt = rslt & ':' & list_item(authors, i, '&') & '.png'
rof;
return rslt
this whil return: Arthur C. Clarke.png:Gentry Lee.png
(the colon is for separate the individual icons. You can limite the number of emblems display by changing the number 6)

EDIT: the case does not matter.

Last edited by un_pogaz; 09-21-2022 at 12:52 PM.
un_pogaz is offline   Reply With Quote