View Single Post
Old 12-11-2021, 07:37 AM   #206
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,091
Karma: 76037135
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
For what it matters, the actual template has quite a few individual entries, e.g.:

Code:
program:
   f = field('#fanficcat');
   strcat
   (
    contains(f, "Fallout", 'fallout.png:', ''),
    contains(f, "Half-Life", 'halflife.png:', ''),
    contains(f, "Mass Effect Trilogy|Mass Effect: Andromeda", 'masseffect.png:', ''),
    (at least a dozen more like this)...
    contains(f, "^(2001: A Space Odyssey|Alien|Short Circuit)$", 'Film.png:', ''),
   )
I just combine the miscellaneous one into generic film/book/videogame icons. Since it's a stored template both the column icons and emblems get updated.

Since I want to display all the relevant icons, I'm not sure that an if statement would work too well. But would list_contains be appropriate?

Last edited by ownedbycats; 12-11-2021 at 07:39 AM.
ownedbycats is online now   Reply With Quote