View Single Post
Old 04-14-2011, 08:07 AM   #220
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,794
Karma: 30548723
Join Date: Dec 2006
Location: Singapore
Device: Boyue
Quote:
Originally Posted by chaley View Post
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
Dopedangel is online now   Reply With Quote