View Single Post
Old 09-23-2018, 05:01 AM   #16
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Tanjamuse provide me an example library where I did some tests. In order to tie up my loose ends in this thread, here is the solution that fits to her needs.

Code:
program: 

tmp1 = template('{#fandoms:sublist(0,2,&)}{#fandom_secondary:sublist(0,2,\,)}/{author}/{title} ({#story_id})');
tmp2 = template('Crossovers/{#fandoms:sublist(0,2,&)}{#fandom_secondary:sublist(0,2,&)}/{author}/{title} ({#story_id})');
tmp3 = template('Multiple Crossovers/{author}/{title} ({#story_id})');
    cmp(
        count(
            field('#fandoms'), 
            ','), 
        2, 
        re(re(tmp1,': ','_'),',',' - '), 
        re(re(tmp2,': ','_'),',',' - '), 
        tmp3)
Divingduck is offline   Reply With Quote