Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-21-2024, 12:24 PM   #1
Ace
Junior Member
Ace began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2024
Device: Kindle Paperwhite Signature Edition
Need help with Save template. Can you make conditions?

This is my current Save template:

{series} {series_index:0>2s} - {title} - {authors}

Which produces

"The Thrawn Trilogy 01 - Heir to the Empire - Timothy Zahn" and "- Allegiance - Timothy Zahn"

I would like it to produce "The Thrawn Trilogy 01 - Heir to the Empire - Timothy Zahn" and "Allegiance - Timothy Zahn"

So only the - before the title if it has a series. I've tried looking but couldn't find anything. Is it that possible to do?
Ace is offline   Reply With Quote
Old 03-21-2024, 02:31 PM   #2
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 490
Karma: 1153449
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Yep, somewhere in the manual there was a code for that.

Found it under template language
Code:
 {series}{series_index:| | - }{title}
https://manual.calibre-ebook.com/tem...atelangcalibre

Last edited by Wiggo; 03-21-2024 at 02:33 PM.
Wiggo is offline   Reply With Quote
Old 03-21-2024, 04:42 PM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,029
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Wiggo View Post
Yep, somewhere in the manual there was a code for that.

Found it under template language
Code:
 {series}{series_index:| | - }{title}
https://manual.calibre-ebook.com/tem...atelangcalibre
Yea, the OP's exact question is answered in the "Advanced formatting" section of the part of the calibre manual you point to.
chaley is offline   Reply With Quote
Old 03-22-2024, 02:49 PM   #4
Ace
Junior Member
Ace began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2024
Device: Kindle Paperwhite Signature Edition
Wow. I tried looking I swear. I found so many threads and totally forgot to look at the basics. Sorry and thank you guys.
Ace is offline   Reply With Quote
Reply

Tags
help calibre, question


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
save as template ajean4 Library Management 12 04-15-2021 05:32 PM
Can I use an IF statement in a Save template? kelemvor Library Management 1 07-29-2016 08:05 PM
Save Template Help Maverynthia Library Management 10 05-19-2014 01:37 PM
Multiple conditions in TEMPLATE code HFC3 Library Management 4 07-07-2013 02:39 PM
A little help with a save template...? Belfaborac Library Management 2 02-04-2011 10:47 PM


All times are GMT -4. The time now is 10:00 AM.


MobileRead.com is a privately owned, operated and funded community.