View Single Post
Old 09-12-2014, 01:27 AM   #2
MiniMouse
Groupie
MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.
 
MiniMouse's Avatar
 
Posts: 197
Karma: 318144
Join Date: Jul 2013
Location: Well, there will always be a big time delay because I'm not living in the US! And there could be some communication difficulties too because I'm not a native speaker!
Device: Sony PRS-T3S
Quote:
Originally Posted by Truthowl View Post
{series}{series_index:0>2s| - | - }{title}

Like I mentioned, I want the number first. The above gives me, as an example:

Wheel of Time, The - 12 - Gathering Storm, The.epub

But what I'd like to get is:

12 - Wheel of Time, The - Gathering Storm, The.epub

Anyone know if this is possible with calibre? And if so, how?
The 'series' gives you the series-text, the 'series_index' gives you the series-number. The ':' says if the column is there, what stands behind the first '|' is what will be written infront of the column-info and what stand behind the second '|' will be written behind the columns-info if the column is there. Just write the template this way:

Quote:
{series_index:0>2s|| - }{series:|| - }{title}
The'0>2s' says: make the series-number always show up as two numbers. Meaning series-number 1 would show up as 01. If you don't want that, write the template this way:

Quote:
{series_index:|| - }{series:|| - }{title}
And if you want them to show as 001 (instead of only as 1), then use this:

Quote:
{series_index:0>3s|| - }{series:|| - }{title}

Mini

Last edited by MiniMouse; 09-12-2014 at 03:36 AM.
MiniMouse is offline   Reply With Quote