View Single Post
Old 03-14-2018, 06:59 PM   #12
Kaimeirra
Junior Member
Kaimeirra began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Mar 2018
Device: Kindle Oasis
Post

Quote:
Originally Posted by chaley View Post
This single-function-mode template gives what the OP asked for:
Code:
{authors} {series:|(| }{series_index:0>5.2f|#|)} {series:test(,  - )} {title}
Using "test" instead of "ifempty" lets us output an empty string when the series is not empty, otherwise a hyphen.
Wow, certainly is simple, elegant and still does exactly what Im after

I have another piece I would like some help with. Not sure if I should be starting a new thread or if Im right to continue here..

I would like my book series index to appear as:

#01 and #01.5 when I have .x in the series

at the moment I am using

Code:
{series_index:0>5.2f|#|}
which gives #01.00, so is there a way to have no trailing zeros but have the decimal and number after it appear if they exist?
Kaimeirra is offline   Reply With Quote