Quote:
Originally Posted by theducks
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.