Glad I could help! I'd like to point out that in template program mode, which we used, the fieldname at the beginning is optional. But if available, you can represent it with "$".
It isn't
Code:
{title:'current_library_name()'}
it is
Code:
{:'current_library_name()'}
You know what the next big step is, don't you... I mean, if you're going to insist on using the full capabilities and everything...
General Program Mode!!!
Much cooler! And personally I think it's easier than applying functions to templates.
For your final template, this is what it would look like.
Code:
program:
# if in fanfic library, use first available fandom
# else use the author
first_fandom =
contains(
current_library_name(),
"^Fanfiction Library$",
sublist(
field(
"#fandom"),
0,
1,
","
),
field("authors")
);
# add together each section of the template
strcat(
current_library_name(),
"/",
first_fandom,
"/",
field("title")
);