Quote:
Originally Posted by ownedbycats
Question: I'm converting my fanfic column icon rules to a single advanced rule.
Code:
program:
f = field('#fanficcat');
strcat
(
contains(f, "Dragon Age: Origins", 'dragonageorigins.png', ''),
contains(f, "Half-Life", 'halflife.png', ''),
contains(f, "Mass Effect", 'masseffect.png', ''),
contains(f, "The Elder Scrolls", 'theelderscrolls.png', ''),
contains(f, "Pokémon", 'pokemon.png', ''),
contains(f, "Portal", 'portal.png', ''),
)
It works except for when there's multiple values (#fanficcat is a tag-like). Clicking on one of the crossovers in the book list and opening the template editor shows "masseffect.pngpokemon.png".
What should I do?
|
Another question regarding this one:
Code:
strcat
(
contains(f, "foo", 'foobar.png:', ''),
contains(f, "bar", 'foobar.png:', ''),
)
If a book has both "foo" and "bar", how do I get it to display foobar.png only once without using first_non_empty?