02-20-2024, 01:31 AM | #1 |
Enthusiast
Posts: 26
Karma: 30486
Join Date: Dec 2023
Device: Kindle Oasis
|
Template language - Conditionally including text
Hi,
I followed the instructions here: https://manual.calibre-ebook.com/template_lang.html and successfully managed to set the save to disk setting to my preferences: Code:
{series} {series_index:0>2s|#| - }{title} - {authors} Code:
{_original_name:|(|)} Is there another way to include the parenthesis around the conditional text only if there is data in the custom column? |
02-20-2024, 09:26 AM | #2 | |
Grand Sorcerer
Posts: 11,787
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
Advert | |
|
02-20-2024, 12:56 PM | #3 |
Enthusiast
Posts: 26
Karma: 30486
Join Date: Dec 2023
Device: Kindle Oasis
|
Thank you for your suggestions! I opted for the custom column built from another column and formatted it to include the parenthesis. This is what I am including in my jacket now and it works exactly as I wanted it.
|
|
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 |
Template language query. Removing all text after a set of characters | da_jane | Calibre | 1 | 12-14-2012 01:37 PM |
Help with template language | Pepin33 | Calibre | 8 | 11-11-2012 08:32 AM |