![]() |
#1 |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Mar 2024
Location: Saint Petersburg, Russia
Device: Kindle Paperwhite (2021) Signature Edition
|
about The calibre template language
the section 'Basic templates' of chapter 'The calibre template language' (the Tutorial) has lots of really usefil information - thank you
Now - the following sample pattern has drawn my attention: {series}{series_index:| - | - }{title} - I've slightly modified it to the following (I've checked - it works fine) {series}{series_index:|-|. }{title} - but I also would like to use the following formatter within {series_index} {series_index:0>2s} - is that possible? - what will be the exact expression? |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,290
Karma: 57979022
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Code:
{series_index:0>5.2f|| - }{title} 1.05 indicates contains a boxed set (does fall apart at 10, 20. no trailing 0) .5 is a prequel |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Mar 2024
Location: Saint Petersburg, Russia
Device: Kindle Paperwhite (2021) Signature Edition
|
Quote:
I've slightly customized your solution to what I am accustomed: {series:||. }{series_index:0>2s|| - }{title} |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Template language changes | chaley | Library Management | 133 | 07-31-2024 07:14 AM |
Template Language Question | jvorzimmer | Library Management | 5 | 11-20-2021 01:26 PM |
Template Language | phossler | Calibre | 8 | 01-12-2016 04:37 PM |
Help with template language | Pepin33 | Calibre | 8 | 11-11-2012 08:32 AM |
Stupid question about calibre language template | Cammagno | Calibre | 1 | 01-08-2011 08:00 AM |