03-13-2024, 06:58 AM | #1 |
Member
Posts: 23
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? |
03-13-2024, 07:25 AM | #2 |
Well trained by Cats
Posts: 29,809
Karma: 54830978
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 | |
|
03-13-2024, 10:12 AM | #3 | |
Member
Posts: 23
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} |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Template language changes | chaley | Library Management | 132 | 03-03-2024 06:34 PM |
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 |