Quote:
Originally Posted by chaley
See the template language manual http://calibre-ebook.com/user_manual/template_lang.html. In there you will find several examples of formatting numbers. Quoting that document: If you use series indices with sub values (e.g., 1.1), you might want to ensure that the decimal points line up. For example, you might want the indices 1 and 2.5 to appear as 01.00 and 02.50 so that they will sort correctly. To do this, use:
Code:
{series_index:0>5.2f} - Five characters, consisting of two digits with leading zeros, a decimal point, then 2 digits after the decimal point
That list is correctly sorted. What is it that you want to be different?
In any event, you can add brackets around tags with
Code:
Ebooks/{tags:|[|]/}{authors[0]}/{authors}/{series}/{series_index:0>2s|.| }{title}
|
I want the genre to show up first so instead of
a
b
c
crime
it will be
[Crime]
[Fantasy]
a
b
c