View Single Post
Old 01-30-2014, 10:38 PM   #467
Junior Member
hockeyjod began at the beginning.
Posts: 3
Karma: 10
Join Date: Nov 2013
Device: Kindle Paperwhite 2013
Plugboard for series vs non-series books...

I apologize if this question has been answered somewhere in this thread (or another), but I was not able to find it. I've been using a small variation on the "standard"...

{series}{series_index:| - | - }{title}

...plugboard for getting my books sorted when I write them to my devices. Instead of "series", though, I've been using my own "#series_sort". This is close to what I want, but not quite there.

What I would like is a template that treats the actual title a little differently depending on whether or not that book is in a series. As an example, imagine a book titled "The Sample Book". If that book is a part of a series -- say, book 1 in the series "Sample Series" -- I want the plugboard to give me...

Sample Series - 01 - The Sample Book

However, if the book is not part of a series, I want the plugboard to give me...

Sample Book, The (or just "Sample Book")

How would I do this with the calibre template language, if it is possible?
hockeyjod is offline   Reply With Quote