View Single Post
Old 08-17-2013, 03:10 PM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post
http://manual.calibre-ebook.com/template_lang.html

See The Advanced Section
for Example:
Code:
{series}{series_index:| - | - }{title}
The space dash are literals that are included only if there is a Series_index

It gets real tricky to suppress a 0 index in a Series. I use Zero to indicate a book that belongs to a series, but has no place in the order
I use 0.n to order those
To convert indices with value zero to blank, try
Code:
{series_index:re(^0*$,)}
The pattern/replacement in the re() function changes any series index that is all "zero" characters (or no characters at all) to nothing, or a blank.
chaley is offline   Reply With Quote